From 8ab308281f991162e0db91442f5b7223090f78d3 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Thu, 27 Jun 2024 12:02:40 +0200 Subject: [PATCH] OZG-5958 remove unnecessary unittests --- .../main/helm/templates/network_policy.yaml | 7 ---- .../src/test/helm/network_policy_test.yaml | 36 ------------------- 2 files changed, 43 deletions(-) diff --git a/xta-adapter/src/main/helm/templates/network_policy.yaml b/xta-adapter/src/main/helm/templates/network_policy.yaml index 9e04cc733..b65e30f07 100644 --- a/xta-adapter/src/main/helm/templates/network_policy.yaml +++ b/xta-adapter/src/main/helm/templates/network_policy.yaml @@ -34,13 +34,6 @@ spec: ozg-component: xta-adapter policyTypes: - Egress - ingress: -{{- with (.Values.networkPolicy).additionalIngressConfigLocal }} -{{ toYaml . | indent 2 }} -{{- end }} -{{- with (.Values.networkPolicy).additionalIngressConfigGlobal }} -{{ toYaml . | indent 2 }} -{{- end }} egress: - to: - podSelector: diff --git a/xta-adapter/src/test/helm/network_policy_test.yaml b/xta-adapter/src/test/helm/network_policy_test.yaml index e6f423c44..0c21953e2 100644 --- a/xta-adapter/src/test/helm/network_policy_test.yaml +++ b/xta-adapter/src/test/helm/network_policy_test.yaml @@ -56,7 +56,6 @@ tests: ozg-component: xta-adapter policyTypes: - Egress - ingress: egress: - to: - podSelector: @@ -123,41 +122,6 @@ tests: - ipBlock: cidr: 1.2.3.4/32 - - it: add ingress rule by values local - set: - networkPolicy: - dnsServerNamespace: test-namespace-dns - additionalIngressConfigLocal: - - from: - - podSelector: - matchLabels: - component: client2 - asserts: - - contains: - path: spec.ingress - content: - from: - - podSelector: - matchLabels: - component: client2 - - it: add ingress rule by values global - set: - networkPolicy: - dnsServerNamespace: test-namespace-dns - additionalIngressConfigGlobal: - - from: - - podSelector: - matchLabels: - component: client2 - asserts: - - contains: - path: spec.ingress - content: - from: - - podSelector: - matchLabels: - component: client2 - - it: test network policy disabled set: networkPolicy: -- GitLab