-
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-3204: if GROUPER_WEBCLIENT_IS_SSL is false, then the server.xml
secure="true" should be removed and scheme="http" adjusted
- Loading branch information
Showing
7 changed files
with
97 additions
and
16 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
46 changes: 46 additions & 0 deletions
46
container_files/tier-support/test/grouperContainerUnitTestUiNoSslOrClient.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,46 @@ | ||
| #!/bin/bash | ||
|
|
||
| testContainerUiNoSslOrClient() { | ||
|
|
||
| if [ "$#" -ne 0 ]; then | ||
| echo "You must enter exactly 0 command line arguments" | ||
| exit 1 | ||
| fi | ||
|
|
||
| dockerRemoveContainer | ||
|
|
||
| echo | ||
| echo '################' | ||
| echo Running container as ui without SSL with non-SSL client | ||
| echo "docker run --detach --name $containerName --publish 443:443 -e GROUPER_USE_SSL=false -e GROUPER_WEBCLIENT_IS_SSL=false $imageName ui" | ||
| echo '################' | ||
| echo | ||
|
|
||
| docker run --detach --name $containerName --publish 443:443 -e GROUPER_USE_SSL=false -e GROUPER_WEBCLIENT_IS_SSL=false $imageName ui | ||
| sleep $globalSleepSecondsAfterRun | ||
|
|
||
| assertFileExists /etc/httpd/conf.d/ssl-enabled.conf.dontuse | ||
| assertFileExists /etc/httpd/conf.d/ssl.conf.dontuse | ||
| assertFileNotExists /etc/httpd/conf.d/ssl-enabled.conf | ||
| assertFileNotExists /etc/httpd/conf.d/ssl.conf | ||
|
|
||
| assertFileNotContains /opt/tomee/conf/server.xml 'secure="true"' | ||
| assertFileNotContains /opt/tomee/conf/server.xml 'scheme="https"' | ||
| assertFileContains /opt/tomee/conf/server.xml 'scheme="http"' | ||
|
|
||
| assertEnvVar GROUPER_USE_SSL "false" | ||
| assertEnvVar GROUPER_WEBCLIENT_IS_SSL "false" | ||
|
|
||
|
|
||
| assertNumberOfTomcatProcesses 1 | ||
| assertNumberOfApacheProcesses 5 | ||
| assertNumberOfShibProcesses 1 | ||
|
|
||
| assertNotListeningOnPort 443 | ||
| assertListeningOnPort 80 | ||
| assertListeningOnPort 8009 | ||
| assertNotListeningOnPort 9001 | ||
|
|
||
|
|
||
| } | ||
| export -f testContainerUiNoSsl |
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