Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit dd6b05e3 authored by Ahmed GHOUILI's avatar Ahmed GHOUILI
Browse files

shorten the waiting duration to 20 sec

parent 16811554
No related branches found
No related tags found
No related merge requests found
Pipeline #222566 failed
......@@ -10,4 +10,4 @@ smp.keystore.password={DEC}{test123}
smp.log.folder=./logs/
smp.automation.authentication.external.tls.SSLClientCert.enabled=true
smp.cluster.enabled=true
smp.property.refresh.cronJobExpression=0 0/2 * * * ?
smp.property.refresh.cronJobExpression=0/10 * * * * ?
......@@ -10,4 +10,4 @@ smp.keystore.password={DEC}{test123}
smp.log.folder=./logs/
smp.automation.authentication.external.tls.SSLClientCert.enabled=true
smp.cluster.enabled=true
smp.property.refresh.cronJobExpression=0 0/2 * * * ?
smp.property.refresh.cronJobExpression=0/10 * * * * ?
......@@ -959,7 +959,7 @@ class SMP implements AutoCloseable
}
//-------------- Set the Smp configuration property value -----------------
def static setSmpConfigProperty(log, context, propName, newValue, waitForApp=false, waitDuration="3", authenticationUser=SYSTEM_USER, authenticationPwd=SYSTEM_PWD){
def static setSmpConfigProperty(log, context, propName, newValue, waitForApp=false, waitDuration="20", authenticationUser=SYSTEM_USER, authenticationPwd=SYSTEM_PWD){
debugLog("Calling \"setSmpConfigProperty\".", log)
debugLog(" setSmpConfigProperty [][] Setting property \"$propName\" to \"$newValue\".", log)
def updatedProp=[:]
......@@ -1000,7 +1000,7 @@ class SMP implements AutoCloseable
}
assert((commandResult[1]==~ /(?s).*HTTP\/\d.\d\s*200.*/) || commandResult[1].contains("successfully")),"Error:setSmpConfigProperty: Error while trying to connect to the SMP. CommandResult[0]:" +commandResult[0] + "| commandResult[1]:" + commandResult[1]
if(waitForApp){
waitFor(log,waitDuration, "min")
waitFor(log,waitDuration, "sec")
}
debugLog(" setSmpConfigProperty [][] Property \"$propName\" update done successfully.", log)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment