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 committed Sep 6, 2024
1 parent 24629cc commit e433926
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 e433926

Please sign in to comment.