We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07bfa3d commit 3a01897Copy full SHA for 3a01897
tests/unit_test.py
@@ -263,6 +263,18 @@ def test_cluster_creation(mocker):
263
"unit-test-cluster.yaml", f"{parent}/tests/test-case.yaml", shallow=True
264
)
265
266
+def test_create_app_wrapper_raises_error_with_no_image():
267
+ config = createClusterConfig()
268
+ config.image = "" # Clear the image to test error handling
269
+ try:
270
+ cluster = Cluster(config)
271
+ cluster.create_app_wrapper()
272
+ assert False, "Expected ValueError when 'image' is not specified."
273
+ except ValueError as error:
274
+ assert str(error) == "Image must be specified in the ClusterConfiguration", \
275
+ "Error message did not match expected output."
276
+
277
278
def test_cluster_creation_no_mcad(mocker):
279
mocker.patch(
280
"kubernetes.client.CustomObjectsApi.get_cluster_custom_object",
0 commit comments