mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
add gaugeExec and pipelineRestart to whitelist for generalconfig
This commit is contained in:
parent
0951dcb5d6
commit
7312f87705
@ -42,7 +42,9 @@ public class CommonStepsTest extends BasePiperTest{
|
|||||||
public void generalConfigKeysSetPresentTest() {
|
public void generalConfigKeysSetPresentTest() {
|
||||||
|
|
||||||
def fieldName = 'GENERAL_CONFIG_KEYS'
|
def fieldName = 'GENERAL_CONFIG_KEYS'
|
||||||
def stepsWithoutGeneralConfigKeySet = fieldCheck(fieldName, fieldRelatedWhitelist)
|
// the steps added to the fieldRelatedWhitelist do not take the general config at all
|
||||||
|
def stepsWithoutGeneralConfigKeySet = fieldCheck(fieldName, fieldRelatedWhitelist.plus(['gaugeExecuteTests',
|
||||||
|
'pipelineRestartSteps']))
|
||||||
|
|
||||||
assertThat("Steps without ${fieldName} field (or that field is not a Set): ${stepsWithoutGeneralConfigKeySet}",
|
assertThat("Steps without ${fieldName} field (or that field is not a Set): ${stepsWithoutGeneralConfigKeySet}",
|
||||||
stepsWithoutGeneralConfigKeySet, is(empty()))
|
stepsWithoutGeneralConfigKeySet, is(empty()))
|
||||||
|
Loading…
Reference in New Issue
Block a user