8000 test: make the drupal cms bats test a bit more robust and trustworthy by rpkoller · Pull Request #7203 · ddev/ddev · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: make the drupal cms bats test a bit more robust and trustworthy #7203

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

Merged
Merged
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
14 changes: 12 additions & 2 deletions docs/tests/drupal.bats
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,24 @@ teardown() {
# ddev composer create drupal/cms
run ddev composer create drupal/cms
assert_success
# Run Drush site install to set up the site
run ddev drush si --account-name=admin --account-pass=admin -y
assert_success
# Apply one of the additional recipes Drupal CMS ships with
run ddev drush recipe ../recipes/drupal_cms_blog
assert_success
# ddev launch
run bash -c "DDEV_DEBUG=true ddev launch"
assert_output "FULLURL https://${PROJNAME}.ddev.site"
assert_success
# validate running project
run curl -sfI https://${PROJNAME}.ddev.site
assert_success
assert_output --partial "location: /core/install.php"
assert_output --partial "HTTP/2 302"
assert_output --partial "HTTP/2 200"
assert_output --partial "expires: Sun, 19 Nov 1978 05:00:00 GMT"
assert_output --partial "x-generator: Drupal 11 (https://www.drupal.org)"
run curl -sf https://${PROJNAME}.ddev.site
assert_success
assert_output --partial "<title>Home | Drush Site-Install</title>"
assert_output --partial "<span>A celebration of Drupal and open-source contributions</span>"
}
0