Skip to content

Commit b4c21fd

Browse files
authored
Fix [JiraSprint] tests (#10746)
* Fix [JiraSprint] tests * Switch to https URLs
1 parent 00c73c8 commit b4c21fd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

services/jira/jira-issue.tester.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ t.create('known issue')
1010
.expectBadge({ label: 'kafka-2896', message: 'Resolved' })
1111

1212
t.create('no status color')
13-
.get('/foo-123.json?baseUrl=http://issues.apache.org/jira')
13+
.get('/foo-123.json?baseUrl=https://issues.apache.org/jira')
1414
.intercept(nock =>
15-
nock('http://issues.apache.org/jira/rest/api/2/issue')
15+
nock('https://issues.apache.org/jira/rest/api/2/issue')
1616
.get(`/${encodeURIComponent('foo-123')}`)
1717
.reply(200, {
1818
fields: {

services/jira/jira-sprint.tester.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ import { sprintId, sprintQueryString } from './jira-test-helpers.js'
44
export const t = await createServiceTester()
55

66
t.create('unknown sprint')
7-
.get('/abc.json?baseUrl=https://jira.spring.io')
7+
.get('/abc.json?baseUrl=https://issues.apache.org/jira')
88
.expectBadge({ label: 'jira', message: 'sprint not found' })
99

1010
t.create('known sprint')
11-
.get('/94.json?baseUrl=https://jira.spring.io')
11+
.get('/3.json?baseUrl=https://issues.apache.org/jira')
1212
.expectBadge({
1313
label: 'completion',
1414
message: isIntegerPercentage,
1515
})
1616

1717
t.create('100% completion')
18-
.get(`/${sprintId}.json?baseUrl=http://issues.apache.org/jira`)
18+
.get(`/${sprintId}.json?baseUrl=https://issues.apache.org/jira`)
1919
.intercept(nock =>
20-
nock('http://issues.apache.org/jira/rest/api/2')
20+
nock('https://issues.apache.org/jira/rest/api/2')
2121
.get('/search')
2222
.query(sprintQueryString)
2323
.reply(200, {
@@ -47,9 +47,9 @@ t.create('100% completion')
4747
})
4848

4949
t.create('0% completion')
50-
.get(`/${sprintId}.json?baseUrl=http://issues.apache.org/jira`)
50+
.get(`/${sprintId}.json?baseUrl=https://issues.apache.org/jira`)
5151
.intercept(nock =>
52-
nock('http://issues.apache.org/jira/rest/api/2')
52+
nock('https://issues.apache.org/jira/rest/api/2')
5353
.get('/search')
5454
.query(sprintQueryString)
5555
.reply(200, {
@@ -72,9 +72,9 @@ t.create('0% completion')
7272
})
7373

7474
t.create('no issues in sprint')
75-
.get(`/${sprintId}.json?baseUrl=http://issues.apache.org/jira`)
75+
.get(`/${sprintId}.json?baseUrl=https://issues.apache.org/jira`)
7676
.intercept(nock =>
77-
nock('http://issues.apache.org/jira/rest/api/2')
77+
nock('https://issues.apache.org/jira/rest/api/2')
7878
.get('/search')
7979
.query(sprintQueryString)
8080
.reply(200, {

0 commit comments

Comments
 (0)