Skip to content

Commit

Permalink
Update test values for bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <ian@tembo.io>
  • Loading branch information
ianstanton committed Dec 17, 2024
1 parent 5702e04 commit 5cadb65
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tembo-operator/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6077,16 +6077,14 @@ CREATE EVENT TRIGGER pgrst_watch
assert_eq!(pods_list.items.len(), 0);

// Assert that IngressRouteTCPs are removed after hibernation
// TODO(ianstanton) Typically there should be 0 here, but we're creating one for postgrest
// due to a bug. This should be updated to 0 after the bug is fixed.
let client = test.client.clone();
let ingresses_tcp: Vec<IngressRouteTCP> =
list_resources(client.clone(), &name, &namespace, &default_params, 1)
list_resources(client.clone(), &name, &namespace, &default_params, 0)
.await
.unwrap();
assert_eq!(
ingresses_tcp.len(),
1,
0,
"IngressRouteTCPs should be removed after hibernation"
);

Expand Down Expand Up @@ -6115,17 +6113,15 @@ CREATE EVENT TRIGGER pgrst_watch
let pods_list = pods.list(&Default::default()).await.unwrap();
assert_eq!(pods_list.items.len(), 4);

// Assert there are 4 IngressRouteTCPs created after starting. One for postgres, pooler,
// ferretdb and postgrest
// TODO(ianstanton) postgrest's IngressRouteTCP is being created due to a bug. This should
// check for 3 IngressRouteTCPs after the bug is fixed.
// Assert there are 3 IngressRouteTCPs created after starting. One for postgres, pooler,
// ferretdb
let ingress_tcps: Vec<IngressRouteTCP> =
list_resources(client.clone(), &name, &namespace, &default_params, 4)
list_resources(client.clone(), &name, &namespace, &default_params, 3)
.await
.unwrap();
assert_eq!(
ingress_tcps.len(),
4,
3,
"IngressRouteTCPs should be created after starting"
);

Expand Down

0 comments on commit 5cadb65

Please sign in to comment.