Commit 3b400367 authored by Simon Knox's avatar Simon Knox

Merge branch 'dz-update-deprecated-pipeline-routes' into 'master'

Update pipeline route in spec

See merge request gitlab-org/gitlab!53865
parents f9b871ce bde47a1e
...@@ -14,7 +14,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -14,7 +14,7 @@ RSpec.describe 'Pipeline', :js do
project.add_developer(user) project.add_developer(user)
end end
describe 'GET /:project/pipelines/:id' do describe 'GET /:project/-/pipelines/:id' do
let(:pipeline) { create(:ci_pipeline, :with_job, project: project, ref: 'master', sha: project.commit.id, user: user) } let(:pipeline) { create(:ci_pipeline, :with_job, project: project, ref: 'master', sha: project.commit.id, user: user) }
subject { visit project_pipeline_path(project, pipeline) } subject { visit project_pipeline_path(project, pipeline) }
...@@ -93,7 +93,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -93,7 +93,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/security' do describe 'GET /:project/-/pipelines/:id/security' do
let(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: project.commit.id) } let(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: project.commit.id) }
before do before do
...@@ -129,7 +129,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -129,7 +129,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/licenses' do describe 'GET /:project/-/pipelines/:id/licenses' do
let(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: project.commit.id) } let(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: project.commit.id) }
before do before do
...@@ -167,7 +167,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -167,7 +167,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/codequality_report', :aggregate_failures do describe 'GET /:project/-/pipelines/:id/codequality_report', :aggregate_failures do
shared_examples_for 'full codequality report' do shared_examples_for 'full codequality report' do
context 'when licensed' do context 'when licensed' do
before do before do
......
...@@ -146,13 +146,13 @@ RSpec.describe '[EE] Internal Project Access' do ...@@ -146,13 +146,13 @@ RSpec.describe '[EE] Internal Project Access' do
it { is_expected.to be_denied_for(:auditor) } it { is_expected.to be_denied_for(:auditor) }
end end
describe "GET /:project_path/pipelines" do describe "GET /:project_path/-/pipelines" do
subject { project_pipelines_path(project) } subject { project_pipelines_path(project) }
it { is_expected.to be_allowed_for(:auditor) } it { is_expected.to be_allowed_for(:auditor) }
end end
describe "GET /:project_path/pipelines/:id" do describe "GET /:project_path/-/pipelines/:id" do
let(:pipeline) { create(:ci_pipeline, project: project) } let(:pipeline) { create(:ci_pipeline, project: project) }
subject { project_pipeline_path(project, pipeline) } subject { project_pipeline_path(project, pipeline) }
......
...@@ -17,7 +17,7 @@ export const mergedAt = () => { ...@@ -17,7 +17,7 @@ export const mergedAt = () => {
}; };
export const createPipelineStatus = (status) => ({ export const createPipelineStatus = (status) => ({
details_path: '/h5bp/html5-boilerplate/pipelines/58', details_path: '/h5bp/html5-boilerplate/-/pipelines/58',
favicon: '', favicon: '',
group: status, group: status,
has_details: true, has_details: true,
......
...@@ -170,7 +170,7 @@ export default [ ...@@ -170,7 +170,7 @@ export default [
issue_iid: null, issue_iid: null,
pipeline: { pipeline: {
id: 2, id: 2,
path: '/namespace5/project5/pipelines/2', path: '/namespace5/project5/-/pipelines/2',
}, },
category: 'sast', category: 'sast',
feedback_type: 'dismissal', feedback_type: 'dismissal',
...@@ -249,7 +249,7 @@ export default [ ...@@ -249,7 +249,7 @@ export default [
issue_iid: 1, issue_iid: 1,
pipeline: { pipeline: {
id: 3, id: 3,
path: '/namespace6/project6/pipelines/3', path: '/namespace6/project6/-/pipelines/3',
}, },
issue_url: 'http://localhost/namespace1/project1/issues/1', issue_url: 'http://localhost/namespace1/project1/issues/1',
category: 'sast', category: 'sast',
...@@ -327,7 +327,7 @@ export default [ ...@@ -327,7 +327,7 @@ export default [
issue_iid: null, issue_iid: null,
pipeline: { pipeline: {
id: 2, id: 2,
path: '/namespace5/project5/pipelines/2', path: '/namespace5/project5/-/pipelines/2',
}, },
category: 'sast', category: 'sast',
feedback_type: 'dismissal', feedback_type: 'dismissal',
...@@ -352,7 +352,7 @@ export default [ ...@@ -352,7 +352,7 @@ export default [
issue_iid: 1, issue_iid: 1,
pipeline: { pipeline: {
id: 3, id: 3,
path: '/namespace6/project6/pipelines/3', path: '/namespace6/project6/-/pipelines/3',
}, },
issue_url: 'http://localhost/namespace1/project1/issues/1', issue_url: 'http://localhost/namespace1/project1/issues/1',
category: 'sast', category: 'sast',
...@@ -484,7 +484,7 @@ export default [ ...@@ -484,7 +484,7 @@ export default [
issue_iid: null, issue_iid: null,
pipeline: { pipeline: {
id: 3, id: 3,
path: '/namespace6/project6/pipelines/3', path: '/namespace6/project6/-/pipelines/3',
}, },
issue_url: null, issue_url: null,
category: 'sast', category: 'sast',
......
...@@ -27,7 +27,7 @@ describe('Linked pipeline mini list', () => { ...@@ -27,7 +27,7 @@ describe('Linked pipeline mini list', () => {
it('should render a linked pipeline with the correct href', () => { it('should render a linked pipeline with the correct href', () => {
const linkElement = component.$el.querySelector('.linked-pipeline-mini-item'); const linkElement = component.$el.querySelector('.linked-pipeline-mini-item');
expect(linkElement.getAttribute('href')).toBe('/gitlab-org/gitlab-foss/pipelines/129'); expect(linkElement.getAttribute('href')).toBe('/gitlab-org/gitlab-foss/-/pipelines/129');
}); });
it('should render one ci status icon', () => { it('should render one ci status icon', () => {
......
...@@ -2,7 +2,7 @@ export default { ...@@ -2,7 +2,7 @@ export default {
triggered_by: { triggered_by: {
id: 129, id: 129,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/129', path: '/gitlab-org/gitlab-foss/-/pipelines/129',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/129', details_path: '/gitlab-org/gitlab-foss/-/pipelines/129',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -51,8 +51,8 @@ export default { ...@@ -51,8 +51,8 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/23433d4d8b20d7e45c103d0b6048faad38a130ab', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/23433d4d8b20d7e45c103d0b6048faad38a130ab',
commit_path: '/gitlab-org/gitlab-foss/commit/23433d4d8b20d7e45c103d0b6048faad38a130ab', commit_path: '/gitlab-org/gitlab-foss/commit/23433d4d8b20d7e45c103d0b6048faad38a130ab',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/129/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/129/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/129/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/129/cancel',
created_at: '2017-05-24T14:46:20.090Z', created_at: '2017-05-24T14:46:20.090Z',
updated_at: '2017-05-24T14:46:29.906Z', updated_at: '2017-05-24T14:46:29.906Z',
}, },
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
{ {
id: 132, id: 132,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/132', path: '/gitlab-org/gitlab-foss/-/pipelines/132',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/132', details_path: '/gitlab-org/gitlab-foss/-/pipelines/132',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -110,15 +110,15 @@ export default { ...@@ -110,15 +110,15 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e',
commit_path: '/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e', commit_path: '/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/132/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/132/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/132/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/132/cancel',
created_at: '2017-05-24T14:46:24.644Z', created_at: '2017-05-24T14:46:24.644Z',
updated_at: '2017-05-24T14:48:55.226Z', updated_at: '2017-05-24T14:48:55.226Z',
}, },
{ {
id: 133, id: 133,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/133', path: '/gitlab-org/gitlab-foss/-/pipelines/133',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/133', details_path: '/gitlab-org/gitlab-foss/-/pipelines/133',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -168,15 +168,15 @@ export default { ...@@ -168,15 +168,15 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b',
commit_path: '/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b', commit_path: '/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/133/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/133/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/133/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/133/cancel',
created_at: '2017-05-24T14:46:24.648Z', created_at: '2017-05-24T14:46:24.648Z',
updated_at: '2017-05-24T14:48:59.673Z', updated_at: '2017-05-24T14:48:59.673Z',
}, },
{ {
id: 130, id: 130,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/130', path: '/gitlab-org/gitlab-foss/-/pipelines/130',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/130', details_path: '/gitlab-org/gitlab-foss/-/pipelines/130',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -225,15 +225,15 @@ export default { ...@@ -225,15 +225,15 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f',
commit_path: '/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f', commit_path: '/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/130/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/130/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/130/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/130/cancel',
created_at: '2017-05-24T14:46:24.630Z', created_at: '2017-05-24T14:46:24.630Z',
updated_at: '2017-05-24T14:49:45.091Z', updated_at: '2017-05-24T14:49:45.091Z',
}, },
{ {
id: 131, id: 131,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/132', path: '/gitlab-org/gitlab-foss/-/pipelines/132',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/132', details_path: '/gitlab-org/gitlab-foss/-/pipelines/132',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -283,15 +283,15 @@ export default { ...@@ -283,15 +283,15 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e',
commit_path: '/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e', commit_path: '/gitlab-org/gitlab-foss/commit/b9d58c4cecd06be74c3cc32ccfb522b31544ab2e',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/132/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/132/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/132/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/132/cancel',
created_at: '2017-05-24T14:46:24.644Z', created_at: '2017-05-24T14:46:24.644Z',
updated_at: '2017-05-24T14:48:55.226Z', updated_at: '2017-05-24T14:48:55.226Z',
}, },
{ {
id: 134, id: 134,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/133', path: '/gitlab-org/gitlab-foss/-/pipelines/133',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/133', details_path: '/gitlab-org/gitlab-foss/-/pipelines/133',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -341,15 +341,15 @@ export default { ...@@ -341,15 +341,15 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b',
commit_path: '/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b', commit_path: '/gitlab-org/gitlab-foss/commit/b6bd4856a33df3d144be66c4ed1f1396009bb08b',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/133/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/133/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/133/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/133/cancel',
created_at: '2017-05-24T14:46:24.648Z', created_at: '2017-05-24T14:46:24.648Z',
updated_at: '2017-05-24T14:48:59.673Z', updated_at: '2017-05-24T14:48:59.673Z',
}, },
{ {
id: 135, id: 135,
active: true, active: true,
path: '/gitlab-org/gitlab-foss/pipelines/130', path: '/gitlab-org/gitlab-foss/-/pipelines/130',
project: { project: {
name: 'GitLabCE', name: 'GitLabCE',
}, },
...@@ -360,7 +360,7 @@ export default { ...@@ -360,7 +360,7 @@ export default {
label: 'running', label: 'running',
group: 'running', group: 'running',
has_details: true, has_details: true,
details_path: '/gitlab-org/gitlab-foss/pipelines/130', details_path: '/gitlab-org/gitlab-foss/-/pipelines/130',
favicon: favicon:
'/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico', '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
}, },
...@@ -398,8 +398,8 @@ export default { ...@@ -398,8 +398,8 @@ export default {
'http://localhost:3000/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f', 'http://localhost:3000/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f',
commit_path: '/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f', commit_path: '/gitlab-org/gitlab-foss/commit/6d7ced4a2311eeff037c5575cca1868a6d3f586f',
}, },
retry_path: '/gitlab-org/gitlab-foss/pipelines/130/retry', retry_path: '/gitlab-org/gitlab-foss/-/pipelines/130/retry',
cancel_path: '/gitlab-org/gitlab-foss/pipelines/130/cancel', cancel_path: '/gitlab-org/gitlab-foss/-/pipelines/130/cancel',
created_at: '2017-05-24T14:46:24.630Z', created_at: '2017-05-24T14:46:24.630Z',
updated_at: '2017-05-24T14:49:45.091Z', updated_at: '2017-05-24T14:49:45.091Z',
}, },
......
...@@ -38,7 +38,7 @@ export function mockPipelineData( ...@@ -38,7 +38,7 @@ export function mockPipelineData(
path: '/test', path: '/test',
}, },
active: false, active: false,
path: '/test/test-project/pipelines/1', path: '/test/test-project/-/pipelines/1',
details: { details: {
status: { status: {
icon: `status_${status}`, icon: `status_${status}`,
...@@ -47,7 +47,7 @@ export function mockPipelineData( ...@@ -47,7 +47,7 @@ export function mockPipelineData(
group: status, group: status,
tooltip: status, tooltip: status,
has_details: true, has_details: true,
details_path: '/test/test-project/pipelines/1', details_path: '/test/test-project/-/pipelines/1',
illustration: null, illustration: null,
}, },
finished_at: finishedTimeStamp, finished_at: finishedTimeStamp,
......
...@@ -58,7 +58,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -58,7 +58,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id' do describe 'GET /:project/-/pipelines/:id' do
include_context 'pipeline builds' include_context 'pipeline builds'
let(:group) { create(:group) } let(:group) { create(:group) }
...@@ -633,7 +633,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -633,7 +633,7 @@ RSpec.describe 'Pipeline', :js do
project.update(public_builds: false) project.update(public_builds: false)
end end
describe 'GET /:project/pipelines/:id' do describe 'GET /:project/-/pipelines/:id' do
include_context 'pipeline builds' include_context 'pipeline builds'
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
...@@ -678,7 +678,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -678,7 +678,7 @@ RSpec.describe 'Pipeline', :js do
downstream: downstream) downstream: downstream)
end end
describe 'GET /:project/pipelines/:id' do describe 'GET /:project/-/pipelines/:id' do
before do before do
visit project_pipeline_path(project, pipeline) visit project_pipeline_path(project, pipeline)
end end
...@@ -727,7 +727,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -727,7 +727,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/builds' do describe 'GET /:project/-/pipelines/:id/builds' do
before do before do
visit builds_project_pipeline_path(project, pipeline) visit builds_project_pipeline_path(project, pipeline)
end end
...@@ -754,7 +754,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -754,7 +754,7 @@ RSpec.describe 'Pipeline', :js do
stage_idx: 2, pipeline: pipeline, project: project, resource_group: resource_group) stage_idx: 2, pipeline: pipeline, project: project, resource_group: resource_group)
end end
describe 'GET /:project/pipelines/:id' do describe 'GET /:project/-/pipelines/:id' do
subject { visit project_pipeline_path(project, pipeline) } subject { visit project_pipeline_path(project, pipeline) }
it 'shows deploy job as created' do it 'shows deploy job as created' do
...@@ -872,7 +872,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -872,7 +872,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/builds' do describe 'GET /:project/-/pipelines/:id/builds' do
include_context 'pipeline builds' include_context 'pipeline builds'
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
...@@ -974,7 +974,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -974,7 +974,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/failures' do describe 'GET /:project/-/pipelines/:id/failures' do
let(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: '1234') } let(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: '1234') }
let(:pipeline_failures_page) { failures_project_pipeline_path(project, pipeline) } let(:pipeline_failures_page) { failures_project_pipeline_path(project, pipeline) }
let!(:failed_build) { create(:ci_build, :failed, pipeline: pipeline) } let!(:failed_build) { create(:ci_build, :failed, pipeline: pipeline) }
...@@ -1092,7 +1092,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -1092,7 +1092,7 @@ RSpec.describe 'Pipeline', :js do
end end
end end
describe 'GET /:project/pipelines/:id/dag' do describe 'GET /:project/-/pipelines/:id/dag' do
include_context 'pipeline builds' include_context 'pipeline builds'
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
...@@ -18,7 +18,7 @@ RSpec.describe 'Pipelines', :js do ...@@ -18,7 +18,7 @@ RSpec.describe 'Pipelines', :js do
project.update!(auto_devops_attributes: { enabled: false }) project.update!(auto_devops_attributes: { enabled: false })
end end
describe 'GET /:project/pipelines' do describe 'GET /:project/-/pipelines' do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let!(:pipeline) do let!(:pipeline) do
...@@ -617,7 +617,7 @@ RSpec.describe 'Pipelines', :js do ...@@ -617,7 +617,7 @@ RSpec.describe 'Pipelines', :js do
end end
end end
describe 'GET /:project/pipelines/show' do describe 'GET /:project/-/pipelines/show' do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:pipeline) do let(:pipeline) do
...@@ -669,7 +669,7 @@ RSpec.describe 'Pipelines', :js do ...@@ -669,7 +669,7 @@ RSpec.describe 'Pipelines', :js do
end end
end end
describe 'POST /:project/pipelines' do describe 'POST /:project/-/pipelines' do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
before do before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment