@@ -36,21 +36,21 @@ var _ = Describe("CloudStackMachine webhook", func() {
36
36
})
37
37
38
38
Context ("When creating a CloudStackMachine" , func () {
39
- It ("Should accept CloudStackMachine with all attributes" , func () {
39
+ It ("should accept CloudStackMachine with all attributes" , func () {
40
40
Expect (k8sClient .Create (ctx , dummies .CSMachine1 )).Should (Succeed ())
41
41
})
42
42
43
- It ("Should reject a CloudStackMachine with missing Offering attribute" , func () {
43
+ It ("should reject a CloudStackMachine with missing Offering attribute" , func () {
44
44
dummies .CSMachine1 .Spec .Offering = ""
45
45
Expect (k8sClient .Create (ctx , dummies .CSMachine1 ).Error ()).Should (MatchRegexp (requiredRegex , "Offering" ))
46
46
})
47
47
48
- It ("Should be reject a CloudStackMachine with missint Template attribute" , func () {
48
+ It ("should be reject a CloudStackMachine with missing Template attribute" , func () {
49
49
dummies .CSMachine1 .Spec .Template = ""
50
50
Expect (k8sClient .Create (ctx , dummies .CSMachine1 ).Error ()).Should (MatchRegexp (requiredRegex , "Template" ))
51
51
})
52
52
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 () {
54
54
dummies .CSMachine1 .Spec .IdentityRef .Kind = "ConfigMap"
55
55
Expect (k8sClient .Create (ctx , dummies .CSMachine1 ).Error ()).
56
56
Should (MatchRegexp (forbiddenRegex , "must be a Secret" ))
0 commit comments