Skip to content

Commit

Permalink
test(unit_test.py): update unit test for test_generate_tls_cert
Browse files Browse the repository at this point in the history
Signed-off-by: Bobbins228 <[email protected]>
  • Loading branch information
Bobbins228 authored and openshift-merge-bot[bot] committed Sep 6, 2024
1 parent 323e1ae commit be64fb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,10 @@ def test_generate_tls_cert(mocker):
test the function codeflare_sdk.utils.generate_ca_cert generates the correct outputs
"""
mocker.patch("kubernetes.config.load_kube_config", return_value="ignore")
mocker.patch(
"codeflare_sdk.utils.generate_cert.get_secret_name",
return_value="ca-secret-cluster",
)
mocker.patch(
"kubernetes.client.CoreV1Api.read_namespaced_secret",
side_effect=secret_ca_retreival,
Expand Down

0 comments on commit be64fb5

Please sign in to comment.