Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ class ImageScanningTest extends BaseSpecification {
protected static final String CENTRAL_URI = Config.roxEndpoint
protected static final String QUAY_REPO = "quay.io/openshifttest/"

def "Test read timeout with minimal timeout should fail"() {
when:
BuildResult status = jenkins.createAndRunJob(
getJobConfig("nginx-alpine:latest", false, true, 1))

then:
assert status == FAILURE
}

@Unroll
def "image scanning test with toggle enforcement(#imageName, #policyName, #enforcements, #endStatus)"() {
given:
Expand Down Expand Up @@ -121,6 +112,8 @@ class ImageScanningTest extends BaseSpecification {
policy.setEnforcementActions(enforcements)
policy.setFields(new StoragePolicyFields().imageName(new StorageImageNamePolicy().tag(tag)))
policy.setDisabled(false)
// Clear exclusions to avoid serialization issues with null scope values
policy.setExclusions([])
restApiClient.updatePolicy(policy, policyId)
return restApiClient.getPolicy(policyId)
}
Expand Down
Loading