diff --git a/container-images/assign-class-label/mutate.py b/container-images/assign-class-label/mutate.py index 98054ab..9b67759 100644 --- a/container-images/assign-class-label/mutate.py +++ b/container-images/assign-class-label/mutate.py @@ -131,7 +131,7 @@ def mutate_pod() -> Response: ) ).model_dump() ), - 400, + 200, {'content-type': 'application/json'}, ) diff --git a/container-images/assign-class-label/tests/test_mutate.py b/container-images/assign-class-label/tests/test_mutate.py index 82c5254..6386333 100644 --- a/container-images/assign-class-label/tests/test_mutate.py +++ b/container-images/assign-class-label/tests/test_mutate.py @@ -71,7 +71,7 @@ def test_request_no_metadata(client): }, ) - assert res.status_code == 400 + assert res.status_code == 200 assert res.json == { 'apiVersion': 'admission.k8s.io/v1', 'kind': 'AdmissionReview', @@ -172,7 +172,7 @@ def test_no_user(client): }, ) - assert res.status_code == 400 + assert res.status_code == 200 assert res.json == { 'apiVersion': 'admission.k8s.io/v1', 'kind': 'AdmissionReview', @@ -195,7 +195,7 @@ def test_no_user(client): }, ) - assert res.status_code == 400 + assert res.status_code == 200 assert res.json == { 'apiVersion': 'admission.k8s.io/v1', 'kind': 'AdmissionReview', @@ -229,7 +229,7 @@ def test_empty_group_members(client): }, ) - assert res.status_code == 400 + assert res.status_code == 200 assert res.json == { 'apiVersion': 'admission.k8s.io/v1', 'kind': 'AdmissionReview',