Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull committed Jun 12, 2024
1 parent b37ed82 commit d9d8ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins-pipeline-shared-libraries/test/vars/CloudSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ http = false
1 * getPipelineMock("withCredentials")(['user'], _ as Closure)
1 * getPipelineMock('string.call')([credentialsId: 'REGISTRY_TOKEN_CREDS_ID', variable: 'DOCKER_TOKEN']) >> 'token'
1 * getPipelineMock("withCredentials")(['token'], _ as Closure)
1 * getPipelineMock("sh")("echo \"token\" | docker login -u \"user\" --password-stdin REGISTRY")
1 * getPipelineMock("sh")("echo \"password\" | docker login -u \"user\" --password-stdin REGISTRY")
}

def "[cloud.groovy] loginContainerRegistry with container engine and options"() {
Expand All @@ -840,7 +840,7 @@ http = false
1 * getPipelineMock("withCredentials")(['user'], _ as Closure)
1 * getPipelineMock('string.call')([credentialsId: 'REGISTRY_TOKEN_CREDS_ID', variable: 'DOCKER_TOKEN']) >> 'token'
1 * getPipelineMock("withCredentials")(['token'], _ as Closure)
1 * getPipelineMock("sh")("set +x && podman login -u user -p password --tls-verify=false REGISTRY")
1 * getPipelineMock("sh")("echo \"password\" | docker login -u \"user\" --password-stdin --tls-verify=false REGISTRY")
}

/////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit d9d8ca0

Please sign in to comment.