Fix [Drone] tests and examples (#7549)
This commit is contained in:
committed by
GitHub
parent
530e1b5fe4
commit
d989222097
@@ -27,7 +27,7 @@ export default class DroneBuild extends BaseJsonService {
|
||||
title: 'Drone (cloud)',
|
||||
pattern: ':user/:repo',
|
||||
namedParams: {
|
||||
user: 'drone',
|
||||
user: 'harness',
|
||||
repo: 'drone',
|
||||
},
|
||||
staticPreview: renderBuildStatusBadge({ status: 'success' }),
|
||||
@@ -36,7 +36,7 @@ export default class DroneBuild extends BaseJsonService {
|
||||
title: 'Drone (cloud) with branch',
|
||||
pattern: ':user/:repo/:branch',
|
||||
namedParams: {
|
||||
user: 'drone',
|
||||
user: 'harness',
|
||||
repo: 'drone',
|
||||
branch: 'master',
|
||||
},
|
||||
|
||||
@@ -10,14 +10,14 @@ const isDroneBuildStatus = Joi.alternatives().try(
|
||||
)
|
||||
|
||||
t.create('cloud-hosted build status on default branch')
|
||||
.get('/drone/drone.json')
|
||||
.get('/harness/drone.json')
|
||||
.expectBadge({
|
||||
label: 'build',
|
||||
message: isDroneBuildStatus,
|
||||
})
|
||||
|
||||
t.create('cloud-hosted build status on named branch')
|
||||
.get('/drone/drone/master.json')
|
||||
.get('/harness/drone/master.json')
|
||||
.expectBadge({
|
||||
label: 'build',
|
||||
message: isDroneBuildStatus,
|
||||
|
||||
Reference in New Issue
Block a user