@@ -8,40 +8,50 @@ import (
8
8
9
9
func TestStatefulSetPodDisruptionBudgetMatches (t * testing.T ) {
10
10
t .Parallel ()
11
- testExpectedScore (t , "statefulset-poddisruptionbudget-matches.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeAllOK )
11
+ testExpectedScore (t , "statefulset-poddisruptionbudget-v1beta1- matches.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeAllOK )
12
12
}
13
13
14
14
func TestStatefulSetPodDisruptionBudgetExpressionMatches (t * testing.T ) {
15
15
t .Parallel ()
16
- testExpectedScore (t , "statefulset-poddisruptionbudget-expression-matches.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeAllOK )
16
+ testExpectedScore (t , "statefulset-poddisruptionbudget-v1beta1- expression-matches.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeAllOK )
17
17
}
18
18
19
19
func TestStatefulSetPodDisruptionBudgetExpressionNoMatch (t * testing.T ) {
20
20
t .Parallel ()
21
- testExpectedScore (t , "statefulset-poddisruptionbudget-expression-no-match.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeCritical )
21
+ testExpectedScore (t , "statefulset-poddisruptionbudget-v1beta1- expression-no-match.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeCritical )
22
22
}
23
23
24
24
func TestStatefulSetPodDisruptionBudgetNoMatch (t * testing.T ) {
25
25
t .Parallel ()
26
- testExpectedScore (t , "statefulset-poddisruptionbudget-no-match.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeCritical )
26
+ testExpectedScore (t , "statefulset-poddisruptionbudget-v1beta1- no-match.yaml" , "StatefulSet has PodDisruptionBudget" , scorecard .GradeCritical )
27
27
}
28
28
29
29
func TestDeploymentPodDisruptionBudgetMatches (t * testing.T ) {
30
30
t .Parallel ()
31
- testExpectedScore (t , "deployment-poddisruptionbudget-matches.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeAllOK )
31
+ testExpectedScore (t , "deployment-poddisruptionbudget-v1beta1- matches.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeAllOK )
32
32
}
33
33
34
34
func TestDeploymentPodDisruptionBudgetExpressionMatches (t * testing.T ) {
35
35
t .Parallel ()
36
- testExpectedScore (t , "deployment-poddisruptionbudget-expression-matches.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeAllOK )
36
+ testExpectedScore (t , "deployment-poddisruptionbudget-v1beta1- expression-matches.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeAllOK )
37
37
}
38
38
39
39
func TestDeploymentPodDisruptionBudgetExpressionNoMatch (t * testing.T ) {
40
40
t .Parallel ()
41
- testExpectedScore (t , "deployment-poddisruptionbudget-expression-no-match.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeCritical )
41
+ testExpectedScore (t , "deployment-poddisruptionbudget-v1beta1- expression-no-match.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeCritical )
42
42
}
43
43
44
44
func TestDeploymentPodDisruptionBudgetNoMatch (t * testing.T ) {
45
45
t .Parallel ()
46
- testExpectedScore (t , "deployment-poddisruptionbudget-no-match.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeCritical )
46
+ testExpectedScore (t , "deployment-poddisruptionbudget-v1beta1-no-match.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeCritical )
47
+ }
48
+
49
+ func TestDeploymentPodDisruptionBudgetV1Matches (t * testing.T ) {
50
+ t .Parallel ()
51
+ testExpectedScore (t , "deployment-poddisruptionbudget-v1-matches.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeAllOK )
52
+ }
53
+
54
+ func TestDeploymentPodDisruptionBudgetV1NoMatch (t * testing.T ) {
55
+ t .Parallel ()
56
+ testExpectedScore (t , "deployment-poddisruptionbudget-v1-no-match.yaml" , "Deployment has PodDisruptionBudget" , scorecard .GradeCritical )
47
57
}
0 commit comments