Skip to content

Commit fc8892b

Browse files
committed
Add ing tcp count assertion
Signed-off-by: Ian Stanton <ian@tembo.io>
1 parent 59bee60 commit fc8892b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tembo-operator/tests/integration_tests.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6062,6 +6062,19 @@ CREATE EVENT TRIGGER pgrst_watch
60626062
let pods_list = pods.list(&Default::default()).await.unwrap();
60636063
assert_eq!(pods_list.items.len(), 4);
60646064

6065+
// Assert there are 3 IngressRouteTCPs created after starting. One for postgres, pooler,
6066+
// ferretdb
6067+
let client = test.client.clone();
6068+
let ingresses_tcp: Vec<IngressRouteTCP> =
6069+
list_resources(client.clone(), &name, &namespace, &default_params, 3)
6070+
.await
6071+
.unwrap();
6072+
assert_eq!(
6073+
ingresses_tcp.len(),
6074+
3,
6075+
"IngressRouteTCPs should be created after starting"
6076+
);
6077+
60656078
// Stop the cluster and check to make sure it's not running to ensure
60666079
// hibernate is doing its job.
60676080

0 commit comments

Comments
 (0)