Skip to content

Commit cc2d002

Browse files
committed
fix tests
1 parent 867556b commit cc2d002

11 files changed

+584
-610
lines changed

tests/test_examples/configuration_log_off.in.json

Lines changed: 41 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"pass_marketing_query_params_to_target": true,
1515
"always_match_any_host": true
1616
},
17-
"rules": {
18-
"hydra:member": [
17+
"rules": [
1918
{
2019
"source": {
2120
"host": "",
@@ -48,47 +47,45 @@
4847
}
4948
]
5049
},
51-
{
52-
"source": {
53-
"host": null,
54-
"path": "\/@marker",
55-
"query": null,
56-
"scheme": null,
57-
"sampling": null,
58-
"methods": [],
50+
{
51+
"source": {
52+
"host": null,
53+
"path": "\/@marker",
54+
"query": null,
55+
"scheme": null,
56+
"sampling": null,
57+
"methods": [],
58+
"headers": [],
59+
"response_status_codes": []
60+
},
61+
"id": "56c402fd-c854-46c6-b89d-a874818b717b",
62+
"rank": 32763,
63+
"markers": [
64+
{
65+
"name": "marker",
66+
"regex": ".*",
67+
"transformers": []
68+
}
69+
],
70+
"body_filters": [],
71+
"header_filters": [],
72+
"log_override": false,
73+
"configuration_log_unit_id": "c73e8447-08b5-490f-bd46-0a137e16b749",
74+
"configuration_reset_unit_id": "ee15e733-ad61-4640-973f-732dcc68f5d5",
75+
"reset": false,
76+
"examples": [
77+
{
78+
"url": "\/anything",
79+
"method": null,
5980
"headers": [],
60-
"response_status_codes": []
61-
},
62-
"id": "56c402fd-c854-46c6-b89d-a874818b717b",
63-
"rank": 32763,
64-
"markers": [
65-
{
66-
"name": "marker",
67-
"regex": ".*",
68-
"transformers": []
69-
}
70-
],
71-
"body_filters": [],
72-
"header_filters": [],
73-
"log_override": false,
74-
"configuration_log_unit_id": "c73e8447-08b5-490f-bd46-0a137e16b749",
75-
"configuration_reset_unit_id": "ee15e733-ad61-4640-973f-732dcc68f5d5",
76-
"reset": false,
77-
"examples": [
78-
{
79-
"url": "\/anything",
80-
"method": null,
81-
"headers": [],
82-
"response_status_code": null,
83-
"ip_address": null,
84-
"must_match": true,
85-
"unit_ids_applied": ["c73e8447-08b5-490f-bd46-0a137e16b749"]
86-
}
87-
]
88-
}
89-
],
90-
"hydra:totalItems": 2,
91-
"page": 1,
92-
"lastPage": 1
93-
}
81+
"response_status_code": null,
82+
"ip_address": null,
83+
"must_match": true,
84+
"unit_ids_applied": [
85+
"c73e8447-08b5-490f-bd46-0a137e16b749"
86+
]
87+
}
88+
]
89+
}
90+
]
9491
}

tests/test_examples/configuration_reset_on.in.json

