Skip to content

Commit

Permalink
fix: Fix YAKS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Aug 22, 2023
1 parent dca6631 commit 6f15d37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion test/consumers/OpenAQConsumer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ Feature: OpenAQ consumer test
And expect Kafka message with body
"""
{
"locationId": "@assertThat(nullValue())@",
"location": "@assertThat(notNullValue())@",
"parameter": "@assertThat(notNullValue())@",
"date": "@assertThat(notNullValue())@",
"value": "@assertThat(notNullValue())@",
"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())@"
}
"""

Expand Down
4 changes: 3 additions & 1 deletion test/user-report/UserReportCrime.feature
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion test/user-report/UserReportHealth.feature
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 6f15d37

Please sign in to comment.