Allow to disable require update password for default admin user (#6780)

* Fix FindTextFeatureTest selenium test (#6762)

* Allow to disable require update password for default admin user
6.19.x
Roman Iuvshyn 2017-10-17 23:48:15 +03:00 committed by GitHub
parent 7a3bb3f5b7
commit 7f6ec2e409
4 changed files with 8 additions and 0 deletions

View File

@ -540,6 +540,7 @@ CHE_SINGLE_PORT=false
#CHE_KEYCLOAK_REALM=che
#CHE_KEYCLOAK_CLIENT__ID=che-public
#CHE_KEYCLOAK_ALLOWED__CLOCK__SKEW__SEC=3
#CHE_KEYCLOAK_ADMIN_REQUIRE_UPDATE_PASSWORD=true
########################################################################################

View File

@ -65,6 +65,8 @@ node default {
$system_super_privileged_mode=getValue("SYSTEM_SUPER__PRIVILEGED__MODE", "false")
$che_keycloak_admin_require_update_password=getValue("CHE_KEYCLOAK_ADMIN_REQUIRE_UPDATE_PASSWORD", "true")
###############################
# Include base module
include base

View File

@ -23,7 +23,11 @@
"config" : { }
} ],
"disableableCredentialTypes" : [ "password" ],
<% if scope.lookupvar('keycloak::che_keycloak_admin_require_update_password') == 'true' -%>
"requiredActions" : [ "UPDATE_PASSWORD" ],
<% else -%>
"requiredActions" : [ ],
<% end -%>
"groups" : [ ]
} ]
}

View File

@ -105,6 +105,7 @@ public class FindText {
/** wait the 'Find Text' main form is closed */
public void waitFindTextMainFormIsClosed() {
loader.waitOnClosed();
new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
.until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.MAIN_FORM)));
}