Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for composer blocks #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TESTING_dockercompose.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ docker-compose exec -T cli bash -c "yarn --version"
# Should have a running Drupal 9 site served by nginx on port 8080
docker-compose exec -T cli bash -c "curl -kL http://nginx:8080" | grep "Drush Site-Install"

# Internal files are not served by Nginx.
docker-compose exec -T cli bash -c "curl -sI http://nginx:8080/composer.json" | grep "404 Not Found"
docker-compose exec -T cli bash -c "curl -sI http://nginx:8080/core/composer.json" | grep "404 Not Found"

# Should be able to db-export and db-import the database
docker-compose exec -T cli bash -c "drush sql-dump --result-file /app/test.sql"
docker-compose exec -T cli bash -c "drush sql-drop -y"
Expand Down
4 changes: 4 additions & 0 deletions TESTING_lando.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ lando lagoon --version | grep lagoon
# Should have a running Drupal 9 site served by nginx on port 8080
lando ssh -s cli -c "curl -kL http://nginx:8080" | grep "Welcome to Drush Site-Install"

# Internal files are not served by Nginx.
lando ssh -s cli -c "curl -sI http://nginx:8080/composer.json" | grep "404 Not Found"
lando ssh -s cli -c "curl -sI http://nginx:8080/core/composer.json" | grep "404 Not Found"

# Should be able to db-export and db-import the database
lando db-export test.sql
lando db-import test.sql.gz
Expand Down