diff --git a/internal/pkg/backend/k8s/configmap_suite_test.go b/internal/pkg/backend/k8s/configmap_suite_test.go deleted file mode 100644 index 36376dd83..000000000 --- a/internal/pkg/backend/k8s/configmap_suite_test.go +++ /dev/null @@ -1,13 +0,0 @@ -package k8s_test - -import ( - "testing" - - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" -) - -func TestConfigmap(t *testing.T) { - RegisterFailHandler(Fail) - RunSpecs(t, "Configmap Suite") -} diff --git a/internal/pkg/backend/k8s/configmap_test.go b/internal/pkg/backend/k8s/configmap_test.go deleted file mode 100644 index 916fb3879..000000000 --- a/internal/pkg/backend/k8s/configmap_test.go +++ /dev/null @@ -1,37 +0,0 @@ -package k8s - -import ( - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" - "gopkg.in/yaml.v3" -) - -var _ = Describe("Configmap", func() { - It("should work", func() { - data := map[string]any{ - "a": "A", - "b": map[string]string{ - "c": "C", - }, - } - - b, err := NewBackend("devstream", "state") - Expect(err).To(BeNil()) - Expect(b).ToNot(BeNil()) - - dataBytes, err := yaml.Marshal(data) - Expect(err).To(BeNil()) - dataStr := string(dataBytes) - - // test applyConfigMap - cm, err := b.applyConfigMap(dataStr) - Expect(err).To(BeNil()) - Expect(cm.Data[stateKey]).To(Equal(dataStr)) - - // test getOrCreateConfigMap - cm, err = b.getOrCreateConfigMap() - Expect(err).To(BeNil()) - Expect(cm).ToNot(BeNil()) - Expect(cm.Data[stateKey]).To(Equal(dataStr)) - }) -})