From 89639afe1465b190494af1f2e9bb8dfa4108a936 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Wed, 16 Nov 2022 19:22:43 -0800 Subject: [PATCH] format Signed-off-by: Sayali Gaikawad --- tests/jenkins/TestPublishToPyPi.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } + }