From 6f15d3710c110a8264a8594d725901c80f269eb8 Mon Sep 17 00:00:00 2001 From: Christoph Deppisch Date: Tue, 22 Aug 2023 23:13:29 +0200 Subject: [PATCH] fix: Fix YAKS tests --- test/consumers/OpenAQConsumer.feature | 7 ++++++- test/user-report/UserReportCrime.feature | 4 +++- test/user-report/UserReportHealth.feature | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/test/consumers/OpenAQConsumer.feature b/test/consumers/OpenAQConsumer.feature index 1179f71..bfee090 100644 --- a/test/consumers/OpenAQConsumer.feature +++ b/test/consumers/OpenAQConsumer.feature @@ -24,6 +24,7 @@ Feature: OpenAQ consumer test And expect Kafka message with body """ { + "locationId": "@assertThat(nullValue())@", "location": "@assertThat(notNullValue())@", "parameter": "@assertThat(notNullValue())@", "date": "@assertThat(notNullValue())@", @@ -31,7 +32,11 @@ Feature: OpenAQ consumer test "unit": "@assertThat(notNullValue())@", "coordinates": "@assertThat(notNullValue())@", "country": "@assertThat(notNullValue())@", - "city": "@assertThat(notNullValue())@" + "city": "@assertThat(notNullValue())@", + "isMobile": "@assertThat(nullValue())@", + "isAnalysis": "@assertThat(nullValue())@", + "entity": "@assertThat(nullValue())@", + "sensorType": "@assertThat(nullValue())@" } """ diff --git a/test/user-report/UserReportCrime.feature b/test/user-report/UserReportCrime.feature index fd6d4b8..85e4dbb 100644 --- a/test/user-report/UserReportCrime.feature +++ b/test/user-report/UserReportCrime.feature @@ -1,7 +1,7 @@ Feature: User report and gate-keeper component test Background: - Given URL: http://user-report-system.${YAKS_NAMESPACE}.svc.cluster.local + Given URL: http://user-report-system.${YAKS_NAMESPACE} Given HTTP request timeout is 60000 ms Given load variables application-test.properties Given variables @@ -19,12 +19,14 @@ Feature: User report and gate-keeper component test When load Camel K integration UserReportSystem.java with configuration | traits | knative-service.min-scale=1 | Then Camel K integration user-report-system should be running + Then Camel K integration user-report-system should print Listening on Scenario: Run GateKeeper Camel K integration Given Camel K integration property file application-test.properties When load Camel K integration GateKeeper.java with configuration | traits | knative-service.min-scale=1 | Given Camel K integration gate-keeper should be running + Then Camel K integration gate-keeper should print Listening on Scenario: Crime report is send to crime-data topic Given variable user is "user1" diff --git a/test/user-report/UserReportHealth.feature b/test/user-report/UserReportHealth.feature index 12fa06b..7677870 100644 --- a/test/user-report/UserReportHealth.feature +++ b/test/user-report/UserReportHealth.feature @@ -1,7 +1,7 @@ Feature: Health user report and gate-keeper component test Background: - Given URL: http://user-report-system.${YAKS_NAMESPACE}.svc.cluster.local + Given URL: http://user-report-system.${YAKS_NAMESPACE} Given HTTP request timeout is 60000 ms Given load variables application-test.properties Given variables @@ -19,12 +19,14 @@ Feature: Health user report and gate-keeper component test When load Camel K integration UserReportSystem.java with configuration | traits | knative-service.min-scale=1 | Then Camel K integration user-report-system should be running + Then Camel K integration user-report-system should print Listening on Scenario: Run GateKeeper Camel K integration Given Camel K integration property file application-test.properties When load Camel K integration GateKeeper.java with configuration | traits | knative-service.min-scale=1 | Given Camel K integration gate-keeper should be running + Then Camel K integration gate-keeper should print Listening on Scenario: Health report is send to health-data topic Given variable user is "user1"