diff options
author | HÃ¥kon Hallingstad <hakon@verizonmedia.com> | 2020-04-15 17:03:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 17:03:26 +0200 |
commit | 1eecdac6160ea9f7ed6de5e3fc478bc211561dc2 (patch) | |
tree | 5e9fc0a7b6735521c3d47d4ce9b4ee1a113b23e7 /controller-api/src/test/resources | |
parent | 7c1004ffb82e0512278826d24edf9dbdc91186e1 (diff) | |
parent | 4422d42987bb9aefa92abd4cb4135798479edb6a (diff) |
Merge pull request #12882 from vespa-engine/hakonhall/validate-deserialization-of-flag-data
Validate deserialization of flag data
Diffstat (limited to 'controller-api/src/test/resources')
2 files changed, 17 insertions, 0 deletions
diff --git a/controller-api/src/test/resources/system-flags-with-unknown-field-name/flags/my-test-flag/main.prod.us-west-1.json b/controller-api/src/test/resources/system-flags-with-unknown-field-name/flags/my-test-flag/main.prod.us-west-1.json new file mode 100644 index 00000000000..c41083fc7ab --- /dev/null +++ b/controller-api/src/test/resources/system-flags-with-unknown-field-name/flags/my-test-flag/main.prod.us-west-1.json @@ -0,0 +1,15 @@ +{ + "id" : "my-test-flag", + "rules" : [ + { + "condition": [ + { + "type": "whitelist", + "dimension": "hostname", + "values": ["foo.com"] + } + ], + "value" : "default" + } + ] +} diff --git a/controller-api/src/test/resources/system-flags/flags/flag-with-empty-data/main.json b/controller-api/src/test/resources/system-flags/flags/flag-with-empty-data/main.json index cef75be02b7..29160dc0081 100644 --- a/controller-api/src/test/resources/system-flags/flags/flag-with-empty-data/main.json +++ b/controller-api/src/test/resources/system-flags/flags/flag-with-empty-data/main.json @@ -1,7 +1,9 @@ { + "comment": "comment a", "id" : "flag-with-empty-data", "rules" : [ { + "comment": "comment b", "value" : "main" } ] |