Skip to content

Commit 768a234

Browse files
Reran fixtures
1 parent bc86739 commit 768a234

18 files changed

+2654
-2449
lines changed

test/integration/fixtures/TestFirewallRules_Get.yaml

+23-45
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"label":"linodego-fw-test","rules":{"inbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"inbound_policy":"ACCEPT","outbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"outbound_policy":"ACCEPT"},"tags":["testing"],"devices":{}}'
5+
body: '{"label":"linodego-fw-test","rules":{"inbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["1234::5678/0"]}}],"inbound_policy":"ACCEPT","outbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["1234::5678/0"]}}],"outbound_policy":"ACCEPT"},"tags":["testing"],"devices":{}}'
66
form: {}
77
headers:
88
Accept:
@@ -14,12 +14,12 @@ interactions:
1414
url: https://api.linode.com/v4beta/networking/firewalls
1515
method: POST
1616
response:
17-
body: '{"id": 498946, "label": "linodego-fw-test", "created": "2018-01-02T03:04:05",
17+
body: '{"id": 34616, "label": "linodego-fw-test", "created": "2018-01-02T03:04:05",
1818
"updated": "2018-01-02T03:04:05", "status": "enabled", "rules": {"inbound":
1919
[{"action": "ACCEPT", "label": "go-fwrule-test", "ports": "22", "protocol":
20-
"TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}], "inbound_policy":
20+
"TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}], "inbound_policy":
2121
"ACCEPT", "outbound": [{"action": "ACCEPT", "label": "go-fwrule-test", "ports":
22-
"22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}],
22+
"22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}],
2323
"outbound_policy": "ACCEPT", "version": 1, "fingerprint": "7bcc0f03"}, "tags":
2424
["testing"], "entities": []}'
2525
headers:
@@ -34,22 +34,17 @@ interactions:
3434
Access-Control-Expose-Headers:
3535
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
3636
Cache-Control:
37-
- max-age=0, no-cache, no-store
38-
Connection:
39-
- keep-alive
40-
Content-Length:
41-
- "583"
37+
- private, max-age=60, s-maxage=60
4238
Content-Security-Policy:
4339
- default-src 'none'
4440
Content-Type:
4541
- application/json
46-
Expires:
47-
- Fri, 31 May 2024 00:09:45 GMT
48-
Pragma:
49-
- no-cache
42+
Server:
43+
- nginx
5044
Strict-Transport-Security:
5145
- max-age=31536000
5246
Vary:
47+
- Accept-Encoding
5348
- Authorization, X-Filter
5449
X-Accepted-Oauth-Scopes:
5550
- firewall:read_write
@@ -59,10 +54,7 @@ interactions:
5954
- DENY
6055
- DENY
6156
X-Oauth-Scopes:
62-
- account:read_write databases:read_write domains:read_write events:read_write
63-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
64-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
65-
volumes:read_write vpc:read_write
57+
- '*'
6658
X-Ratelimit-Limit:
6759
- "400"
6860
X-Xss-Protection:
@@ -80,14 +72,14 @@ interactions:
8072
- application/json
8173
User-Agent:
8274
- linodego/dev https://github.com/linode/linodego
83-
url: https://api.linode.com/v4beta/networking/firewalls/498946/rules
75+
url: https://api.linode.com/v4beta/networking/firewalls/34616/rules
8476
method: GET
8577
response:
8678
body: '{"inbound": [{"action": "ACCEPT", "label": "go-fwrule-test", "ports": "22",
87-
"protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}],
79+
"protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}],
8880
"inbound_policy": "ACCEPT", "outbound": [{"action": "ACCEPT", "label": "go-fwrule-test",
8981
"ports": "22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6":
90-
["::/0"]}}], "outbound_policy": "ACCEPT", "version": 1, "fingerprint": "7bcc0f03"}'
82+
["1234::5678/0"]}}], "outbound_policy": "ACCEPT", "version": 1, "fingerprint": "7bcc0f03"}'
9183
headers:
9284
Access-Control-Allow-Credentials:
9385
- "true"
@@ -100,22 +92,18 @@ interactions:
10092
Access-Control-Expose-Headers:
10193
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
10294
Cache-Control:
103-
- max-age=0, no-cache, no-store
104-
Connection:
105-
- keep-alive
106-
Content-Length:
107-
- "403"
95+
- private, max-age=0, s-maxage=0, no-cache, no-store
96+
- private, max-age=60, s-maxage=60
10897
Content-Security-Policy:
10998
- default-src 'none'
11099
Content-Type:
111100
- application/json
112-
Expires:
113-
- Fri, 31 May 2024 00:09:45 GMT
114-
Pragma:
115-
- no-cache
101+
Server:
102+
- nginx
116103
Strict-Transport-Security:
117104
- max-age=31536000
118105
Vary:
106+
- Accept-Encoding
119107
- Authorization, X-Filter
120108
- Authorization, X-Filter
121109
X-Accepted-Oauth-Scopes:
@@ -126,10 +114,7 @@ interactions:
126114
- DENY
127115
- DENY
128116
X-Oauth-Scopes:
129-
- account:read_write databases:read_write domains:read_write events:read_write
130-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
131-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
132-
volumes:read_write vpc:read_write
117+
- '*'
133118
X-Ratelimit-Limit:
134119
- "400"
135120
X-Xss-Protection:
@@ -147,7 +132,7 @@ interactions:
147132
- application/json
148133
User-Agent:
149134
- linodego/dev https://github.com/linode/linodego
150-
url: https://api.linode.com/v4beta/networking/firewalls/498946
135+
url: https://api.linode.com/v4beta/networking/firewalls/34616
151136
method: DELETE
152137
response:
153138
body: '{}'
@@ -163,19 +148,15 @@ interactions:
163148
Access-Control-Expose-Headers:
164149
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
165150
Cache-Control:
166-
- max-age=0, no-cache, no-store
167-
Connection:
168-
- keep-alive
151+
- private, max-age=60, s-maxage=60
169152
Content-Length:
170153
- "2"
171154
Content-Security-Policy:
172155
- default-src 'none'
173156
Content-Type:
174157
- application/json
175-
Expires:
176-
- Fri, 31 May 2024 00:09:45 GMT
177-
Pragma:
178-
- no-cache
158+
Server:
159+
- nginx
179160
Strict-Transport-Security:
180161
- max-age=31536000
181162
Vary:
@@ -188,10 +169,7 @@ interactions:
188169
- DENY
189170
- DENY
190171
X-Oauth-Scopes:
191-
- account:read_write databases:read_write domains:read_write events:read_write
192-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
193-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
194-
volumes:read_write vpc:read_write
172+
- '*'
195173
X-Ratelimit-Limit:
196174
- "400"
197175
X-Xss-Protection:

