@@ -1231,7 +1231,7 @@ func (f *Framework) AssertScanIsCompliant(name, namespace string) error {
1231
1231
return err
1232
1232
}
1233
1233
if cs .Status .Result != compv1alpha1 .ResultCompliant {
1234
- return fmt .Errorf ("scan result was %s instead of %s" , compv1alpha1 . ResultCompliant , cs .Status .Result )
1234
+ return fmt .Errorf ("scan result was %s instead of %s" , cs .Status .Result , compv1alpha1 . ResultCompliant )
1235
1235
}
1236
1236
return nil
1237
1237
}
@@ -1309,7 +1309,7 @@ func (f *Framework) AssertScanIsNonCompliant(name, namespace string) error {
1309
1309
return err
1310
1310
}
1311
1311
if cs .Status .Result != compv1alpha1 .ResultNonCompliant {
1312
- return fmt .Errorf ("scan result was %s instead of %s" , compv1alpha1 . ResultNonCompliant , cs .Status .Result )
1312
+ return fmt .Errorf ("scan result was %s instead of %s" , cs .Status .Result , compv1alpha1 . ResultNonCompliant )
1313
1313
}
1314
1314
return nil
1315
1315
}
@@ -1322,7 +1322,7 @@ func (f *Framework) AssertScanIsNotApplicable(name, namespace string) error {
1322
1322
return err
1323
1323
}
1324
1324
if cs .Status .Result != compv1alpha1 .ResultNotApplicable {
1325
- return fmt .Errorf ("scan result was %s instead of %s" , compv1alpha1 . ResultNotApplicable , cs .Status .Result )
1325
+ return fmt .Errorf ("scan result was %s instead of %s" , cs .Status .Result , compv1alpha1 . ResultNotApplicable )
1326
1326
}
1327
1327
return nil
1328
1328
}
@@ -1335,7 +1335,7 @@ func (f *Framework) AssertScanIsInError(name, namespace string) error {
1335
1335
return err
1336
1336
}
1337
1337
if cs .Status .Result != compv1alpha1 .ResultError {
1338
- return fmt .Errorf ("scan result was %s instead of %s" , compv1alpha1 . ResultError , cs .Status .Result )
1338
+ return fmt .Errorf ("scan result was %s instead of %s" , cs .Status .Result , compv1alpha1 . ResultError )
1339
1339
}
1340
1340
if cs .Status .ErrorMessage == "" {
1341
1341
return fmt .Errorf ("scan 'errormsg' is empty, but it should be set" )
0 commit comments