Skip to content

Commit 26d7886

Browse files
author
Joshua Reed
committed
Cleanup.
1 parent cb61164 commit 26d7886

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/v1beta1/cloudstackmachine_webhook_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ var _ = Describe("CloudStackMachine webhook", func() {
3636
})
3737

3838
Context("When creating a CloudStackMachine", func() {
39-
It("Should accept CloudStackMachine with all attributes", func() {
39+
It("should accept CloudStackMachine with all attributes", func() {
4040
Expect(k8sClient.Create(ctx, dummies.CSMachine1)).Should(Succeed())
4141
})
4242

43-
It("Should reject a CloudStackMachine with missing Offering attribute", func() {
43+
It("should reject a CloudStackMachine with missing Offering attribute", func() {
4444
dummies.CSMachine1.Spec.Offering = ""
4545
Expect(k8sClient.Create(ctx, dummies.CSMachine1).Error()).Should(MatchRegexp(requiredRegex, "Offering"))
4646
})
4747

48-
It("Should be reject a CloudStackMachine with missint Template attribute", func() {
48+
It("should be reject a CloudStackMachine with missing Template attribute", func() {
4949
dummies.CSMachine1.Spec.Template = ""
5050
Expect(k8sClient.Create(ctx, dummies.CSMachine1).Error()).Should(MatchRegexp(requiredRegex, "Template"))
5151
})
5252

53-
It("Should be reject a CloudStackMachine with IdentityRef not of kind 'Secret'", func() {
53+
It("should reject a CloudStackMachine with IdentityRef not of kind 'Secret'", func() {
5454
dummies.CSMachine1.Spec.IdentityRef.Kind = "ConfigMap"
5555
Expect(k8sClient.Create(ctx, dummies.CSMachine1).Error()).
5656
Should(MatchRegexp(forbiddenRegex, "must be a Secret"))

api/v1beta1/cloudstackmachinetemplate_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var _ = Describe("CloudStackMachineTemplate webhook", func() {
5252
Should(MatchRegexp(requiredRegex, "Template"))
5353
})
5454

55-
It("Should be reject a CloudStackMachineTemplate with IdentityRef not of kind 'Secret'", func() {
55+
It("should reject a CloudStackMachineTemplate with IdentityRef not of kind 'Secret'", func() {
5656
dummies.CSMachine1.Spec.IdentityRef.Kind = "ConfigMap"
5757
Expect(k8sClient.Create(ctx, dummies.CSMachine1).Error()).
5858
Should(MatchRegexp(forbiddenRegex, "must be a Secret"))

0 commit comments

Comments
 (0)