-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1462: Separate out MySQL8 tests from drupal10 default test.
- Loading branch information
1 parent
66fa05a
commit f0cdef9
Showing
6 changed files
with
85 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
drupal10 |
2 changes: 1 addition & 1 deletion
2
examples/drupal10/mysql8.lando.yml → examples/drupal10-mysql8/.lando.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: lando-drupal10 | ||
name: lando-drupal10-mysql8 | ||
recipe: drupal10 | ||
config: | ||
webroot: . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Drupal 10 Example | ||
================ | ||
|
||
This example exists primarily to test the following documentation: | ||
|
||
* [Drupal 10 Recipe](https://docs.lando.dev/config/drupal10.html) | ||
|
||
Start up tests | ||
-------------- | ||
|
||
Run the following commands to get up and running with this example. | ||
|
||
```bash | ||
# Should poweroff | ||
lando poweroff | ||
|
||
# Create latest drupal10 project via composer | ||
mkdir -p mysql8 && cp .lando.yml mysql8/.lando.yml && cd mysql8 | ||
lando composer create-project drupal/recommended-project:10.0.x-dev@dev tmp && cp -r tmp/. . && rm -rf tmp | ||
|
||
# Should start up successfully | ||
cd mysql8 | ||
echo -e "\nplugins:\n \"@lando/drupal/\": ./../../" >> .lando.yml | ||
lando start | ||
``` | ||
|
||
Verification commands | ||
--------------------- | ||
|
||
Run the following commands to validate things are rolling as they should. | ||
|
||
```bash | ||
# Should return the drupal installation page by default | ||
cd mysql8 | ||
lando ssh -s appserver -c "curl -L localhost" | grep "Drupal 10" | ||
|
||
# Should use 8.1 as the default php version | ||
cd mysql8 | ||
lando php -v | grep "PHP 8.1" | ||
|
||
# Should be running apache 2.4 by default | ||
cd mysql8 | ||
lando ssh -s appserver -c "apachectl -V | grep 2.4" | ||
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4 | ||
|
||
# Should be running mysql 8.0.x | ||
cd mysql8 | ||
lando mysql -V | grep 8.0 | ||
|
||
# Should be running sqlite 3.34 by default | ||
cd mysql8 | ||
lando php -r "print_r(SQLite3::version());" | grep versionString | grep 3.34 | ||
|
||
# Should not enable xdebug by default | ||
cd mysql8 | ||
lando php -m | grep xdebug || echo $? | grep 1 | ||
|
||
# Should use the default database connection info | ||
cd mysql8 | ||
lando mysql -udrupal10 -pdrupal10 drupal10 -e quit | ||
|
||
# Should use site-local drush if installed | ||
cd mysql8 | ||
lando composer require drush/drush | ||
lando ssh -c "which drush" | grep "/app/vendor/bin/drush" | ||
|
||
# Should be able to install drupal | ||
cd mysql8 | ||
lando drush si --db-url=mysql://drupal10:drupal10@database/drupal10 -y | ||
``` | ||
|
||
Destroy tests | ||
------------- | ||
|
||
Run the following commands to trash this app like nothing ever happened. | ||
|
||
```bash | ||
# Should be destroyed with success | ||
cd mysql8 | ||
lando destroy -y | ||
lando poweroff | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters