@@ -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