File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
commands/operator-sdk/cmd/scorecard Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ func NewOLMTestSuite(conf OLMTestConfig) *TestSuite {
267
267
"Test suite checks if an operator's CSV follows best practices" ,
268
268
)
269
269
270
+ ts .AddTest (NewCRDsHaveValidationTest (conf ), 24 )
270
271
ts .AddTest (NewCRDsHaveResourcesTest (conf ), 19 )
271
272
ts .AddTest (NewAnnotationsContainExamplesTest (conf ), 19 )
272
273
ts .AddTest (NewSpecDescriptorsTest (conf ), 19 )
Original file line number Diff line number Diff line change @@ -19,15 +19,17 @@ import "testing"
19
19
// TestSuiteWeightsCheck makes sure that the combined weights of all
20
20
// the tests in a suite adds up to 100
21
21
func TestSuiteWeightsCheck (t * testing.T ) {
22
+ basicTests := NewBasicTestSuite (BasicTestConfig {})
22
23
basicWeight := 0
23
- for _ , weight := range BasicTests . weights {
24
+ for _ , weight := range basicTests . Weights {
24
25
basicWeight += weight
25
26
}
26
27
if basicWeight != 100 {
27
28
t .Errorf ("Weights of Basic Tests add to %d" , basicWeight )
28
29
}
30
+ olmTests := NewOLMTestSuite (OLMTestConfig {})
29
31
OLMWeight := 0
30
- for _ , weight := range OLMTests . weights {
32
+ for _ , weight := range olmTests . Weights {
31
33
OLMWeight += weight
32
34
}
33
35
if OLMWeight != 100 {
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ commandoutput="$(operator-sdk scorecard \
18
18
--proxy-image " $DEST_IMAGE " \
19
19
--proxy-pull-policy Never \
20
20
2>&1 ) "
21
- echo $commandoutput | grep " Total Score: 69 %"
21
+ echo $commandoutput | grep " Total Score: 81 %"
22
22
23
23
# test config file
24
24
commandoutput2=" $( operator-sdk scorecard \
25
25
--proxy-image " $DEST_IMAGE " \
26
26
--config " $CONFIG_PATH " ) "
27
- echo $commandoutput2 | grep " Total Score: 69 %"
27
+ echo $commandoutput2 | grep " Total Score: 81 %"
28
28
popd
You can’t perform that action at this time.
0 commit comments