-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GRP-3021: dont configure ssl chain file if not there
- Loading branch information
Showing
10 changed files
with
236 additions
and
49 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 was deleted.
Oops, something went wrong.
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
69 changes: 69 additions & 0 deletions
69
container_files/tier-support/test/grouperContainerUnitTestUi2.sh
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,69 @@ | ||
| #!/bin/bash | ||
|
|
||
| testContainerUi2() { | ||
|
|
||
| if [ "$#" -ne 0 ]; then | ||
| echo "You must enter exactly 0 command line arguments" | ||
| exit 1 | ||
| fi | ||
|
|
||
| dockerRemoveContainer | ||
|
|
||
| echo | ||
| echo '################' | ||
| echo Running container as ui | ||
| echo "docker run --detach --name $containerName --publish 443:443 -e GROUPER_SSL_USE_STAPLING=false -e GROUPER_SSL_CERT_FILE=/a/b/cert -e GROUPER_SSL_KEY_FILE=/a/b/key -e GROUPER_SSL_CHAIN_FILE=/a/b/chain $imageName ui" | ||
| echo '################' | ||
| echo | ||
|
|
||
| docker run --detach --name $containerName --publish 443:443 -e GROUPER_SSL_USE_STAPLING=false -e GROUPER_SSL_CERT_FILE=/a/b/cert -e GROUPER_SSL_KEY_FILE=/a/b/key -e GROUPER_SSL_CHAIN_FILE=/a/b/chain $imageName ui | ||
| sleep $globalSleepSecondsAfterRun | ||
|
|
||
|
|
||
| assertFileContains /opt/tomee/conf/server.xml 'address="0.0.0.0"' | ||
| assertFileContains /opt/tomee/conf/server.xml 'allowedRequestAttributesPattern=".*"' | ||
|
|
||
| assertFileExists /opt/grouper/grouperWebapp/WEB-INF/libWs/axis2-kernel-1.6.4.jar | ||
| assertFileNotExists /opt/grouper/grouperWebapp/WEB-INF/lib/axis2-kernel-1.6.4.jar | ||
| assertFileExists /opt/grouper/grouperWebapp/WEB-INF/libScim/stax-api-1.0-2.jar | ||
| assertFileNotExists /opt/grouper/grouperWebapp/WEB-INF/lib/stax-api-1.0-2.jar | ||
| assertFileExists "/opt/grouper/grouperWebapp/WEB-INF/lib/grouper-messaging-activemq-$grouperVersion.jar" | ||
| assertFileExists "/opt/grouper/grouperWebapp/WEB-INF/libUiAndDaemon/grouper-messaging-activemq-$grouperVersion.jar" | ||
|
|
||
| assertFileContains /etc/httpd/conf/httpd.conf "Listen 80" | ||
| assertFileContains /opt/tier-support/supervisord.conf "program:shibbolethsp" | ||
| assertFileContains /opt/tier-support/supervisord.conf "program:tomee" | ||
| assertFileContains /opt/tier-support/supervisord.conf "program:httpd" | ||
| assertFileContains /opt/tier-support/supervisord.conf "user=shibd" | ||
| assertFileNotContains /opt/tier-support/supervisord.conf "program:hsqldb" | ||
| assertFileNotContains /opt/tier-support/supervisord.conf "__" | ||
|
|
||
| assertFileContains /etc/httpd/conf.d/ssl-enabled.conf "SSLUseStapling off" | ||
| assertFileContains /etc/httpd/conf.d/ssl-enabled.conf "SSLCertificateFile /a/b/cert" | ||
| assertFileContains /etc/httpd/conf.d/ssl-enabled.conf "SSLCertificateKeyFile /a/b/key" | ||
| assertFileContains /etc/httpd/conf.d/ssl-enabled.conf "SSLCertificateChainFile /a/b/chain" | ||
| assertFileContains /etc/httpd/conf.d/ssl-enabled.conf "Listen 443 https" | ||
| assertFileNotContains /etc/httpd/conf.d/ssl-enabled.conf "__" | ||
| assertFileNotContains /etc/httpd/conf.d/ssl-enabled.conf cachain.pem | ||
| assertFileNotContains /etc/httpd/conf.d/ssl-enabled.conf /etc/pki/tls/certs/localhost.crt | ||
| assertEnvVar GROUPER_SSL_USE_CHAIN_FILE "true" | ||
| assertEnvVar GROUPER_SSL_CERT_FILE "/a/b/cert" | ||
| assertEnvVar GROUPER_SSL_KEY_FILE "/a/b/key" | ||
| assertEnvVar GROUPER_SSL_CHAIN_FILE "/a/b/chain" | ||
| assertEnvVar GROUPER_SSL_USE_STAPLING "false" | ||
|
|
||
| assertNumberOfTomcatProcesses 1 | ||
| # bad cert apache wont start | ||
| assertNumberOfApacheProcesses 0 | ||
| assertNumberOfShibProcesses 1 | ||
|
|
||
| assertNotListeningOnPort 443 | ||
| assertNotListeningOnPort 80 | ||
| assertListeningOnPort 8009 | ||
| assertNotListeningOnPort 9001 | ||
| assertListeningOnPort 8080 | ||
| #assertListeningOnPort 8005 | ||
|
|
||
|
|
||
| } | ||
| export -f testContainerUi2 |
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
Oops, something went wrong.