Skip to content

Commit d28dadd

Browse files
author
Claude
committed
chore: reformat testdata
Signed-off-by: Claude <[email protected]>
1 parent 6b9fb5d commit d28dadd

16 files changed

+1153
-819
lines changed

internal/ext/testdata/export.json

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,98 @@
1-
{"version":"1.4","namespace":{"key":"default","name":"default","description":"default namespace"},"flags":[{"key":"flag1","name":"flag1","type":"VARIANT_FLAG_TYPE","description":"description","enabled":true,"metadata":{"area":true,"label":"variant"},"variants":[{"key":"variant1","name":"variant1","attachment":{"answer":{"everything":42},"happy":true,"list":[1,0,2],"name":"Niels","nothing":null,"object":{"currency":"USD","value":42.99},"pi":3.141}},{"default":true,"key":"foo"}],"rules":[{"segment":"segment1","distributions":[{"variant":"variant1","rollout":100}]},{"segment":{"keys":["segment1","segment2"],"operator":"AND_SEGMENT_OPERATOR"}}]},{"key":"flag2","name":"flag2","type":"BOOLEAN_FLAG_TYPE","description":"a boolean flag","enabled":false,"metadata":{"area":12,"label":"bool"},"rollouts":[{"id":"1","description":"enabled for internal users","segment":{"key":"internal_users","value":true}},{"id":"2","description":"enabled for 50%","threshold":{"percentage":50,"value":true}}]}],"segments":[{"key":"segment1","name":"segment1","description":"description","constraints":[{"id":"1","type":"STRING_COMPARISON_TYPE","property":"foo","operator":"eq","value":"baz","description":"desc"},{"id":"2","type":"STRING_COMPARISON_TYPE","property":"fizz","operator":"neq","value":"buzz","description":"desc"}],"match_type":"ANY_MATCH_TYPE"},{"key":"segment2","name":"segment2","description":"description","match_type":"ANY_MATCH_TYPE"}]}
1+
{
2+
"version": "1.4",
3+
"namespace": {
4+
"key": "default",
5+
"name": "default",
6+
"description": "default namespace"
7+
},
8+
"flags": [
9+
{
10+
"key": "flag1",
11+
"name": "flag1",
12+
"type": "VARIANT_FLAG_TYPE",
13+
"description": "description",
14+
"enabled": true,
15+
"metadata": { "area": true, "label": "variant" },
16+
"variants": [
17+
{
18+
"key": "variant1",
19+
"name": "variant1",
20+
"attachment": {
21+
"answer": { "everything": 42 },
22+
"happy": true,
23+
"list": [1, 0, 2],
24+
"name": "Niels",
25+
"nothing": null,
26+
"object": { "currency": "USD", "value": 42.99 },
27+
"pi": 3.141
28+
}
29+
},
30+
{ "default": true, "key": "foo" }
31+
],
32+
"rules": [
33+
{
34+
"segment": "segment1",
35+
"distributions": [{ "variant": "variant1", "rollout": 100 }]
36+
},
37+
{
38+
"segment": {
39+
"keys": ["segment1", "segment2"],
40+
"operator": "AND_SEGMENT_OPERATOR"
41+
}
42+
}
43+
]
44+
},
45+
{
46+
"key": "flag2",
47+
"name": "flag2",
48+
"type": "BOOLEAN_FLAG_TYPE",
49+
"description": "a boolean flag",
50+
"enabled": false,
51+
"metadata": { "area": 12, "label": "bool" },
52+
"rollouts": [
53+
{
54+
"id": "1",
55+
"description": "enabled for internal users",
56+
"segment": { "key": "internal_users", "value": true }
57+
},
58+
{
59+
"id": "2",
60+
"description": "enabled for 50%",
61+
"threshold": { "percentage": 50, "value": true }
62+
}
63+
]
64+
}
65+
],
66+
"segments": [
67+
{
68+
"key": "segment1",
69+
"name": "segment1",
70+
"description": "description",
71+
"constraints": [
72+
{
73+
"id": "1",
74+
"type": "STRING_COMPARISON_TYPE",
75+
"property": "foo",
76+
"operator": "eq",
77+
"value": "baz",
78+
"description": "desc"
79+
},
80+
{
81+
"id": "2",
82+
"type": "STRING_COMPARISON_TYPE",
83+
"property": "fizz",
84+
"operator": "neq",
85+
"value": "buzz",
86+
"description": "desc"
87+
}
88+
],
89+
"match_type": "ANY_MATCH_TYPE"
90+
},
91+
{
92+
"key": "segment2",
93+
"name": "segment2",
94+
"description": "description",
95+
"match_type": "ANY_MATCH_TYPE"
96+
}
97+
]
98+
}

