Skip to content

Commit 2341083

Browse files
committed
Added logic to also check label values and checking labels on all instead of just first and used lighter profile e8
1 parent 1d21bc0 commit 2341083

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/e2e/parallel/main_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,13 +981,11 @@ func TestScanProducesRemediationsAndLabels(t *testing.T) {
981981
if len(checkList.Items) == 0 {
982982
t.Fatal("expected at least one check result")
983983
}
984-
// Expected scan name is binding name + profile name
985-
expectedScanName := bindingName + "-" + tpName
986984
// Verify all required labels are present on every check result
987985
// For some labels we can verify the exact value
988986
labelsWithValues := map[string]string{
989987
compv1alpha1.SuiteLabel: bindingName,
990-
compv1alpha1.ComplianceScanLabel: expectedScanName,
988+
compv1alpha1.ComplianceScanLabel: bindingName,
991989
}
992990
// For other labels we just verify they are present (non-empty)
993991
labelsPresenceOnly := []string{

0 commit comments

Comments
 (0)