"app.webclient.trust-store=./config/truststore.jks", //
"app.webclient.trust-store-used=true", //
"app.configuration-filepath=./src/test/resources/test_application_configuration.json", //
- "app.pm-files-path=/tmp/dmaapadaptor", //
+ "app.pm-files-path=/tmp/pmproducer", //
"app.s3.endpointOverride=" //
})
class ApplicationTest {
}
private void waitForRegistration() {
+ producerRegistrationTask.registerTypesAndProducer().block();
// Register producer, Register types
await().untilAsserted(() -> assertThat(icsSimulatorController.testResults.registrationInfo).isNotNull());
- producerRegistrationTask.supervisionTask().block();
+ producerRegistrationTask.registerTypesAndProducer().block();
assertThat(icsSimulatorController.testResults.registrationInfo.supportedTypeIds).hasSize(this.types.size());
assertThat(producerRegistrationTask.isRegisteredInIcs()).isTrue();
await().untilAsserted(() -> assertThat(this.jobs.size()).isEqualTo(1));
}
- @Test
- void testReRegister() throws Exception {
- // Wait foir register types and producer
- waitForRegistration();
-
- // Clear the registration, should trigger a re-register
- icsSimulatorController.testResults.reset();
- producerRegistrationTask.supervisionTask().block();
- await().untilAsserted(() -> assertThat(icsSimulatorController.testResults.registrationInfo).isNotNull());
- assertThat(icsSimulatorController.testResults.registrationInfo.supportedTypeIds).hasSize(this.types.size());
-
- // Just clear the registerred types, should trigger a re-register
- icsSimulatorController.testResults.types.clear();
- await().untilAsserted(() -> assertThat(icsSimulatorController.testResults.registrationInfo.supportedTypeIds)
- .hasSize(this.types.size()));
- }
-
@Test
@SuppressWarnings("squid:S2925") // "Thread.sleep" should not be used in tests.
void testZZActuator() throws Exception {