-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
- Loading branch information
Showing
16 changed files
with
350 additions
and
16 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an invalid bucking value is invalid", | ||
"flags": { | ||
"fractional-invalid-bucketing": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"clubs": "clubs", | ||
"diamonds": "diamonds", | ||
"hearts": "hearts", | ||
"spades": "spades", | ||
"none": "none" | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"fractional": [ | ||
"invalid", | ||
["clubs", 25], | ||
["diamonds", 25], | ||
["hearts", 25], | ||
["spades", 25] | ||
] | ||
} | ||
} | ||
} | ||
} |
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,25 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an invalid weight value is invalid", | ||
"flags": { | ||
"fractional-invalid-weighting": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"clubs": "clubs", | ||
"diamonds": "diamonds", | ||
"hearts": "hearts", | ||
"spades": "spades", | ||
"none": "none" | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"fractional": [ | ||
["clubs", 25], | ||
["diamonds", "25"], | ||
["hearts", 25], | ||
["spades", 25] | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an an int is not a valid ends_with param", | ||
"flags": { | ||
"invalid-ends-with-param": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"prefix": 1, | ||
"postfix": 2 | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"if": [ | ||
{ | ||
"ends_with": [{ "var": "id" }, 0] | ||
}, | ||
"postfix", | ||
"prefix" | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an unsupported $flagd property is invalid", | ||
"flags": { | ||
"invalid-flagd-props": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"yes": "1", | ||
"no": "2" | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"if": [ | ||
{ | ||
"==": [{ "var": "$flagd.myprop" }, { "var": "someprop" }] | ||
}, | ||
"yes", | ||
"no" | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an an int is not a valid starts_with param", | ||
"flags": { | ||
"invalid-starts-with-param": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"prefix": 1, | ||
"postfix": 2 | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"if": [ | ||
{ | ||
"starts_with": [{ "var": "id" }, 0] | ||
}, | ||
"prefix", | ||
"postfix" | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an invalid range specifier is invalid", | ||
"flags": { | ||
"sem-ver-invalid-range-specifier": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"equal": "equal", | ||
"not": "not" | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"if": [ | ||
{ | ||
"sem_ver": [{ "var": "version" }, "*", "2.0.0"] | ||
}, | ||
"equal", | ||
"not" | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "../../flagd-definitions.json", | ||
"$comments": "tests that an invalid version is invalid", | ||
"flags": { | ||
"sem-ver-invalid-ver-expression": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"equal": "equal", | ||
"not": "not" | ||
}, | ||
"defaultVariant": "none", | ||
"targeting": { | ||
"if": [ | ||
{ | ||
"sem_ver": [{ "var": "version" }, "=", "2.0.0.0"] | ||
}, | ||
"equal", | ||
"not" | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.