Skip to content

Commit

Permalink
Use JohnEstropia/CoreStore token in Bitrise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Feb 12, 2024
1 parent 6066cb3 commit 9bf7f2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion services/bitrise/bitrise.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class Bitrise extends BaseJsonService {
parameters: [
pathParam({
name: 'appId',
example: '4a2b10a819d12b67',
example: 'e736852157296019',
}),
pathParam({
name: 'branch',
Expand Down
10 changes: 5 additions & 5 deletions services/bitrise/bitrise.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()

t.create('deploy status')
.get('/4a2b10a819d12b67.json?token=859FMDR8QHwabCzwvZK6vQ')
.get('/e736852157296019.json?token=vhgAmaiF3tWZoQyFLkKM7g')
.expectBadge({
label: 'bitrise',
message: isBuildStatus,
})

t.create('deploy status with branch')
.get('/4a2b10a819d12b67/master.json?token=859FMDR8QHwabCzwvZK6vQ')
.get('/e736852157296019/master.json?token=vhgAmaiF3tWZoQyFLkKM7g')
.expectBadge({
label: 'bitrise',
message: isBuildStatus,
})

t.create('unknown branch')
.get('/cde737473028420d/unknown.json?token=GCIdEzacE4GW32jLVrZb7A')
.get('/e736852157296019/unknown.json?token=vhgAmaiF3tWZoQyFLkKM7g')
.expectBadge({ label: 'bitrise', message: 'branch not found' })

t.create('invalid token')
.get('/cde737473028420d/unknown.json?token=token')
.get('/e736852157296019/unknown.json?token=token')
.expectBadge({ label: 'bitrise', message: 'app not found or invalid token' })

t.create('invalid App ID')
.get('/invalid/master.json?token=GCIdEzacE4GW32jLVrZb7A')
.get('/invalid/master.json?token=vhgAmaiF3tWZoQyFLkKM7g')
.expectBadge({ label: 'bitrise', message: 'app not found or invalid token' })

0 comments on commit 9bf7f2b

Please sign in to comment.