-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(flipt/validate): build entire snapshot on validate (#2093)
* refactor(flipt/validate): build entire snapshot on validate * fix(cue): update test to use new validate interface * refactor(flipt/validate): move multiline print into format with verb %v * refactor(cue): let rollout value be optional and default to false * fix(cue): cheer up linters when unwrapping joined errors * fix!(storage/fs): return error when distribution references unknown variant --------- Co-authored-by: Mark Phelps <[email protected]>
- Loading branch information
1 parent
29d3f9d
commit c8d71ad
Showing
12 changed files
with
246 additions
and
157 deletions.
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
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
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
12 changes: 12 additions & 0 deletions
12
internal/storage/fs/fixtures/invalid_boolean_flag_segment/features.yml
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,12 @@ | ||
namespace: fruit | ||
flags: | ||
- key: apple | ||
name: Apple | ||
type: BOOLEAN_FLAG_TYPE | ||
rollouts: | ||
- segment: | ||
key: unknown | ||
segments: | ||
- key: internal | ||
name: Internal | ||
match_type: ANY_MATCH_TYPE |
16 changes: 16 additions & 0 deletions
16
internal/storage/fs/fixtures/invalid_variant_flag_distribution/features.yml
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,16 @@ | ||
namespace: fruit | ||
flags: | ||
- key: apple | ||
name: Apple | ||
variants: | ||
- key: royal-gala | ||
- key: pink-lady | ||
rules: | ||
- segment: internal | ||
distributions: | ||
- variant: braeburn | ||
rollout: 50 | ||
segments: | ||
- key: internal | ||
name: Internal | ||
match_type: ANY_MATCH_TYPE |
13 changes: 13 additions & 0 deletions
13
internal/storage/fs/fixtures/invalid_variant_flag_segment/features.yml
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,13 @@ | ||
namespace: fruit | ||
flags: | ||
- key: apple | ||
name: Apple | ||
variants: | ||
- key: royal-gala | ||
- key: pink-lady | ||
rules: | ||
- segment: unknown | ||
segments: | ||
- key: internal | ||
name: Internal | ||
match_type: ANY_MATCH_TYPE |
Oops, something went wrong.