Skip to content

Commit 7565c27

Browse files
authored
feat: Envoy connection lost test added (needs working targetURI) (#300)
Signed-off-by: Simon Schrottner <[email protected]>
1 parent fdce987 commit 7565c27

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

gherkin/connection.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,27 @@ Feature: flagd provider disconnect and reconnect functionality
6565
And a Boolean-flag with key "boolean-flag" and a default value "false"
6666
When the flag was evaluated with details
6767
Then the resolved details value should be "true"
68+
69+
@targetURI @in-process @reconnect
70+
Scenario: Re-Connection via TargetUri in-process
71+
Given an option "targetUri" of type "String" with value "envoy://localhost:<port>/sync.service"
72+
And a stable flagd provider
73+
And a ready event handler
74+
And a error event handler
75+
When a ready event was fired
76+
When the connection is lost for 3s
77+
Then the error event handler should have been executed
78+
Then the ready event handler should have been executed
79+
80+
@targetURI @in-process @reconnect @grace
81+
Scenario: Re-Connection via TargetUri in-process with grace period
82+
Given an option "targetUri" of type "String" with value "envoy://localhost:<port>/sync.service"
83+
And a stable flagd provider
84+
And a ready event handler
85+
And a stale event handler
86+
And a error event handler
87+
When a ready event was fired
88+
When the connection is lost for 3s
89+
Then the stale event handler should have been executed
90+
Then the error event handler should have been executed
91+
Then the ready event handler should have been executed

0 commit comments

Comments
 (0)