@Test public void testDecorateWithDatabus() { Map<String, SaltPillarProperties> servicePillar = new HashMap<>(); FluentConfigView fluentConfigView = new FluentConfigView.Builder() .build(); DatabusConfigView dataConfigView = new DatabusConfigView.Builder() .withEnabled(true) .withAccessKeyId("myAccessKeyId") .withAccessKeySecret("mySecret".toCharArray()) .withEndpoint("databusEndpoint") .build(); mockConfigServiceResults(dataConfigView, fluentConfigView, new MeteringConfigView.Builder().build()); Map<String, SaltPillarProperties> result = underTest.decoratePillar(servicePillar, createStack(), new Telemetry()); Map<String, Object> results = createMapFromFluentPillars(result, "databus"); assertEquals(results.get("accessKeyId"), "myAccessKeyId"); assertEquals(results.get("enabled"), true); }
public Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar, Stack stack, Telemetry telemetry) { return decoratePillar(servicePillar, stack, telemetry, null); }
TelemetryDecorator { public Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar, Stack stack, Telemetry telemetry) { return decoratePillar(servicePillar, stack, telemetry, null); } }
TelemetryDecorator { public Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar, Stack stack, Telemetry telemetry) { return decoratePillar(servicePillar, stack, telemetry, null); } TelemetryDecorator(DatabusConfigService databusConfigService,
            FluentConfigService fluentConfigService,
            MeteringConfigService meteringConfigService,
            MonitoringConfigService monitoringConfigService,
            TelemetryCommonConfigService telemetryCommonConfigService,
            AltusMachineUserService altusMachineUserService,
            VmLogsService vmLogsService,
            @Value("${info.app.version:}") String version); }
TelemetryDecorator { public Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar, Stack stack, Telemetry telemetry) { return decoratePillar(servicePillar, stack, telemetry, null); } TelemetryDecorator(DatabusConfigService databusConfigService,
            FluentConfigService fluentConfigService,
            MeteringConfigService meteringConfigService,
            MonitoringConfigService monitoringConfigService,
            TelemetryCommonConfigService telemetryCommonConfigService,
            AltusMachineUserService altusMachineUserService,
            VmLogsService vmLogsService,
            @Value("${info.app.version:}") String version); Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar,
            Stack stack, Telemetry telemetry); Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar,
            Stack stack, Telemetry telemetry, DataBusCredential dataBusCredential); }
TelemetryDecorator { public Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar, Stack stack, Telemetry telemetry) { return decoratePillar(servicePillar, stack, telemetry, null); } TelemetryDecorator(DatabusConfigService databusConfigService,
            FluentConfigService fluentConfigService,
            MeteringConfigService meteringConfigService,
            MonitoringConfigService monitoringConfigService,
            TelemetryCommonConfigService telemetryCommonConfigService,
            AltusMachineUserService altusMachineUserService,
            VmLogsService vmLogsService,
            @Value("${info.app.version:}") String version); Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar,
            Stack stack, Telemetry telemetry); Map<String, SaltPillarProperties> decoratePillar(Map<String, SaltPillarProperties> servicePillar,
            Stack stack, Telemetry telemetry, DataBusCredential dataBusCredential);  }