From 8f891648c08d69095d366139f81ac250ed73d8a8 Mon Sep 17 00:00:00 2001 From: Bobbins228 Date: Thu, 22 Feb 2024 11:18:34 +0000 Subject: [PATCH] Fixed unit tests --- tests/test-case-no-mcad.yamls | 4 ++-- tests/test-case-prio.yaml | 4 ++-- tests/test-case.yaml | 4 ++-- tests/unit_test.py | 4 +++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/test-case-no-mcad.yamls b/tests/test-case-no-mcad.yamls index dd05c8db8..299ff9a8c 100644 --- a/tests/test-case-no-mcad.yamls +++ b/tests/test-case-no-mcad.yamls @@ -96,7 +96,7 @@ spec: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert @@ -183,7 +183,7 @@ spec: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert diff --git a/tests/test-case-prio.yaml b/tests/test-case-prio.yaml index dc8eb2a79..1e72c4425 100644 --- a/tests/test-case-prio.yaml +++ b/tests/test-case-prio.yaml @@ -127,7 +127,7 @@ spec: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert @@ -215,7 +215,7 @@ spec: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert diff --git a/tests/test-case.yaml b/tests/test-case.yaml index c88c04aba..76285209b 100644 --- a/tests/test-case.yaml +++ b/tests/test-case.yaml @@ -125,7 +125,7 @@ spec: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert @@ -212,7 +212,7 @@ spec: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert diff --git a/tests/unit_test.py b/tests/unit_test.py index d3ef11e12..3fde4960f 100644 --- a/tests/unit_test.py +++ b/tests/unit_test.py @@ -2717,7 +2717,9 @@ def test_enable_local_interactive(mocker): "name": "odh-trusted-ca-cert", "configMap": { "name": "odh-trusted-ca-bundle", - "items": [{"key": "ca-bundle.crt", "path": "odh-custom-ca-bundle.crt"}], + "items": [ + {"key": "ca-bundle.crt", "path": "odh-trusted-ca-bundle.crt"} + ], "optional": True, }, },