internal/ext/testdata/export.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -4,81 +4,81 @@ namespace:
44
name: default
55
description: default namespace
66
flags:
7-
- key: flag1
8-
name: flag1
9-
type: VARIANT_FLAG_TYPE
10-
description: description
11-
enabled: true
12-
metadata:
13-
area: true
14-
label: variant
15-
variants:
16-
- key: variant1
17-
name: variant1
18-
attachment:
19-
answer:
20-
everything: 42
21-
happy: true
22-
list:
23-
- 1
24-
- 0
25-
- 2
26-
name: Niels
27-
nothing: null
28-
object:
29-
currency: USD
30-
value: 42.99
31-
pi: 3.141
32-
- default: true
33-
key: foo
34-
rules:
35-
- segment: segment1
36-
distributions:
37-
- variant: variant1
38-
rollout: 100
39-
- segment:
40-
keys:
41-
- segment1
42-
- segment2
43-
operator: AND_SEGMENT_OPERATOR
44-
- key: flag2
45-
name: flag2
46-
type: BOOLEAN_FLAG_TYPE
47-
description: a boolean flag
48-
enabled: false
49-
metadata:
50-
area: 12
51-
label: bool
52-
rollouts:
53-
- id: "1"
54-
description: enabled for internal users
55-
segment:
56-
key: internal_users
57-
value: true
58-
- id: "2"
59-
description: enabled for 50%
60-
threshold:
61-
percentage: 50
62-
value: true
7+
- key: flag1
8+
name: flag1
9+
type: VARIANT_FLAG_TYPE
10+
description: description
11+
enabled: true
12+
metadata:
13+
area: true
14+
label: variant
15+
variants:
16+
- key: variant1
17+
name: variant1
18+
attachment:
19+
answer:
20+
everything: 42
21+
happy: true
22+
list:
23+
- 1
24+
- 0
25+
- 2
26+
name: Niels
27+
nothing: null
28+
object:
29+
currency: USD
30+
value: 42.99
31+
pi: 3.141
32+
- default: true
33+
key: foo
34+
rules:
35+
- segment: segment1
36+
distributions:
37+
- variant: variant1
38+
rollout: 100
39+
- segment:
40+
keys:
41+
- segment1
42+
- segment2
43+
operator: AND_SEGMENT_OPERATOR
44+
- key: flag2
45+
name: flag2
46+
type: BOOLEAN_FLAG_TYPE
47+
description: a boolean flag
48+
enabled: false
49+
metadata:
50+
area: 12
51+
label: bool
52+
rollouts:
53+
- id: "1"
54+
description: enabled for internal users
55+
segment:
56+
key: internal_users
57+
value: true
58+
- id: "2"
59+
description: enabled for 50%
60+
threshold:
61+
percentage: 50
62+
value: true
6363
segments:
64-
- key: segment1
65-
name: segment1
66-
description: description
67-
constraints:
68-
- id: "1"
69-
type: STRING_COMPARISON_TYPE
70-
property: foo
71-
operator: eq
72-
value: baz
73-
description: desc
74-
- id: "2"
75-
type: STRING_COMPARISON_TYPE
76-
property: fizz
77-
operator: neq
78-
value: buzz
79-
description: desc
80-
match_type: ANY_MATCH_TYPE
81-
- key: segment2
82-
name: segment2
83-
description: description
84-
match_type: ANY_MATCH_TYPE
64+
- key: segment1
65+
name: segment1
66+
description: description
67+
constraints:
68+
- id: "1"
69+
type: STRING_COMPARISON_TYPE
70+
property: foo
71+
operator: eq
72+
value: baz
73+
description: desc
74+
- id: "2"
75+
type: STRING_COMPARISON_TYPE
76+
property: fizz
77+
operator: neq
78+
value: buzz
79+
description: desc
80+
match_type: ANY_MATCH_TYPE
81+
- key: segment2
82+
name: segment2
83+
description: description
84+
match_type: ANY_MATCH_TYPE

0 commit comments

Comments
 (0)