Skip to content

Commit

Permalink
feat(gateway): update vpn test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
villevsv-upcloud committed Jun 4, 2024
1 parent 701d004 commit 4787e95
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 105 deletions.
56 changes: 28 additions & 28 deletions upcloud/service/fixtures/gatewayvpn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/router
method: POST
response:
Expand All @@ -25,7 +25,7 @@ interactions:
"name" : "test-router-vpn",
"static_routes" : [],
"type" : "normal",
"uuid" : "04b6f559-6f7c-462e-ac52-1351a0b68f4b"
"uuid" : "04f55cc1-bcd9-49eb-bd56-d65d7e3f2156"
}
}
headers:
Expand All @@ -34,7 +34,7 @@ interactions:
Content-Type:
- application/json; charset=UTF-8
Date:
- Wed, 06 Mar 2024 12:36:05 GMT
- Tue, 04 Jun 2024 11:48:10 GMT
Server:
- Apache
Strict-Transport-Security:
Expand All @@ -51,44 +51,44 @@ interactions:
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/gateway/plans
method: GET
response:
body: '[{"name":"advanced","per_gateway_bandwidth_mbps":1000,"per_gateway_max_connections":100000,"server_number":2,"supported_features":["nat","vpn"],"vpn_tunnel_amount":10},{"name":"development","per_gateway_bandwidth_mbps":500,"per_gateway_max_connections":10000,"server_number":1,"supported_features":["nat"],"vpn_tunnel_amount":0},{"name":"production","per_gateway_bandwidth_mbps":1000,"per_gateway_max_connections":50000,"server_number":2,"supported_features":["nat","vpn"],"vpn_tunnel_amount":2},{"name":"standard","per_gateway_bandwidth_mbps":500,"per_gateway_max_connections":20000,"server_number":2,"supported_features":["nat"],"vpn_tunnel_amount":0}]'
body: '[{"name":"advanced","per_gateway_bandwidth_mbps":1000,"per_gateway_max_connections":250000,"per_gateway_maximum_vpn_bandwidth_mbps":500,"server_number":2,"supported_features":["nat","vpn"],"vpn_tunnel_amount":10},{"name":"development","per_gateway_bandwidth_mbps":500,"per_gateway_max_connections":10000,"per_gateway_maximum_vpn_bandwidth_mbps":0,"server_number":1,"supported_features":["nat"],"vpn_tunnel_amount":0},{"name":"production","per_gateway_bandwidth_mbps":1000,"per_gateway_max_connections":100000,"per_gateway_maximum_vpn_bandwidth_mbps":300,"server_number":2,"supported_features":["nat","vpn"],"vpn_tunnel_amount":2},{"name":"standard","per_gateway_bandwidth_mbps":500,"per_gateway_max_connections":100000,"per_gateway_maximum_vpn_bandwidth_mbps":0,"server_number":2,"supported_features":["nat"],"vpn_tunnel_amount":0}]'
headers:
Content-Length:
- "654"
- "832"
Content-Type:
- application/json
Date:
- Wed, 06 Mar 2024 12:36:06 GMT
- Tue, 04 Jun 2024 11:48:11 GMT
Strict-Transport-Security:
- max-age=63072000
status: 200 OK
code: 200
duration: ""
- request:
body: '{"name":"test-vpn","zone":"pl-waw1","features":["vpn"],"routers":[{"uuid":"04b6f559-6f7c-462e-ac52-1351a0b68f4b"}],"configured_status":"started","plan":"advanced","addresses":[{"name":"my-public-ip"}],"connections":[{"name":"example-connection","type":"ipsec","local_routes":[{"name":"local-route","static_network":"10.0.0.0/24","type":"static"}],"remote_routes":[{"name":"remote-route","static_network":"10.0.1.0/24","type":"static"}],"tunnels":[{"name":"example-tunnel","local_address":{"name":"my-public-ip"},"remote_address":{"address":"100.10.0.111"},"ipsec":{"authentication":{"authentication":"psk","psk":"key123wouldkeepitthatwaybuthastobelonger"}}}]}]}'
body: '{"name":"test-vpn","zone":"pl-waw1","features":["vpn"],"routers":[{"uuid":"04f55cc1-bcd9-49eb-bd56-d65d7e3f2156"}],"configured_status":"started","plan":"advanced","addresses":[{"name":"my-public-ip"}],"connections":[{"name":"example-connection","type":"ipsec","local_routes":[{"name":"local-route","static_network":"10.0.0.0/24","type":"static"}],"remote_routes":[{"name":"remote-route","static_network":"10.0.1.0/24","type":"static"}],"tunnels":[{"name":"example-tunnel","local_address":{"name":"my-public-ip"},"remote_address":{"address":"100.10.0.111"},"ipsec":{"authentication":{"authentication":"psk","psk":"key123wouldkeepitthatwaybuthastobelonger"}}}]}]}'
form: {}
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/gateway
method: POST
response:
body: '{"addresses":[{"name":"my-public-ip"}],"configured_status":"started","connections":[{"created_at":"2024-03-06T12:36:06.774284Z","local_routes":[{"name":"local-route","static_network":"10.0.0.0/24","type":"static"}],"name":"example-connection","remote_routes":[{"name":"remote-route","static_network":"10.0.1.0/24","type":"static"}],"tunnels":[{"created_at":"2024-03-06T12:36:06.774284Z","ipsec":{"authentication":{"authentication":"psk"},"child_rekey_time":1440,"dpd_delay":30,"dpd_timeout":120,"ike_lifetime":86400,"phase1_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase1_dh_group_numbers":[14,16,18,19,20,21],"phase1_integrity_algorithms":["sha256","sha384","sha512"],"phase2_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase2_dh_group_numbers":[14,16,18,19,20,21],"phase2_integrity_algorithms":["sha256","sha384","sha512"],"rekey_time":14400},"local_address":{"name":"my-public-ip"},"name":"example-tunnel","operational_state":"uninitialized","remote_address":{"address":"100.10.0.111"},"updated_at":"2024-03-06T12:36:06.774284Z"}],"type":"ipsec","updated_at":"2024-03-06T12:36:06.774284Z"}],"created_at":"2024-03-06T12:36:06.774284Z","features":["vpn"],"labels":[],"name":"test-vpn","operational_state":"pending","plan":"advanced","routers":[{"created_at":"2024-03-06T12:36:06.774284Z","uuid":"04b6f559-6f7c-462e-ac52-1351a0b68f4b"}],"updated_at":"2024-03-06T12:36:06.774284Z","uuid":"10807184-012f-4acd-847f-7b13f268b0ef","zone":"pl-waw1"}'
body: '{"addresses":[{"name":"my-public-ip"}],"configured_status":"started","connections":[{"created_at":"2024-06-04T11:48:11.490362Z","local_routes":[{"name":"local-route","static_network":"10.0.0.0/24","type":"static"}],"name":"example-connection","remote_routes":[{"name":"remote-route","static_network":"10.0.1.0/24","type":"static"}],"tunnels":[{"created_at":"2024-06-04T11:48:11.490362Z","ipsec":{"authentication":{"authentication":"psk"},"child_rekey_time":1440,"dpd_delay":30,"dpd_timeout":120,"ike_lifetime":86400,"phase1_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase1_dh_group_numbers":[14,16,18,19,20,21],"phase1_integrity_algorithms":["sha256","sha384","sha512"],"phase2_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase2_dh_group_numbers":[14,16,18,19,20,21],"phase2_integrity_algorithms":["sha256","sha384","sha512"],"rekey_time":14400},"local_address":{"name":"my-public-ip"},"name":"example-tunnel","operational_state":"idle","remote_address":{"address":"100.10.0.111"},"updated_at":"2024-06-04T11:48:11.490362Z","uuid":"103ab4a1-9d18-4005-8ca2-e3c2e00a9244"}],"type":"ipsec","updated_at":"2024-06-04T11:48:11.490362Z","uuid":"106bdf9b-b531-4611-81fa-f2288b7b75d1"}],"created_at":"2024-06-04T11:48:11.490362Z","features":["vpn"],"labels":[],"name":"test-vpn","operational_state":"pending","plan":"advanced","routers":[{"created_at":"2024-06-04T11:48:11.490362Z","uuid":"04f55cc1-bcd9-49eb-bd56-d65d7e3f2156"}],"updated_at":"2024-06-04T11:48:11.490362Z","uuid":"10a3a6b6-b837-49a7-81a1-df17591333be","zone":"pl-waw1"}'
headers:
Content-Length:
- "1484"
- "1567"
Content-Type:
- application/json
Date:
- Wed, 06 Mar 2024 12:36:07 GMT
- Tue, 04 Jun 2024 11:48:11 GMT
Strict-Transport-Security:
- max-age=63072000
status: 201 Created
Expand All @@ -103,18 +103,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
url: https://api.upcloud.com/1.3/gateway/10807184-012f-4acd-847f-7b13f268b0ef
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/gateway/10a3a6b6-b837-49a7-81a1-df17591333be
method: PATCH
response:
body: '{"addresses":[{"name":"my-public-ip"}],"configured_status":"started","connections":[{"created_at":"2024-03-06T12:36:06.774284Z","local_routes":[{"name":"local-route","static_network":"10.0.0.0/24","type":"static"}],"name":"example-connection","remote_routes":[{"name":"remote-route","static_network":"10.0.1.0/24","type":"static"}],"tunnels":[{"created_at":"2024-03-06T12:36:06.774284Z","ipsec":{"authentication":{"authentication":"psk"},"child_rekey_time":1440,"dpd_delay":30,"dpd_timeout":120,"ike_lifetime":86400,"phase1_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase1_dh_group_numbers":[14,16,18,19,20,21],"phase1_integrity_algorithms":["sha256","sha384","sha512"],"phase2_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase2_dh_group_numbers":[14,16,18,19,20,21],"phase2_integrity_algorithms":["sha256","sha384","sha512"],"rekey_time":14400},"local_address":{"name":"my-public-ip"},"name":"example-tunnel","operational_state":"uninitialized","remote_address":{"address":"100.10.0.111"},"updated_at":"2024-03-06T12:36:07.372248Z"}],"type":"ipsec","updated_at":"2024-03-06T12:36:07.372248Z"}],"created_at":"2024-03-06T12:36:06.774284Z","features":["vpn"],"labels":[],"name":"updated","operational_state":"pending","plan":"advanced","routers":[{"created_at":"2024-03-06T12:36:06.774284Z","uuid":"04b6f559-6f7c-462e-ac52-1351a0b68f4b"}],"updated_at":"2024-03-06T12:36:07.372248Z","uuid":"10807184-012f-4acd-847f-7b13f268b0ef","zone":"pl-waw1"}'
body: '{"addresses":[{"name":"my-public-ip"}],"configured_status":"started","connections":[{"created_at":"2024-06-04T11:48:11.490362Z","local_routes":[{"name":"local-route","static_network":"10.0.0.0/24","type":"static"}],"name":"example-connection","remote_routes":[{"name":"remote-route","static_network":"10.0.1.0/24","type":"static"}],"tunnels":[{"created_at":"2024-06-04T11:48:11.490362Z","ipsec":{"authentication":{"authentication":"psk"},"child_rekey_time":1440,"dpd_delay":30,"dpd_timeout":120,"ike_lifetime":86400,"phase1_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase1_dh_group_numbers":[14,16,18,19,20,21],"phase1_integrity_algorithms":["sha256","sha384","sha512"],"phase2_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase2_dh_group_numbers":[14,16,18,19,20,21],"phase2_integrity_algorithms":["sha256","sha384","sha512"],"rekey_time":14400},"local_address":{"name":"my-public-ip"},"name":"example-tunnel","operational_state":"idle","remote_address":{"address":"100.10.0.111"},"updated_at":"2024-06-04T11:48:12.147782Z","uuid":"103ab4a1-9d18-4005-8ca2-e3c2e00a9244"}],"type":"ipsec","updated_at":"2024-06-04T11:48:12.147782Z","uuid":"106bdf9b-b531-4611-81fa-f2288b7b75d1"}],"created_at":"2024-06-04T11:48:11.490362Z","features":["vpn"],"labels":[],"name":"updated","operational_state":"pending","plan":"advanced","routers":[{"created_at":"2024-06-04T11:48:11.490362Z","uuid":"04f55cc1-bcd9-49eb-bd56-d65d7e3f2156"}],"updated_at":"2024-06-04T11:48:12.147782Z","uuid":"10a3a6b6-b837-49a7-81a1-df17591333be","zone":"pl-waw1"}'
headers:
Content-Length:
- "1483"
- "1566"
Content-Type:
- application/json
Date:
- Wed, 06 Mar 2024 12:36:07 GMT
- Tue, 04 Jun 2024 11:48:12 GMT
Strict-Transport-Security:
- max-age=63072000
status: 200 OK
Expand All @@ -129,18 +129,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
url: https://api.upcloud.com/1.3/gateway/10807184-012f-4acd-847f-7b13f268b0ef
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/gateway/10a3a6b6-b837-49a7-81a1-df17591333be
method: PATCH
response:
body: '{"addresses":[{"name":"my-public-ip"}],"configured_status":"started","connections":[{"created_at":"2024-03-06T12:36:07.507221Z","local_routes":[{"name":"local-route2","static_network":"11.0.0.0/24","type":"static"}],"name":"example-connection2","remote_routes":[{"name":"remote-route2","static_network":"11.0.1.0/24","type":"static"}],"tunnels":[{"created_at":"2024-03-06T12:36:07.507221Z","ipsec":{"authentication":{"authentication":"psk"},"child_rekey_time":1440,"dpd_delay":30,"dpd_timeout":120,"ike_lifetime":86400,"phase1_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase1_dh_group_numbers":[14,16,18,19,20,21],"phase1_integrity_algorithms":["sha256","sha384","sha512"],"phase2_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase2_dh_group_numbers":[14,16,18,19,20,21],"phase2_integrity_algorithms":["sha256","sha384","sha512"],"rekey_time":14400},"local_address":{"name":"my-public-ip"},"name":"example-tunnel2","operational_state":"uninitialized","remote_address":{"address":"200.10.0.111"},"updated_at":"2024-03-06T12:36:07.507221Z"}],"type":"ipsec","updated_at":"2024-03-06T12:36:07.507221Z"}],"created_at":"2024-03-06T12:36:06.774284Z","features":["vpn"],"labels":[],"name":"updated","operational_state":"pending","plan":"advanced","routers":[{"created_at":"2024-03-06T12:36:06.774284Z","uuid":"04b6f559-6f7c-462e-ac52-1351a0b68f4b"}],"updated_at":"2024-03-06T12:36:07.507221Z","uuid":"10807184-012f-4acd-847f-7b13f268b0ef","zone":"pl-waw1"}'
body: '{"addresses":[{"name":"my-public-ip"}],"configured_status":"started","connections":[{"created_at":"2024-06-04T11:48:12.350453Z","local_routes":[{"name":"local-route2","static_network":"11.0.0.0/24","type":"static"}],"name":"example-connection2","remote_routes":[{"name":"remote-route2","static_network":"11.0.1.0/24","type":"static"}],"tunnels":[{"created_at":"2024-06-04T11:48:12.350453Z","ipsec":{"authentication":{"authentication":"psk"},"child_rekey_time":1440,"dpd_delay":30,"dpd_timeout":120,"ike_lifetime":86400,"phase1_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase1_dh_group_numbers":[14,16,18,19,20,21],"phase1_integrity_algorithms":["sha256","sha384","sha512"],"phase2_algorithms":["aes128","aes256","aes128gcm128","aes256gcm128"],"phase2_dh_group_numbers":[14,16,18,19,20,21],"phase2_integrity_algorithms":["sha256","sha384","sha512"],"rekey_time":14400},"local_address":{"name":"my-public-ip"},"name":"example-tunnel2","operational_state":"idle","remote_address":{"address":"200.10.0.111"},"updated_at":"2024-06-04T11:48:12.350453Z","uuid":"101157a1-79d0-4088-ba56-cbd450239a35"}],"type":"ipsec","updated_at":"2024-06-04T11:48:12.350453Z","uuid":"10335768-173d-4a58-80f5-894e2d1457cb"}],"created_at":"2024-06-04T11:48:11.490362Z","features":["vpn"],"labels":[],"name":"updated","operational_state":"pending","plan":"advanced","routers":[{"created_at":"2024-06-04T11:48:11.490362Z","uuid":"04f55cc1-bcd9-49eb-bd56-d65d7e3f2156"}],"updated_at":"2024-06-04T11:48:12.350453Z","uuid":"10a3a6b6-b837-49a7-81a1-df17591333be","zone":"pl-waw1"}'
headers:
Content-Length:
- "1487"
- "1570"
Content-Type:
- application/json
Date:
- Wed, 06 Mar 2024 12:36:07 GMT
- Tue, 04 Jun 2024 11:48:12 GMT
Strict-Transport-Security:
- max-age=63072000
status: 200 OK
Expand All @@ -155,14 +155,14 @@ interactions:
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
url: https://api.upcloud.com/1.3/gateway/10807184-012f-4acd-847f-7b13f268b0ef
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/gateway/10a3a6b6-b837-49a7-81a1-df17591333be
method: DELETE
response:
body: ""
headers:
Date:
- Wed, 06 Mar 2024 12:36:08 GMT
- Tue, 04 Jun 2024 11:48:12 GMT
Strict-Transport-Security:
- max-age=63072000
status: 204 No Content
Expand All @@ -177,14 +177,14 @@ interactions:
Content-Type:
- application/json
User-Agent:
- upcloud-go-api/8.0.0
url: https://api.upcloud.com/1.3/router/04b6f559-6f7c-462e-ac52-1351a0b68f4b
- upcloud-go-api/8.5.0
url: https://api.upcloud.com/1.3/router/04f55cc1-bcd9-49eb-bd56-d65d7e3f2156
method: DELETE
response:
body: ""
headers:
Date:
- Wed, 06 Mar 2024 12:36:13 GMT
- Tue, 04 Jun 2024 11:48:18 GMT
Server:
- Apache
Strict-Transport-Security:
Expand Down
Loading

0 comments on commit 4787e95

Please sign in to comment.