Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Nov 17, 2022
1 parent 4370f2e commit 89639af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/jenkins/TestPublishToPyPi.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
Expand All @@ -60,4 +61,5 @@ class TestPublishToPyPi extends BuildPipelineTest {
}
return shCommands
}

}

0 comments on commit 89639af

Please sign in to comment.