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 content tests in TestDdevFullSiteSetup, fixes #677 #1155

Merged
merged 30 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
72ba9e4
Add DynamicURI
rfay Oct 4, 2018
486b2c8
Add content tests in TestDdevFullSiteSetup, fixes #677
rfay Oct 4, 2018
fea9117
Fix up Drupal6 so that it uses right php version and has files download
rfay Oct 4, 2018
ee50ad2
Make backdrop work and test it
rfay Oct 5, 2018
790f7b4
Fix a bunch of introduced and innocuous vetshadows
rfay Oct 5, 2018
cf09e51
Don't start every project at beginning; remove extraneous EnsureLocal…
rfay Oct 5, 2018
c408aa3
Add FilesImageURI to test setup, implement for most sites
rfay Oct 5, 2018
2cf2dc7
How many times am I going to chase vetshadow before giving up on it?
rfay Oct 5, 2018
e82f3c7
Fix problems introduced in TestDdevStart
rfay Oct 5, 2018
2e9177a
Improve web container healthcheck to give specific info
rfay Oct 5, 2018
336e67d
Update dbserver to provide slow log info to stdout
rfay Oct 5, 2018
b5807d2
Add slowlog behavior to php-fpm in web container
rfay Oct 5, 2018
a2cfb7c
Improve debugging output for TestDdevFullSiteSetup
rfay Oct 5, 2018
de11050
In the interest of performance, simplify the d7 test project
rfay Oct 5, 2018
f3c367d
Revert to standard slowlog settings in php, those won't help us
rfay Oct 5, 2018
7f129e3
mysql config turns off log-queries-not-using-indexes
rfay Oct 5, 2018
1160f78
Get working TYPO3 v9 test case
rfay Oct 6, 2018
1253a62
Repair TestDdevStart() so it leaves us in the test directory
rfay Oct 6, 2018
cf3d776
Scale back web container healthcheck to not query db container
rfay Oct 6, 2018
2330b0a
Make sure circle container has jq in it
rfay Oct 6, 2018
1371786
Improve assertion about SERVER_SOFTWARE, add docker inspect output of…
rfay Oct 6, 2018
a4bfbb2
Try to ensure that all tests assume they have to start and leave apps…
rfay Oct 6, 2018
a6a56ee
Add test in webserver's start.sh to make sure we mounted code success…
rfay Oct 6, 2018
def697b
Linter pacification
rfay Oct 6, 2018
3df1790
Simplify servertype php file
rfay Oct 7, 2018
e932d0f
Improvements to TestDdevStopMissingDirectory so it doesn't leave thin…
rfay Oct 7, 2018
e693b33
Allow increased timeouts on http checks
rfay Oct 7, 2018
828f690
Update drupal test site with 8.6.1 code, db, files
rfay Oct 7, 2018
0fa60b2
Update snapshot restore testdata with databases that have caching ena…
rfay Oct 8, 2018
8c298aa
Fix complexities from rebase of TestWebserverType()
rfay Oct 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/circle_vm_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x
# Basic tools

sudo apt-get update -qq
sudo apt-get install -qq mysql-client realpath zip nsis
sudo apt-get install -qq mysql-client realpath zip nsis jq

# golang of the version we want
sudo apt-get remove -qq golang && sudo rm -rf /usr/local/go &&
Expand Down
5 changes: 3 additions & 2 deletions containers/ddev-dbserver/files/etc/my.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ innodb_file_per_table=true

# LOGGING #
log-error = /var/log/mysqld.err
log-queries-not-using-indexes = 1
log-queries-not-using-indexes = 0
slow-query-log = 1
slow-query-log-file = /var/lib/mysql/mysql-slow.log
slow-query-log-file = /var/log/mysqld.err
long-query-time = 10

!includedir /etc/mysql/conf.d
7 changes: 4 additions & 3 deletions containers/ddev-webserver/files/healthcheck.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

# nginx and php-fpm healthcheck
# ddev-webserver healthcheck

set -eo pipefail

curl --fail localhost/phpstatus
curl --fail localhost:8025 >/dev/null 2>&1
curl --fail -s localhost/phpstatus >/dev/null && printf "phpstatus: OK, " || (printf "phpstatus FAILED" && exit 1)
ls /var/www/html >/dev/null && printf "/var/www/html: OK, " || (printf "/var/www/html access FAILED" && exit 2)
curl --fail -s localhost:8025 >/dev/null && printf "mailhog: OK" || (printf "mailhog FAILED" && exit 3)
2 changes: 2 additions & 0 deletions containers/ddev-webserver/files/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ if [ "$DDEV_XDEBUG_ENABLED" != "true" ]; then
disable_xdebug
fi

ls /var/www/html >/dev/null || (echo "/var/www/html does not seem to be healthy/mounted; docker may not be mounting it., exiting" && exit 101)

echo 'Server started'

exec /usr/bin/supervisord -n -c "/etc/supervisor/supervisord-${DDEV_WEBSERVER_TYPE}.conf"
5 changes: 5 additions & 0 deletions pkg/ddevapp/backdrop.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func NewBackdropSettings() *BackdropSettings {
const backdropMainSettingsTemplate = `<?php
{{ $config := . }}
// {{ $config.Signature }}: Automatically generated Backdrop settings file.

// Providing these in the main settings file is most likely to match the default config_directories.
$database = 'mysql://user:pass@localhost/database_name';
$config_directories['active'] = 'files/config_' . md5($database) . '/active';
$config_directories['staging'] = 'files/config_' . md5($database) . '/staging';
if (file_exists(__DIR__ . '/{{ $config.SiteSettingsLocal }}')) {
include __DIR__ . '/{{ $config.SiteSettingsLocal }}';
}
Expand Down