diff --git a/tests/jenkins/TestPublishToPyPi.groovy b/tests/jenkins/TestPublishToPyPi.groovy index e4e98ff18..525b41cc8 100644 --- a/tests/jenkins/TestPublishToPyPi.groovy +++ b/tests/jenkins/TestPublishToPyPi.groovy @@ -35,7 +35,7 @@ class TestPublishToPyPi extends BuildPipelineTest { } @Test - void testWithCustomDir(){ + void testWithCustomDir() { this.registerLibTester(new PublishToPyPiLibTester('test')) super.setUp() super.testPipeline('tests/jenkins/jobs/PublishToPyPiWithDir_Jenkinsfile') @@ -50,6 +50,7 @@ class TestPublishToPyPi extends BuildPipelineTest { def signing_sh = getCommands('sh', 'sign.sh') assertThat(signing_sh, hasItem('\n #!/bin/bash\n set +x\n export ROLE=SIGNER_CLIENT_ROLE\n export EXTERNAL_ID=SIGNER_CLIENT_EXTERNAL_ID\n export UNSIGNED_BUCKET=SIGNER_CLIENT_UNSIGNED_BUCKET\n export SIGNED_BUCKET=SIGNER_CLIENT_SIGNED_BUCKET\n\n /tmp/workspace/sign.sh test --sigtype=.asc --platform=linux\n ')) } + def getCommands(method, text) { def shCommands = helper.callStack.findAll { call -> call.methodName == method @@ -60,4 +61,5 @@ class TestPublishToPyPi extends BuildPipelineTest { } return shCommands } + }