KEYCLOAK-11863 ConfigMigrationTest wrong assertion for Standalone configuration

This commit is contained in:
Martin Kanis 2019-11-21 10:48:57 +01:00 committed by Hynek Mlnařík
parent 6ee6001f39
commit 13b5463153
2 changed files with 16 additions and 2 deletions

View file

@ -670,10 +670,17 @@ if (outcome == failed) of /subsystem=microprofile-metrics-smallrye/:read-resourc
/subsystem=microprofile-metrics-smallrye/:add /subsystem=microprofile-metrics-smallrye/:add
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=security-enabled,value=false) /subsystem=microprofile-metrics-smallrye/:write-attribute(name=security-enabled,value=false)
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=exposed-subsystems,value=[*]) /subsystem=microprofile-metrics-smallrye/:write-attribute(name=exposed-subsystems,value=[*])
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly})
echo echo
end-if end-if
if (result == "Keycloak") of :read-attribute(name=product-name)
echo Adding microprofile-metrics-smallrye subsystem prefix attribute to Keycloak
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly})
else
echo Adding microprofile-metrics-smallrye subsystem prefix attribute to RH-SSO
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:jboss})
end-if
# Migrate from 6.0.1 to 7.0.0 # Migrate from 6.0.1 to 7.0.0
if (outcome == success) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource if (outcome == success) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource
echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem

View file

@ -559,10 +559,17 @@ if (outcome == failed) of /subsystem=microprofile-metrics-smallrye/:read-resourc
/subsystem=microprofile-metrics-smallrye/:add /subsystem=microprofile-metrics-smallrye/:add
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=security-enabled,value=false) /subsystem=microprofile-metrics-smallrye/:write-attribute(name=security-enabled,value=false)
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=exposed-subsystems,value=[*]) /subsystem=microprofile-metrics-smallrye/:write-attribute(name=exposed-subsystems,value=[*])
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly})
echo echo
end-if end-if
if (result == "Keycloak") of :read-attribute(name=product-name)
echo Adding microprofile-metrics-smallrye subsystem prefix attribute to Keycloak
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly})
else
echo Adding microprofile-metrics-smallrye subsystem prefix attribute to RH-SSO
/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:jboss})
end-if
# Migrate from 6.0.1 to 7.0.0 # Migrate from 6.0.1 to 7.0.0
if (outcome == success) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource if (outcome == success) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource
echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem