Skip to content

Commit 537e09f

Browse files
author
Konstantin Semenov
committed
fix: Fix the pipeline URL
1 parent 3111517 commit 537e09f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Radar/App Data Objects/Pipeline.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct Pipeline: Identifiable {
1414
let jobs: [Job]
1515

1616
var url: URL {
17-
concourseUrl.appending(components: "teams", teamName, "pipeline", name)
17+
concourseUrl.appending(components: "teams", teamName, "pipelines", name)
1818
}
1919

2020
var statusIcon: Icon {

RadarTests/PipelineSpec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PipelineSpec: QuickSpec {
99
override func spec() {
1010
it("returns the pipeline URL") {
1111
let pipeline = Pipeline(id: 1, name: "pipeline-name", isPaused: false, isPublic: false, concourseUrl: URL(string: "http://localhost")!, teamName: "test-team", jobs: [])
12-
expect(pipeline.url).to(equal(URL(string: "http://localhost/teams/test-team/pipeline/pipeline-name")!))
12+
expect(pipeline.url).to(equal(URL(string: "http://localhost/teams/test-team/pipelines/pipeline-name")!))
1313
}
1414

1515
describe("status") {
@@ -60,4 +60,4 @@ class PipelineSpec: QuickSpec {
6060
}
6161
}
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)