From be9bd0fd415d5a017235c38acb986b4f2e0824cc Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Fri, 25 Nov 2022 18:52:03 +0200 Subject: [PATCH] add some more tests --- .../tests/service/service_test.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/library/common-test/tests/service/service_test.yaml b/library/common-test/tests/service/service_test.yaml index 6ceb10fb..124dde2a 100644 --- a/library/common-test/tests/service/service_test.yaml +++ b/library/common-test/tests/service/service_test.yaml @@ -250,3 +250,29 @@ tests: some_key1: value1 some_key2: value2 some_key3: value3 +# TODO: add ports etc in the below tests + - it: should pass with ClusterIP service type + documentIndex: *serviceDoc + set: + service: + main: + type: ClusterIP + asserts: + - equal: + path: spec.type + value: ClusterIP + + - it: should pass with ClusterIP service type and clusterIP set + documentIndex: *serviceDoc + set: + service: + main: + type: ClusterIP + clusterIP: 172.16.0.12 + asserts: + - equal: + path: spec.type + value: ClusterIP + - equal: + path: spec.clusterIP + value: 172.16.0.12