File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed
os-eap64-launch/added/launch
os-eap7-launch/added/launch
os-jdg7-launch/added/launch Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,5 @@ function configure_administration() {
25
25
26
26
local mgmt_iface_replace_str=" security-realm=\" ManagementRealm\" "
27
27
sed -i " s|><!-- ##MGMT_IFACE_REALM## -->| ${mgmt_iface_replace_str} >|" " $CONFIG_FILE "
28
- else
29
- sed -i " s|##MGMT_IFACE_REALM##||" " $CONFIG_FILE "
30
28
fi
31
29
}
Original file line number Diff line number Diff line change @@ -25,7 +25,5 @@ function configure_administration() {
25
25
26
26
local mgmt_iface_replace_str=" security-realm=\" ManagementRealm\" "
27
27
sed -i " s|><!-- ##MGMT_IFACE_REALM## -->| ${mgmt_iface_replace_str} >|" " $CONFIG_FILE "
28
- else
29
- sed -i " s|##MGMT_IFACE_REALM##||" " $CONFIG_FILE "
30
28
fi
31
29
}
Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ function configure() {
9
9
}
10
10
11
11
function add_management_interface_realm() {
12
- if [ -n " $MGMT_IFACE_REALM " ]; then
13
- local mgmt_iface_replace_str=" security-realm=\" $MGMT_IFACE_REALM \" "
14
- fi
12
+ if [ -n " $MGMT_IFACE_REALM " ]; then
13
+ local mgmt_iface_replace_str=" security-realm=\" $MGMT_IFACE_REALM \" "
15
14
16
- sed -i " s|<http-interface http-upgrade-enabled=\" true\" console-enabled=\" false\" >|<http-interface http-upgrade-enabled=\" true\" console-enabled=\" false\" ${mgmt_iface_replace_str} >|" " $CONFIG_FILE "
15
+ sed -i " s|><!-- ##MGMT_IFACE_REALM## -->| ${mgmt_iface_replace_str} >|" " $CONFIG_FILE "
16
+
17
+ sed -i " s|<http-interface http-upgrade-enabled=\" true\" console-enabled=\" false\" security-realm=\" ManagementRealm\" >|<http-interface http-upgrade-enabled=\" true\" console-enabled=\" false\" ${mgmt_iface_replace_str} >|" " $CONFIG_FILE "
18
+ fi
17
19
}
Original file line number Diff line number Diff line change @@ -6,3 +6,12 @@ Feature: JDG OpenShift simple authentication
6
6
| variable | value |
7
7
| MGMT_IFACE_REALM | ApplicationRealm |
8
8
Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value ApplicationRealm on XPATH //*[local-name()='http-interface' ]/@security-realm
9
+
10
+ Scenario : check management interface security realm
11
+ When container is started with env
12
+ | variable | value |
13
+ | ADMIN_USERNAME | tombrady |
14
+ | ADMIN_PASSWORD | 5Rings !!! |
15
+ | MGMT_IFACE_REALM | ApplicationRealm |
16
+ Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value ApplicationRealm on XPATH //*[local-name()='http-interface' ]/@security-realm
17
+
Original file line number Diff line number Diff line change @@ -9,9 +9,3 @@ Feature: JDG OpenShift simple authentication
9
9
Then file /opt/datagrid/standalone/configuration/application-users.properties should contain openshift=7d540d09717694371fc426a7190c6021
10
10
And file /opt/datagrid/standalone/configuration/application-roles.properties should contain openshift=REST,admin
11
11
12
- @jboss-datagrid-7
13
- Scenario : check management interface security realm
14
- When container is started with env
15
- | variable | value |
16
- | MGMT_IFACE_REALM | ApplicationRealm |
17
- Then XML file /opt/datagrid/standalone/configuration/clustered-openshift.xml should contain value ApplicationRealm on XPATH //*[local-name()='http-interface' ]/@security-realm
You can’t perform that action at this time.
0 commit comments