From 0c02643b9f5631a7bdd98650cc87c74901190771 Mon Sep 17 00:00:00 2001 From: Austin Abro <37223396+AustinAbro321@users.noreply.github.com> Date: Fri, 31 May 2024 12:33:44 -0400 Subject: [PATCH] test: delete agent e2e label test (#2568) ## Description I believe this test is no longer necessary since we've added unit tests to the agent Relates to #2562 ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow) followed --- src/test/e2e/36_pod_without_labels_test.go | 35 ------------------- .../packages/37-pod-without-labels/pod.yaml | 13 ------- 2 files changed, 48 deletions(-) delete mode 100644 src/test/e2e/36_pod_without_labels_test.go delete mode 100644 src/test/packages/37-pod-without-labels/pod.yaml diff --git a/src/test/e2e/36_pod_without_labels_test.go b/src/test/e2e/36_pod_without_labels_test.go deleted file mode 100644 index 4d249dd3ee..0000000000 --- a/src/test/e2e/36_pod_without_labels_test.go +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2021-Present The Zarf Authors - -// Package test provides e2e tests for Zarf. -package test - -import ( - "path/filepath" - "testing" - - "github.com/stretchr/testify/require" -) - -func TestPodWithoutLabels(t *testing.T) { - t.Log("E2E: Pod Without Labels") - e2e.SetupWithCluster(t) - - // Path to pod manifest containing 0 lavbels - buildPath := filepath.Join("src", "test", "packages", "37-pod-without-labels", "pod.yaml") - - // Create the testing namespace - _, _, err := e2e.Kubectl("create", "ns", "pod-label") - require.NoError(t, err) - - // Create the pod without labels - // This is not an image zarf will have in the registry - but the agent was failing to admit on an internal server error before completing admission - _, _, err = e2e.Kubectl("create", "-f", buildPath, "-n", "pod-label") - require.NoError(t, err) - - // Cleanup - _, _, err = e2e.Kubectl("delete", "-f", buildPath, "-n", "pod-label") - require.NoError(t, err) - _, _, err = e2e.Kubectl("delete", "ns", "pod-label") - require.NoError(t, err) -} diff --git a/src/test/packages/37-pod-without-labels/pod.yaml b/src/test/packages/37-pod-without-labels/pod.yaml deleted file mode 100644 index a1ea2ac32b..0000000000 --- a/src/test/packages/37-pod-without-labels/pod.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - creationTimestamp: null - name: test -spec: - containers: - - image: nginx - name: test - resources: {} - dnsPolicy: ClusterFirst - restartPolicy: Always -status: {} \ No newline at end of file