Skip to content

Commit 1f6845c

Browse files
authored
fix: Refactor in-process sync port scenarios (#318)
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
1 parent 7d7d518 commit 1f6845c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

gherkin/config.feature

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,6 @@ Feature: Configuration Test
224224
| option | env | type | value |
225225
| fatalStatusCodes | FLAGD_FATAL_STATUS_CODES | StringList | C, D |
226226

227-
@in-process @sync-port
228-
Scenarios: In-Process Sync Port
229-
| option | env | type | value |
230-
| port | FLAGD_SYNC_PORT | Integer | 1234 |
231-
232227
@in-process @legacy-sync-port
233228
Scenarios: In-Process Legacy Port (backwards compatibility)
234229
| option | env | type | value |
@@ -279,6 +274,16 @@ Feature: Configuration Test
279274
| option | env | type | value |
280275
| providerId | FLAGD_PROVIDER_ID | String | env-providerId |
281276

277+
@in-process @sync-port
278+
Scenario Outline: Dedicated Config via Env_var special In-process case
279+
Given an environment variable "<env>" with value "<value>"
280+
And an option "resolver" of type "ResolverType" with value "in-process"
281+
When a config was initialized
282+
Then the option "<option>" of type "<type>" should have the value "<value>"
283+
Scenarios:
284+
| option | env | type | value |
285+
| port | FLAGD_SYNC_PORT | Integer | 1234 |
286+
282287
@file
283288
Scenario Outline: Dedicated Config via Env_var special file case
284289
Given an environment variable "<env>" with value "<value>"
@@ -375,5 +380,6 @@ Feature: Configuration Test
375380
Scenario: FLAGD_SYNC_PORT takes priority over FLAGD_PORT
376381
Given an environment variable "FLAGD_SYNC_PORT" with value "9999"
377382
And an environment variable "FLAGD_PORT" with value "8888"
383+
And an option "resolver" of type "ResolverType" with value "in-process"
378384
When a config was initialized
379385
Then the option "port" of type "Integer" should have the value "9999"

0 commit comments

Comments
 (0)