-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for config export through UI (#390)
* Make sure test fails with default * Add environment variables to ensure config export works through UI * Don't mess with the Makefile * fixup login * follow redirects on login * see if /tmp/config.tar.gz is still left around * Move test into bash script
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 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
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
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
|
||
ULI=$(make login | grep traefik) | ||
echo "getting cookie from $ULI" | ||
COOKIE=$(curl -L -s -c - "${ULI}") | ||
|
||
# try exporting the config through the UI | ||
STATUS=$(curl -s \ | ||
--cookie <(echo "$COOKIE") \ | ||
-w '%{http_code}' \ | ||
-o /dev/null \ | ||
https://islandora.traefik.me/admin/config/development/configuration/full/export-download) | ||
|
||
# make sure the config export worked | ||
if [ ${STATUS} -ne 200 ]; then | ||
echo "Could not export config through Drupal UI" | ||
echo ${STATUS} | ||
exit 1 | ||
fi |