File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
end-to-end-tests/src/helpers Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11use crate :: helpers:: generate_name;
22use anyhow:: { Context as _, Result } ;
3- use omicron_sled_agent:: params:: ServiceType ;
43use omicron_sled_agent:: rack_setup:: config:: SetupServiceConfig ;
54use oxide_client:: types:: { Name , OrganizationCreate , ProjectCreate } ;
6- use oxide_client:: { Client , ClientOrganizationsExt , ClientProjectsExt } ;
5+ use oxide_client:: { Client , ClientOrganizationsExt , ClientProjectsExt , ClientVpcsExt } ;
76use reqwest:: header:: { HeaderMap , HeaderValue , AUTHORIZATION } ;
87use reqwest:: Url ;
98use 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 ( ) )
You can’t perform that action at this time.
0 commit comments