Search in sources :

Example 1 with StackPatchTypeConfig

use of com.sequenceiq.cloudbreak.job.stackpatcher.config.StackPatchTypeConfig in project cloudbreak by hortonworks.

the class ExistingStackPatcherJobInitializerTest method emptyEnabled.

@Test
void emptyEnabled() {
    StackPatchTypeConfig disabledConfig = getConfig(false);
    when(config.getPatchConfigs()).thenReturn(Map.of(UNBOUND_RESTART, disabledConfig));
    underTest.initJobs();
    verifyNoInteractions(jobService);
}
Also used : StackPatchTypeConfig(com.sequenceiq.cloudbreak.job.stackpatcher.config.StackPatchTypeConfig) Test(org.junit.jupiter.api.Test)

Example 2 with StackPatchTypeConfig

use of com.sequenceiq.cloudbreak.job.stackpatcher.config.StackPatchTypeConfig in project cloudbreak by hortonworks.

the class ExistingStackPatcherJobInitializerTest method getConfig.

private StackPatchTypeConfig getConfig(boolean enabled) {
    StackPatchTypeConfig disabledConfig = new StackPatchTypeConfig();
    disabledConfig.setEnabled(enabled);
    return disabledConfig;
}
Also used : StackPatchTypeConfig(com.sequenceiq.cloudbreak.job.stackpatcher.config.StackPatchTypeConfig)

Aggregations

StackPatchTypeConfig (com.sequenceiq.cloudbreak.job.stackpatcher.config.StackPatchTypeConfig)2 Test (org.junit.jupiter.api.Test)1