Lines changed: 69 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -14,81 +14,76 @@
1414
"pass_marketing_query_params_to_target": true,
1515
"always_match_any_host": true
1616
},
17-
"rules": {
18-
"hydra:member": [
19-
{
20-
"source": {
21-
"host": "",
22-
"path": "\/goo",
23-
"query": "",
24-
"scheme": "",
25-
"sampling": null,
26-
"methods": [],
17+
"rules": [
18+
{
19+
"source": {
20+
"host": "",
21+
"path": "\/goo",
22+
"query": "",
23+
"scheme": "",
24+
"sampling": null,
25+
"methods": [],
26+
"headers": [],
27+
"response_status_codes": []
28+
},
29+
"id": "7ac6a3ea-9ba5-4557-9e2e-e996d348c15e",
30+
"rank": 32766,
31+
"markers": [],
32+
"body_filters": [],
33+
"header_filters": [],
34+
"log_override": true,
35+
"configuration_log_unit_id": "53f9a13c-732a-4ee4-a379-3a27e95c2046",
36+
"configuration_reset_unit_id": "1d5c840c-2d6c-4c96-822f-808a1dc0a794",
37+
"reset": true,
38+
"examples": [
39+
{
40+
"url": "\/goo",
41+
"must_match": true,
2742
"headers": [],
28-
"response_status_codes": []
29-
},
30-
"id": "7ac6a3ea-9ba5-4557-9e2e-e996d348c15e",
31-
"rank": 32766,
32-
"markers": [],
33-
"body_filters": [],
34-
"header_filters": [],
35-
"log_override": true,
36-
"configuration_log_unit_id": "53f9a13c-732a-4ee4-a379-3a27e95c2046",
37-
"configuration_reset_unit_id": "1d5c840c-2d6c-4c96-822f-808a1dc0a794",
38-
"reset": true,
39-
"examples": [
40-
{
41-
"url": "\/goo",
42-
"must_match": true,
43-
"headers": [],
44-
"response_status_code": null,
45-
"method": null,
46-
"ip_address": null,
47-
"unit_ids_applied": ["53f9a13c-732a-4ee4-a379-3a27e95c2046", "1d5c840c-2d6c-4c96-822f-808a1dc0a794"]
48-
}
49-
]
43+
"response_status_code": null,
44+
"method": null,
45+
"ip_address": null,
46+
"unit_ids_applied": ["53f9a13c-732a-4ee4-a379-3a27e95c2046", "1d5c840c-2d6c-4c96-822f-808a1dc0a794"]
47+
}
48+
]
49+
},
50+
{
51+
"source": {
52+
"host": null,
53+
"path": "\/@marker",
54+
"query": null,
55+
"scheme": null,
56+
"sampling": null,
57+
"methods": [],
58+
"headers": [],
59+
"response_status_codes": []
5060
},
51-
{
52-
"source": {
53-
"host": null,
54-
"path": "\/@marker",
55-
"query": null,
56-
"scheme": null,
57-
"sampling": null,
58-
"methods": [],
61+
"id": "56c402fd-c854-46c6-b89d-a874818b717b",
62+
"rank": 32763,
63+
"markers": [
64+
{
65+
"name": "marker",
66+
"regex": ".*",
67+
"transformers": []
68+
}
69+
],
70+
"body_filters": [],
71+
"header_filters": [],
72+
"log_override": true,
73+
"configuration_log_unit_id": "c73e8447-08b5-490f-bd46-0a137e16b749",
74+
"configuration_reset_unit_id": "ee15e733-ad61-4640-973f-732dcc68f5d5",
75+
"reset": true,
76+
"examples": [
77+
{
78+
"url": "\/anything",
79+
"method": null,
5980
"headers": [],
60-
"response_status_codes": []
61-
},
62-
"id": "56c402fd-c854-46c6-b89d-a874818b717b",
63-
"rank": 32763,
64-
"markers": [
65-
{
66-
"name": "marker",
67-
"regex": ".*",
68-
"transformers": []
69-
}
70-
],
71-
"body_filters": [],
72-
"header_filters": [],
73-
"log_override": true,
74-
"configuration_log_unit_id": "c73e8447-08b5-490f-bd46-0a137e16b749",
75-
"configuration_reset_unit_id": "ee15e733-ad61-4640-973f-732dcc68f5d5",
76-
"reset": true,
77-
"examples": [
78-
{
79-
"url": "\/anything",
80-
"method": null,
81-
"headers": [],
82-
"response_status_code": null,
83-
"ip_address": null,
84-
"must_match": true,
85-
"unit_ids_applied": ["c73e8447-08b5-490f-bd46-0a137e16b749", "ee15e733-ad61-4640-973f-732dcc68f5d5"]
86-
}
87-
]
88-
}
89-
],
90-
"hydra:totalItems": 2,
91-
"page": 1,
92-
"lastPage": 1
93-
}
81+
"response_status_code": null,
82+
"ip_address": null,
83+
"must_match": true,
84+
"unit_ids_applied": ["c73e8447-08b5-490f-bd46-0a137e16b749", "ee15e733-ad61-4640-973f-732dcc68f5d5"]
85+
}
86+
]
87+
}
88+
]
9489
}

0 commit comments

Comments
 (0)