Fix [Drone] tests and examples (#7549)

This commit is contained in:
Pierre-Yves Bigourdan
2022-01-30 18:45:50 +00:00
committed by GitHub
parent 530e1b5fe4
commit d989222097
2 changed files with 4 additions and 4 deletions

View File

@@ -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',
},

View File

@@ -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,