From fb669f9a4a83251279980fb1e7171646483c81f3 Mon Sep 17 00:00:00 2001 From: Andrew Kenworthy Date: Tue, 20 Jan 2026 16:44:10 +0100 Subject: [PATCH] fix: smoke/ldap tests on openshift --- .../kuttl/openldap-user-info/10-assert.yaml | 10 +- .../10-install-openldap.yaml | 174 +------------- .../install-openldap.yaml.j2 | 212 ++++++++++++++++++ .../kuttl/smoke/20-install-test-opa.yaml.j2 | 2 - 4 files changed, 222 insertions(+), 176 deletions(-) create mode 100644 tests/templates/kuttl/openldap-user-info/install-openldap.yaml.j2 diff --git a/tests/templates/kuttl/openldap-user-info/10-assert.yaml b/tests/templates/kuttl/openldap-user-info/10-assert.yaml index 8c361389..36fae5e9 100644 --- a/tests/templates/kuttl/openldap-user-info/10-assert.yaml +++ b/tests/templates/kuttl/openldap-user-info/10-assert.yaml @@ -2,5 +2,11 @@ apiVersion: kuttl.dev/v1beta1 kind: TestAssert timeout: 300 -commands: - - script: kubectl wait --for=condition=ready pod/test-openldap-0 -n $NAMESPACE --timeout=300s +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-openldap +status: + readyReplicas: 1 + replicas: 1 diff --git a/tests/templates/kuttl/openldap-user-info/10-install-openldap.yaml b/tests/templates/kuttl/openldap-user-info/10-install-openldap.yaml index 792cda22..a19b70fb 100644 --- a/tests/templates/kuttl/openldap-user-info/10-install-openldap.yaml +++ b/tests/templates/kuttl/openldap-user-info/10-install-openldap.yaml @@ -2,175 +2,5 @@ apiVersion: kuttl.dev/v1beta1 kind: TestStep commands: - - script: | - kubectl apply -n $NAMESPACE -f - <