From d5d1af2ae546c72b0b738a85f331848ffe6eced0 Mon Sep 17 00:00:00 2001 From: GuillaumeV <88834548+guillaumevillemont@users.noreply.github.com> Date: Fri, 10 May 2024 11:37:57 +0200 Subject: [PATCH] Add tests --- charts/bookstack/tests/service_test.yaml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 charts/bookstack/tests/service_test.yaml diff --git a/charts/bookstack/tests/service_test.yaml b/charts/bookstack/tests/service_test.yaml new file mode 100644 index 0000000..93eeffe --- /dev/null +++ b/charts/bookstack/tests/service_test.yaml @@ -0,0 +1,26 @@ +suite: test service +templates: + - templates/service.yaml +tests: + - it: should pass + release: + name: mybook + set: + service: + type: ClusterIP + asserts: + - contains: + path: spec.ports + content: + name: http + port: 80 + protocol: TCP + targetPort: http + - equal: + path: spec.type + value: ClusterIP + - equal: + path: spec.selector + value: + app.kubernetes.io/name: bookstack + app.kubernetes.io/instance: mybook