Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wdecoste committed Aug 1, 2017
1 parent 9e95bd9 commit ffc1483
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion os-jdg7-launch/added/launch/infinispan-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,12 @@ function configure_infinispan_endpoint() {
fi

if [ -n "${HTTPS_NAME}" -a -n "${HTTPS_PASSWORD}" -a -n "${HTTPS_KEYSTORE_DIR}" -a -n "${HTTPS_KEYSTORE}" ] ; then
encryption="<encryption security-realm=\"ApplicationRealm\" />"
if [ -n "$REST_SECURITY_DOMAIN" ]; then
encryption="<encryption security-realm=\"$REST_SECURITY_DOMAIN\" />"
else
encryption="<encryption security-realm=\"ApplicationRealm\" />"
fi

rest="\
<rest-connector name=\"rest-ssl\" socket-binding=\"rest-ssl\" cache-container=\"clustered\"> \
$rest_authentication \
Expand Down
4 changes: 3 additions & 1 deletion tests/features/datagrid/datagrid_rest.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Feature: Openshift JDG REST tests
| HTTPS_KEYSTORE_DIR | /etc/datagrid-secret-volume |
| HTTPS_KEYSTORE | keystore.jks |
| REST_SECURITY_DOMAIN | ManagementRealm |
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value ApplicationRealm on XPath //*[local-name()='rest-connector']/*[local-name()='encryption']/@security-realm
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value ManagementRealm on XPath //*[local-name()='rest-connector']/*[local-name()='encryption']/@security-realm

@jboss-datagrid-7/datagrid71-openshift
Scenario: Should create security realm that maps to security domain
Expand All @@ -67,3 +67,5 @@ Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml sho
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value jdg-openshift on XPath //*[local-name()='security-realms']/*[local-name()='security-realm']/@name
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value jdg-openshift on XPath //*[local-name()='security-realms']/*[local-name()='security-realm'][@name='jdg-openshift']/*[local-name()='authentication']/*[local-name()='jaas']/@name
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value mykeystorepass on XPath //*[local-name()='security-realms']/*[local-name()='security-realm'][@name='jdg-openshift']/*[local-name()='server-identities']/*[local-name()='ssl']/*[local-name()='keystore']/@keystore-password
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value jdg-openshift on XPath //*[local-name()='rest-connector']/*[local-name()='encryption']/@security-realm

0 comments on commit ffc1483

Please sign in to comment.