-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@e2e | ||
Feature: MindWM Ping-pong EDA test | ||
Background: | ||
Given A MindWM environment | ||
Then all nodes in Kubernetes are ready | ||
|
||
Scenario: Ping <context> | ||
|
||
When God creates a MindWM context with the name "<context>" | ||
Then the context should be ready and operable | ||
Then following knative service is in ready state in "context-<context>" namespace | ||
| Knative service name | | ||
| pong | | ||
|
||
When God creates a MindWM user resource with the name "<username>" and connects it to the context "<context>" | ||
Then the user resource should be ready and operable | ||
|
||
When God creates a MindWM host resource with the name "<host>" and connects it to the user "<username>" | ||
Then the host resource should be ready and operable | ||
|
||
When God creates a new cloudevent | ||
And sets cloudevent "ce-id" to "<cloudevent_id>" | ||
And sets cloudevent "traceparent" to "<traceparent>" | ||
And sets cloudevent "ce-subject" to "#ping" | ||
And sets cloudevent "ce-source" to "org.mindwmv1.<username>.<host>.L3RtcC90bXV4LTEwMDAvZGVmYXVsdA==.09fb195c-c419-6d62-15e0-51b6ee990922.23.36" | ||
And sets cloudevent "ce-type" to "org.mindwm.v1.iodocument" | ||
And sends cloudevent to "context-broker" in "context-<context>" namespace | ||
Then the trace with "<traceparent>" should appear in TraceQL | ||
|
||
Examples: | ||
| context | username | host | cloudevent_id | traceparent | | ||
| green4 | amanda4 | pi6-host | 442af213-c860-4535-b639-355f13b2d442 | 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00 | | ||
|
||
|
||
|
||
Scenario: Cleanup <username>@<host> in <context> | ||
When God deletes the MindWM host resource "<host>" | ||
Then the host "<host>" should be deleted | ||
|
||
When God deletes the MindWM user resource "<username>" | ||
|
||
When God deletes the MindWM context resource "<context>" | ||
|
||
Examples: | ||
| context | username | host | | ||
| green4 | amanda4 | pi6-host | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters