Skip to content

Commit

Permalink
remove testcase with invalid input
Browse files Browse the repository at this point in the history
  • Loading branch information
shanshanying authored and k8s-infra-cherrypick-robot committed Jun 12, 2023
1 parent 02bb4f9 commit cf20e7c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/client/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ var _ = Describe("ForceOwnership", func() {
})

var _ = Describe("HasLabels", func() {
const invalidLongKey = "axahm2EJ8Phiephe2eixohbee9eGeiyees1thuozi1xoh0GiuH3diewi8iem7Nui"

It("Should produce hasLabels in given order", func() {
listOpts := &client.ListOptions{}

Expand All @@ -317,14 +315,6 @@ var _ = Describe("HasLabels", func() {
Expect(listOpts.LabelSelector.String()).To(Equal("labelApe,labelFox"))
})

It("Should produce an empty selector when given invalid input", func() {
listOpts := &client.ListOptions{}
// construct a valid hasLabels selector
hasLabel := client.HasLabels([]string{invalidLongKey})
hasLabel.ApplyToList(listOpts)
Expect(listOpts.LabelSelector.Empty()).To(BeTrue())
})

It("Should add hasLabels to existing hasLabels selector", func() {
listOpts := &client.ListOptions{}

Expand Down

0 comments on commit cf20e7c

Please sign in to comment.