Skip to content

Commit

Permalink
satisfy sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
lubedacht committed Jan 8, 2024
1 parent 7ceba25 commit e9632a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/ionoscloudmachine_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ var _ = Describe("IonosCloudMachine Tests", func() {
It("Should fail when providing duplicate ip address", func() {
m := defaultMachine()

m.Spec.Network.IPs = append(m.Spec.Network.IPs, "10.0.0.0", "10.0.0.1", "10.0.0.1")
Expect(k8sClient.Create(context.Background(), m)).To(MatchError(ContainSubstring("Duplicate value: \"10.0.0.1\"")))
m.Spec.Network.IPs = append(m.Spec.Network.IPs, "192.0.2.0", "192.0.2.1", "192.0.2.1")
Expect(k8sClient.Create(context.Background(), m)).To(MatchError(ContainSubstring("Duplicate value: \"192.0.2.1\"")))
})
})
})
Expand Down

0 comments on commit e9632a9

Please sign in to comment.