From bdaee2eaf6dec985fe8c54f9ebb9a55241f219d4 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 20 Jan 2023 15:19:46 +0100 Subject: [PATCH] Remove yaml test --- src/test/cljc/dda/c4k_keycloak/yaml_test.cljc | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/test/cljc/dda/c4k_keycloak/yaml_test.cljc diff --git a/src/test/cljc/dda/c4k_keycloak/yaml_test.cljc b/src/test/cljc/dda/c4k_keycloak/yaml_test.cljc deleted file mode 100644 index cb31273..0000000 --- a/src/test/cljc/dda/c4k_keycloak/yaml_test.cljc +++ /dev/null @@ -1,45 +0,0 @@ -(ns dda.c4k-keycloak.yaml-test - (:require - #?(:clj [clojure.test :refer [deftest is are testing run-tests]] - :cljs [cljs.test :refer-macros [deftest is are testing run-tests]]) - [dda.c4k-keycloak.yaml :as cut])) - -(deftest should-parse-yaml-string - (is (= {:hallo "welt"} - (cut/from-string "hallo: welt")))) - -(deftest should-generate-yaml-string - (is (= "hallo: welt -" - (cut/to-string {:hallo "welt"})))) - -(deftest should-convert-config-yml-to-map - (is (= {:apiVersion "networking.k8s.io/v1beta1" - :kind "Ingress" - :metadata - {:name "ingress-cloud" - :annotations - {:cert-manager.io/cluster-issuer - "letsencrypt-staging-issuer" - :nginx.ingress.kubernetes.io/proxy-body-size "256m" - :nginx.ingress.kubernetes.io/ssl-redirect "true" - :nginx.ingress.kubernetes.io/rewrite-target "/" - :nginx.ingress.kubernetes.io/proxy-connect-timeout "300" - :nginx.ingress.kubernetes.io/proxy-send-timeout "300" - :nginx.ingress.kubernetes.io/proxy-read-timeout "300"} - :namespace "default"} - :spec - {:tls [{:hosts ["fqdn"], :secretName "keycloak-secret"}] - :rules - [{:host "fqdn" - :http - {:paths - [{:backend - {:serviceName "keycloak", :servicePort 8080}}]}} - {:host "fqdn" - :http - {:paths - [{:backend - {:serviceName "another_keycloak" - :servicePort 8081}}]}}]}} - (cut/from-string (cut/load-resource "ingress_test.yaml")))))