refactor(cli): e2e test assert namespace not in list after deletion

pull/24376/head
Fraser Savage 2023-03-23 13:43:43 +00:00
parent 5735aae998
commit 8471baf567
No known key found for this signature in database
GPG Key ID: DE47C33CE8C5C446
1 changed files with 17 additions and 0 deletions

View File

@ -896,6 +896,23 @@ async fn namespace_deletion() {
}
.boxed()
})),
Step::Custom(Box::new(|state: &mut StepTestState| {
async {
let addr = state.cluster().router().router_grpc_base().to_string();
let namespace = "bananas_namespace";
Command::cargo_bin("influxdb_iox")
.unwrap()
.arg("-h")
.arg(&addr)
.arg("namespace")
.arg("list")
.assert()
.success()
.stdout(predicate::str::contains(namespace).not());
}
.boxed()
})),
],
)
.run()