From dd3ea74df900a8be2968cd30af25cf785669e0d7 Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Thu, 22 Aug 2024 08:59:06 -0700 Subject: [PATCH] test: Remove lease garbage test (#6845) --- .../lease_garbagecollection_test.go | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 test/suites/integration/lease_garbagecollection_test.go diff --git a/test/suites/integration/lease_garbagecollection_test.go b/test/suites/integration/lease_garbagecollection_test.go deleted file mode 100644 index bcd1c42c0c05..000000000000 --- a/test/suites/integration/lease_garbagecollection_test.go +++ /dev/null @@ -1,44 +0,0 @@ -/* -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package integration_test - -import ( - "time" - - coordinationsv1 "k8s.io/api/coordination/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - "sigs.k8s.io/karpenter/pkg/test" - - . "github.com/onsi/ginkgo/v2" -) - -var _ = Describe("Lease Garbage Collection", func() { - var badLease *coordinationsv1.Lease - BeforeEach(func() { - badLease = &coordinationsv1.Lease{ - ObjectMeta: metav1.ObjectMeta{ - CreationTimestamp: metav1.Time{Time: time.Now().Add(-time.Hour * 2)}, - Name: "new-lease", - Namespace: "kube-node-lease", - Labels: map[string]string{test.DiscoveryLabel: "unspecified"}, - }, - } - }) - It("should delete node lease that does not contain an OwnerReference", func() { - env.ExpectCreated(badLease) - env.EventuallyExpectNotFound(badLease) - }) -})