Skip to content

Commit 6400f95

Browse files
committed
I tried fixing end-to-end tests...
1 parent 3c050aa commit 6400f95

File tree

1 file changed

+16
-2
lines changed
  • end-to-end-tests/src/helpers

1 file changed

+16
-2
lines changed

end-to-end-tests/src/helpers/ctx.rs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use crate::helpers::generate_name;
22
use anyhow::{Context as _, Result};
3-
use omicron_sled_agent::params::ServiceType;
43
use omicron_sled_agent::rack_setup::config::SetupServiceConfig;
54
use oxide_client::types::{Name, OrganizationCreate, ProjectCreate};
6-
use oxide_client::{Client, ClientOrganizationsExt, ClientProjectsExt};
5+
use oxide_client::{Client, ClientOrganizationsExt, ClientProjectsExt, ClientVpcsExt};
76
use reqwest::header::{HeaderMap, HeaderValue, AUTHORIZATION};
87
use reqwest::Url;
98
use std::net::SocketAddr;
@@ -50,6 +49,21 @@ impl Context {
5049
}
5150

5251
pub async fn cleanup(self) -> Result<()> {
52+
self.client
53+
.vpc_subnet_delete()
54+
.organization_name(self.org_name.clone())
55+
.project_name(self.project_name.clone())
56+
.vpc_name("default")
57+
.subnet_name("default")
58+
.send()
59+
.await?;
60+
self.client
61+
.vpc_delete()
62+
.organization_name(self.org_name.clone())
63+
.project_name(self.project_name.clone())
64+
.vpc_name("default")
65+
.send()
66+
.await?;
5367
self.client
5468
.project_delete()
5569
.organization_name(self.org_name.clone())

0 commit comments

Comments
 (0)