test/integration/fixtures/TestFirewallRules_Update.yaml

+30-60
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"label":"linodego-fw-test","rules":{"inbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"inbound_policy":"ACCEPT","outbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"outbound_policy":"ACCEPT"},"tags":["testing"],"devices":{}}'
5+
body: '{"label":"linodego-fw-test","rules":{"inbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["1234::5678/0"]}}],"inbound_policy":"ACCEPT","outbound":[{"action":"ACCEPT","label":"go-fwrule-test","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["1234::5678/0"]}}],"outbound_policy":"ACCEPT"},"tags":["testing"],"devices":{}}'
66
form: {}
77
headers:
88
Accept:
@@ -14,12 +14,12 @@ interactions:
1414
url: https://api.linode.com/v4beta/networking/firewalls
1515
method: POST
1616
response:
17-
body: '{"id": 498947, "label": "linodego-fw-test", "created": "2018-01-02T03:04:05",
17+
body: '{"id": 34617, "label": "linodego-fw-test", "created": "2018-01-02T03:04:05",
1818
"updated": "2018-01-02T03:04:05", "status": "enabled", "rules": {"inbound":
1919
[{"action": "ACCEPT", "label": "go-fwrule-test", "ports": "22", "protocol":
20-
"TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}], "inbound_policy":
20+
"TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}], "inbound_policy":
2121
"ACCEPT", "outbound": [{"action": "ACCEPT", "label": "go-fwrule-test", "ports":
22-
"22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}],
22+
"22", "protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}],
2323
"outbound_policy": "ACCEPT", "version": 1, "fingerprint": "7bcc0f03"}, "tags":
2424
["testing"], "entities": []}'
2525
headers:
@@ -34,22 +34,17 @@ interactions:
3434
Access-Control-Expose-Headers:
3535
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
3636
Cache-Control:
37-
- max-age=0, no-cache, no-store
38-
Connection:
39-
- keep-alive
40-
Content-Length:
41-
- "583"
37+
- private, max-age=60, s-maxage=60
4238
Content-Security-Policy:
4339
- default-src 'none'
4440
Content-Type:
4541
- application/json
46-
Expires:
47-
- Fri, 31 May 2024 00:09:46 GMT
48-
Pragma:
49-
- no-cache
42+
Server:
43+
- nginx
5044
Strict-Transport-Security:
5145
- max-age=31536000
5246
Vary:
47+
- Accept-Encoding
5348
- Authorization, X-Filter
5449
X-Accepted-Oauth-Scopes:
5550
- firewall:read_write
@@ -59,10 +54,7 @@ interactions:
5954
- DENY
6055
- DENY
6156
X-Oauth-Scopes:
62-
- account:read_write databases:read_write domains:read_write events:read_write
63-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
64-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
65-
volumes:read_write vpc:read_write
57+
- '*'
6658
X-Ratelimit-Limit:
6759
- "400"
6860
X-Xss-Protection:
@@ -71,7 +63,7 @@ interactions:
7163
code: 200
7264
duration: ""
7365
- request:
74-
body: '{"inbound":[{"action":"DROP","label":"go-fwrule-test_r","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::0/0"]}}],"inbound_policy":"ACCEPT","outbound":null,"outbound_policy":"ACCEPT"}'
66+
body: '{"inbound":[{"action":"DROP","label":"go-fwrule-test_r","ports":"22","protocol":"TCP","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["1234::5678/0"]}}],"inbound_policy":"ACCEPT","outbound":null,"outbound_policy":"ACCEPT"}'
7567
form: {}
7668
headers:
7769
Accept:
@@ -80,11 +72,11 @@ interactions:
8072
- application/json
8173
User-Agent:
8274
- linodego/dev https://github.com/linode/linodego
83-
url: https://api.linode.com/v4beta/networking/firewalls/498947/rules
75+
url: https://api.linode.com/v4beta/networking/firewalls/34617/rules
8476
method: PUT
8577
response:
8678
body: '{"inbound": [{"action": "DROP", "label": "go-fwrule-test_r", "ports": "22",
87-
"protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}],
79+
"protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}],
8880
"inbound_policy": "ACCEPT", "outbound": null, "outbound_policy": "ACCEPT", "version":
8981
2, "fingerprint": "cddbc8f5"}'
9082
headers:
@@ -99,22 +91,17 @@ interactions:
9991
Access-Control-Expose-Headers:
10092
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
10193
Cache-Control:
102-
- max-age=0, no-cache, no-store
103-
Connection:
104-
- keep-alive
105-
Content-Length:
106-
- "268"
94+
- private, max-age=60, s-maxage=60
10795
Content-Security-Policy:
10896
- default-src 'none'
10997
Content-Type:
11098
- application/json
111-
Expires:
112-
- Fri, 31 May 2024 00:09:46 GMT
113-
Pragma:
114-
- no-cache
99+
Server:
100+
- nginx
115101
Strict-Transport-Security:
116102
- max-age=31536000
117103
Vary:
104+
- Accept-Encoding
118105
- Authorization, X-Filter
119106
X-Accepted-Oauth-Scopes:
120107
- firewall:read_write
@@ -124,10 +111,7 @@ interactions:
124111
- DENY
125112
- DENY
126113
X-Oauth-Scopes:
127-
- account:read_write databases:read_write domains:read_write events:read_write
128-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
129-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
130-
volumes:read_write vpc:read_write
114+
- '*'
131115
X-Ratelimit-Limit:
132116
- "400"
133117
X-Xss-Protection:
@@ -145,11 +129,11 @@ interactions:
145129
- application/json
146130
User-Agent:
147131
- linodego/dev https://github.com/linode/linodego
148-
url: https://api.linode.com/v4beta/networking/firewalls/498947/rules
132+
url: https://api.linode.com/v4beta/networking/firewalls/34617/rules
149133
method: GET
150134
response:
151135
body: '{"inbound": [{"action": "DROP", "label": "go-fwrule-test_r", "ports": "22",
152-
"protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["::/0"]}}],
136+
"protocol": "TCP", "addresses": {"ipv4": ["0.0.0.0/0"], "ipv6": ["1234::5678/0"]}}],
153137
"inbound_policy": "ACCEPT", "outbound": null, "outbound_policy": "ACCEPT", "version":
154138
2, "fingerprint": "cddbc8f5"}'
155139
headers:
@@ -164,22 +148,18 @@ interactions:
164148
Access-Control-Expose-Headers:
165149
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
166150
Cache-Control:
167-
- max-age=0, no-cache, no-store
168-
Connection:
169-
- keep-alive
170-
Content-Length:
171-
- "268"
151+
- private, max-age=0, s-maxage=0, no-cache, no-store
152+
- private, max-age=60, s-maxage=60
172153
Content-Security-Policy:
173154
- default-src 'none'
174155
Content-Type:
175156
- application/json
176-
Expires:
177-
- Fri, 31 May 2024 00:09:46 GMT
178-
Pragma:
179-
- no-cache
157+
Server:
158+
- nginx
180159
Strict-Transport-Security:
181160
- max-age=31536000
182161
Vary:
162+
- Accept-Encoding
183163
- Authorization, X-Filter
184164
- Authorization, X-Filter
185165
X-Accepted-Oauth-Scopes:
@@ -190,10 +170,7 @@ interactions:
190170
- DENY
191171
- DENY
192172
X-Oauth-Scopes:
193-
- account:read_write databases:read_write domains:read_write events:read_write
194-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
195-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
196-
volumes:read_write vpc:read_write
173+
- '*'
197174
X-Ratelimit-Limit:
198175
- "400"
199176
X-Xss-Protection:
@@ -211,7 +188,7 @@ interactions:
211188
- application/json
212189
User-Agent:
213190
- linodego/dev https://github.com/linode/linodego
214-
url: https://api.linode.com/v4beta/networking/firewalls/498947
191+
url: https://api.linode.com/v4beta/networking/firewalls/34617
215192
method: DELETE
216193
response:
217194
body: '{}'
@@ -227,19 +204,15 @@ interactions:
227204
Access-Control-Expose-Headers:
228205
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
229206
Cache-Control:
230-
- max-age=0, no-cache, no-store
231-
Connection:
232-
- keep-alive
207+
- private, max-age=60, s-maxage=60
233208
Content-Length:
234209
- "2"
235210
Content-Security-Policy:
236211
- default-src 'none'
237212
Content-Type:
238213
- application/json
239-
Expires:
240-
- Fri, 31 May 2024 00:09:46 GMT
241-
Pragma:
242-
- no-cache
214+
Server:
215+
- nginx
243216
Strict-Transport-Security:
244217
- max-age=31536000
245218
Vary:
@@ -252,10 +225,7 @@ interactions:
252225
- DENY
253226
- DENY
254227
X-Oauth-Scopes:
255-
- account:read_write databases:read_write domains:read_write events:read_write
256-
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
257-
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
258-
volumes:read_write vpc:read_write
228+
- '*'
259229
X-Ratelimit-Limit:
260230
- "400"
261231
X-Xss-Protection:

0 commit comments

Comments
 (0)