Skip to content

Commit

Permalink
more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed Sep 2, 2024
1 parent 817c8b5 commit c89e8f1
Show file tree
Hide file tree
Showing 2 changed files with 358 additions and 141 deletions.
10 changes: 6 additions & 4 deletions nexus/test-utils/src/resource_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,12 +749,13 @@ pub async fn delete_internet_gateway(
project_name: &str,
vpc_name: &str,
internet_gateway_name: &str,
cascade: bool,
) {
NexusRequest::object_delete(
&client,
format!(
"/v1/internet-gateways/{}?project={}&vpc={}",
&internet_gateway_name, &project_name, &vpc_name
"/v1/internet-gateways/{}?project={}&vpc={}&cascade={}",
&internet_gateway_name, &project_name, &vpc_name, cascade
)
.as_str(),
)
Expand Down Expand Up @@ -859,10 +860,11 @@ pub async fn detach_ip_address_from_igw(
vpc_name: &str,
igw_name: &str,
attachment_name: &str,
cascade: bool,
) {
let url = format!(
"/v1/internet-gateway-ip-addresses/{}?project={}&vpc={}&gateway={}",
attachment_name, project_name, vpc_name, igw_name,
"/v1/internet-gateway-ip-addresses/{}?project={}&vpc={}&gateway={}&cascade={}",
attachment_name, project_name, vpc_name, igw_name, cascade
);

NexusRequest::object_delete(&client, url.as_str())
Expand Down
Loading

0 comments on commit c89e8f1

Please sign in to comment.