Commit 5e9a9ff5 authored by Dan Davison's avatar Dan Davison

Merge branch 'ml-rename-status-issue-tag-to-testcase-3of3' into 'master'

Rename `status_issue` tag to `testcase` 3 of 3

See merge request gitlab-org/gitlab!40676
parents d927b0c8 bb8558b0
......@@ -7,7 +7,7 @@ module QA
Flow::Login.sign_in
end
it 'creates an epic', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/522' do
it 'creates an epic', :reliable, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/522' do
epic_title = 'Epic created via GUI'
EE::Resource::Epic.fabricate_via_browser_ui! do |epic|
epic.title = epic_title
......@@ -16,7 +16,7 @@ module QA
expect(page).to have_content(epic_title)
end
it 'creates a confidential epic', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/967' do
it 'creates a confidential epic', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/967' do
epic_title = 'Confidential epic created via GUI'
EE::Resource::Epic.fabricate_via_browser_ui! do |epic|
epic.title = epic_title
......@@ -36,7 +36,7 @@ module QA
epic.visit!
end
it 'adds/removes issue to/from epic', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/526' do
it 'adds/removes issue to/from epic', :reliable, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/526' do
EE::Page::Group::Epic::Show.perform do |show|
show.add_issue_to_epic(issue.web_url)
......@@ -48,7 +48,7 @@ module QA
end
end
it 'comments on epic', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/525' do
it 'comments on epic', :reliable, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/525' do
comment = 'My Epic Comment'
EE::Page::Group::Epic::Show.perform do |show|
show.add_comment_to_epic(comment)
......@@ -57,7 +57,7 @@ module QA
expect(page).to have_content(comment)
end
it 'closes and reopens an epic', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/524' do
it 'closes and reopens an epic', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/524' do
EE::Page::Group::Epic::Show.perform(&:close_reopen_epic)
expect(page).to have_content('Closed')
......@@ -68,7 +68,7 @@ module QA
end
end
it 'adds/removes issue to/from epic using quick actions', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/523' do
it 'adds/removes issue to/from epic using quick actions', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/523' do
issue.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -3,7 +3,7 @@
module QA
RSpec.describe 'Plan', :reliable do
describe 'promote issue to epic' do
it 'promotes issue to epic', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/604' do
it 'promotes issue to epic', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/604' do
Flow::Login.sign_in
project = Resource::Project.fabricate_via_api! do |project|
......
......@@ -19,7 +19,7 @@ module QA
Flow::Login.sign_in
end
it 'presents epic on roadmap', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/536' do
it 'presents epic on roadmap', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/536' do
page.visit("#{epic.group.web_url}/-/roadmap")
EE::Page::Group::Roadmap.perform do |roadmap|
......
......@@ -13,7 +13,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'renames the issue board', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/609' do
it 'renames the issue board', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/609' do
new_board_name = 'UX'
Page::Component::IssueBoard::Show.perform do |show|
......
......@@ -23,7 +23,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows only issues that match the configured label', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/646' do
it 'shows only issues that match the configured label', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/646' do
Page::Component::IssueBoard::Show.perform do |show|
show.configure_by_label(doing)
......
......@@ -17,7 +17,7 @@ module QA
Page::Group::Menu.perform(&:go_to_issue_boards)
end
it 'creates a group issue board via the GUI', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/576' do
it 'creates a group issue board via the GUI', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/576' do
Page::Component::IssueBoard::Show.perform do |show|
new_board = "Board-#{SecureRandom.hex(4)}"
......
......@@ -27,7 +27,7 @@ module QA
Page::Group::Menu.perform(&:go_to_issue_boards)
end
it 'shows multiple group boards in the boards dropdown menu', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/537' do
it 'shows multiple group boards in the boards dropdown menu', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/537' do
Page::Component::IssueBoard::Show.perform do |show|
show.click_boards_dropdown_button
......
......@@ -26,7 +26,7 @@ module QA
go_to_project_board(label_board_list.project)
end
it 'shows the just created board with a "Doing" (label) list, and an issue on it', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/606' do
it 'shows the just created board with a "Doing" (label) list, and an issue on it', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/606' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_dropdown).to have_content(label_board_list.board.name)
expect(show.boards_list_header_with_index(1)).to have_content(label)
......@@ -50,7 +50,7 @@ module QA
go_to_project_board(milestone_board_list.project)
end
it 'shows the just created board with a "1.0" (milestone) list, and an issue on it', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/607' do
it 'shows the just created board with a "1.0" (milestone) list, and an issue on it', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/607' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_dropdown).to have_content(milestone_board_list.board.name)
expect(show.boards_list_header_with_index(1)).to have_content('1.0')
......@@ -83,7 +83,7 @@ module QA
go_to_project_board(project)
end
it 'shows the just created board with an assignee list, and an issue on it', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/608' do
it 'shows the just created board with an assignee list, and an issue on it', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/608' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_dropdown).to have_content(@assignee_board_list.board.name)
expect(show.boards_list_header_with_index(1)).to have_content(@user.name)
......
......@@ -24,7 +24,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows board configuration to user without edit permission', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/636' do
it 'shows board configuration to user without edit permission', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/636' do
Page::Component::IssueBoard::Show.perform do |show|
show.click_boards_config_button
......
......@@ -30,7 +30,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows the sum of issues weights in the board list\'s header', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/603' do
it 'shows the sum of issues weights in the board list\'s header', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/603' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_list_header_with_index(1)).to have_content(weight_for_issue_1 + weight_for_issue_2)
end
......
......@@ -20,13 +20,13 @@ module QA
end
end
describe 'Group level issues analytics', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/551' do
describe 'Group level issues analytics', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/551' do
it_behaves_like 'issues analytics page' do
let(:analytics_path) { "#{issue.project.group.web_url}/-/issues_analytics" }
end
end
describe 'Project level issues analytics', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/552' do
describe 'Project level issues analytics', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/552' do
it_behaves_like 'issues analytics page' do
let(:analytics_path) { "#{issue.project.web_url}/-/analytics/issues_analytics" }
end
......
......@@ -22,7 +22,7 @@ module QA
end
end
it 'shows the set weight in the issue page, in the milestone page, and in the issues list page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/583' do
it 'shows the set weight in the issue page, in the milestone page, and in the issues list page', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/583' do
issue.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -33,7 +33,7 @@ module QA
project.visit!
end
it 'shows four assignees in the issues list', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/643' do
it 'shows four assignees in the issues list', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/643' do
Page::Project::Menu.perform(&:click_issues)
Page::Project::Issue::Index.perform do |index|
......
......@@ -39,7 +39,7 @@ module QA
end
end
it 'shows the first three assignees and a +n sign in the issues list', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/580' do
it 'shows the first three assignees and a +n sign in the issues list', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/580' do
project.visit!
Page::Project::Menu.perform(&:click_issues)
......@@ -51,7 +51,7 @@ module QA
end
end
it 'shows the first five assignees and a +n more link in the issue page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/582' do
it 'shows the first five assignees and a +n more link in the issue page', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/582' do
@issue.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -33,7 +33,7 @@ module QA
issue.visit!
end
it 'correctly applies simple and multiple colon scoped pairs labels', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/595' do
it 'correctly applies simple and multiple colon scoped pairs labels', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/595' do
Page::Project::Issue::Show.perform do |show|
show.select_labels_and_refresh([
new_label_same_scope,
......
......@@ -41,7 +41,7 @@ module QA
Page::Group::Menu.perform(&:click_contribution_analytics_item)
end
it 'tests contributions', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/225303', type: :bug }, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/527' do
it 'tests contributions', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/225303', type: :bug }, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/527' do
EE::Page::Group::ContributionAnalytics.perform do |contribution_analytics|
expect(contribution_analytics).to have_push_element('3 pushes, more than 4.0 commits by 1 person contributors.')
expect(contribution_analytics).to have_mr_element('1 created, 1 merged.')
......
......@@ -26,7 +26,7 @@ module QA
setup_jenkins
end
it 'integrates and displays build status for MR pipeline in GitLab', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/719' do
it 'integrates and displays build status for MR pipeline in GitLab', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/719' do
login_to_gitlab
setup_project_integration_with_jenkins
......
......@@ -17,7 +17,7 @@ module QA
end
end
it 'user submits a non-diff review', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/637' do
it 'user submits a non-diff review', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/637' do
Flow::Login.sign_in
merge_request.visit!
......@@ -38,7 +38,7 @@ module QA
end
end
it 'user submits a diff review', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/638' do
it 'user submits a diff review', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/638' do
Flow::Login.sign_in
merge_request.visit!
......
......@@ -23,7 +23,7 @@ module QA
login
end
it 'allows multiple approval rules with users and groups', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/578' do
it 'allows multiple approval rules with users and groups', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/578' do
# Create a merge request with 2 rules
merge_request = Resource::MergeRequest.fabricate_via_browser_ui! do |resource|
resource.title = 'Add a new feature'
......
......@@ -25,7 +25,7 @@ module QA
project.visit!
end
it 'merge request assigns code owners as approvers', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/605' do
it 'merge request assigns code owners as approvers', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/605' do
# Commit CODEOWNERS to master
Resource::Repository::Commit.fabricate_via_api! do |commit|
commit.project = project
......
......@@ -35,7 +35,7 @@ module QA
end
end
it 'displays owners specified in CODEOWNERS file', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/519' do
it 'displays owners specified in CODEOWNERS file', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/519' do
codeowners_file_content =
<<-CONTENT
* @#{@user2.username}
......
......@@ -28,7 +28,7 @@ module QA
end
end
it 'locks a directory and tries to push as a second user', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/557' do
it 'locks a directory and tries to push as a second user', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/557' do
push branch: 'master', file: 'directory/file', as_user: @user_one
sign_out_and_sign_in_as user: @user_one
......@@ -39,7 +39,7 @@ module QA
expect_no_error_on_push for_file: 'directory/file', as_user: @user_one
end
it 'locks a file and tries to push as a second user', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/558' do
it 'locks a file and tries to push as a second user', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/558' do
sign_out_and_sign_in_as user: @user_one
go_to_file
click_lock
......@@ -48,7 +48,7 @@ module QA
expect_no_error_on_push as_user: @user_one
end
it 'checks file locked by other user to be disabled', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/556' do
it 'checks file locked by other user to be disabled', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/556' do
go_to_file
click_lock
sign_out_and_sign_in_as user: @user_one
......@@ -59,7 +59,7 @@ module QA
end
end
it 'creates a merge request and fails to merge', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/40125', type: :bug }, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/559' do
it 'creates a merge request and fails to merge', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/40125', type: :bug }, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/559' do
push branch: 'test', as_user: @user_one
merge_request = Resource::MergeRequest.fabricate_via_api! do |merge_request|
......@@ -77,7 +77,7 @@ module QA
expect(page).to have_text("locked by #{admin_username}")
end
it 'locks a file and unlocks in list', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/555' do
it 'locks a file and unlocks in list', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/555' do
sign_out_and_sign_in_as user: @user_one
go_to_file
click_lock
......
......@@ -5,7 +5,7 @@ module QA
# Use Admin credentials as a workaround for a permissions bug
# See https://gitlab.com/gitlab-org/gitlab/issues/13769
describe 'Pull mirror a repository over HTTP', :requires_admin do
it 'configures and syncs a (pull) mirrored repository with password auth', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/520' do
it 'configures and syncs a (pull) mirrored repository with password auth', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/520' do
Flow::Login.sign_in_as_admin
source = Resource::Repository::ProjectPush.fabricate! do |project_push|
......
......@@ -25,7 +25,7 @@ module QA
target_project.visit!
end
it 'configures and syncs a (pull) mirrored repository', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/401' do
it 'configures and syncs a (pull) mirrored repository', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/401' do
# Configure the target project to pull from the source project
# And get the public key to be used as a deploy key
Page::Project::Menu.perform(&:go_to_repository_settings)
......
......@@ -29,11 +29,11 @@ module QA
end
end
it 'allows an unrestricted push', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/760' do
it 'allows an unrestricted push', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/760' do
expect_no_error_on_push(file: standard_file)
end
it 'restricts files by name and size', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/653' do
it 'restricts files by name and size', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/653' do
# Note: The file size limits in this test should be lower than the limits in
# browser_ui/3_create/repository/push_over_http_file_size_spec to prevent
# the limit set in that test from triggering in this test (which can happen
......@@ -55,7 +55,7 @@ module QA
error: Regexp.escape("File name #{@file_name_limitation} was blacklisted by the pattern #{@file_name_limitation}"))
end
it 'restricts users by email format', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/652' do
it 'restricts users by email format', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/652' do
gitlab_user = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_2, Runtime::Env.gitlab_qa_password_2)
@project.add_member(gitlab_user, Resource::Members::AccessLevel::MAINTAINER)
......@@ -63,12 +63,12 @@ module QA
error: Regexp.escape("Committer's email '#{gitlab_user.email}' does not follow the pattern '#{@authors_email_limitation}'"))
end
it 'restricts branches by branch name', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/649' do
it 'restricts branches by branch name', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/649' do
expect_error_on_push(file: standard_file, branch: 'forbidden_branch',
error: Regexp.escape("Branch name does not follow the pattern '#{@branch_name_limitation}'"))
end
it 'restricts commit by message format', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/648' do
it 'restricts commit by message format', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/648' do
expect_no_error_on_push(file: standard_file, commit_message: @needed_phrase_limitation)
expect_error_on_push(file: standard_file, commit_message: 'forbidden message',
error: Regexp.escape("Commit message does not follow the pattern '#{@needed_phrase_limitation}'"))
......@@ -76,7 +76,7 @@ module QA
error: Regexp.escape("Commit message contains the forbidden pattern '#{@deny_message_phrase_limitation}'"))
end
it 'restricts committing files with secrets', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/647' do
it 'restricts committing files with secrets', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/647' do
secret_file = [{
name: 'id_rsa',
content: SecureRandom.hex(100)
......@@ -86,7 +86,7 @@ module QA
error: Regexp.escape('File name id_rsa was blacklisted by the pattern id_rsa$'))
end
it 'restricts removal of tag', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/650' do
it 'restricts removal of tag', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/650' do
tag = Resource::Tag.fabricate_via_api! do |tag|
tag.project = @project
tag.ref = 'master'
......@@ -110,7 +110,7 @@ module QA
end
end
it 'rejects non-member users', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/879' do
it 'rejects non-member users', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/879' do
non_member_user = Resource::User.new.tap do |user|
user.username = ''
user.password = ''
......@@ -135,7 +135,7 @@ module QA
end
end
it 'rejects unverified emails', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/761' do
it 'rejects unverified emails', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/761' do
expect_no_error_on_push(file: standard_file)
expect_error_on_push(file: standard_file, user: @root,
error: 'You can only push commits that were committed with one of your own verified emails')
......@@ -156,7 +156,7 @@ module QA
@gpg = Resource::UserGPG.fabricate_via_api!
end
it 'restricts to signed commits', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/655' do
it 'restricts to signed commits', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/655' do
expect_no_error_on_push(file: standard_file, gpg: @gpg)
expect_error_on_push(file: standard_file, error: 'Commit must be signed with a GPG key')
end
......
......@@ -51,7 +51,7 @@ module QA
@runner.remove_via_api! if @runner
end
it 'user starts the web terminal', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/405' do
it 'user starts the web terminal', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/405' do
Page::Project::Show.perform(&:open_web_ide!)
# Start the web terminal and check that there were no errors
......
......@@ -54,7 +54,7 @@ module QA
remove_projects
end
it 'has many pipelines with appropriate statuses', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/900' do
it 'has many pipelines with appropriate statuses', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/900' do
add_projects_to_board
EE::Page::OperationsDashboard.perform do |operation|
......
......@@ -75,7 +75,7 @@ module QA
runner.remove_via_api!
end
it 'creates a multi-project pipeline', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/560' do
it 'creates a multi-project pipeline', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/560' do
Page::MergeRequest::Show.perform do |show|
pipeline_passed = show.retry_until(reload: true, max_attempts: 20, sleep_interval: 6) do
show.has_content?(/Pipeline #\d+ passed/)
......
......@@ -59,7 +59,7 @@ module QA
runner.remove_via_api! if runner
end
it 'creates a pipeline with merged results', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/562' do
it 'creates a pipeline with merged results', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/562' do
branch_name = "merged-results-#{SecureRandom.hex(8)}"
# Create a branch that will be merged into master
......@@ -94,7 +94,7 @@ module QA
expect(merged).to be_truthy, "Expected content 'The changes were merged' but it did not appear."
end
it 'merges via a merge train', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/561' do
it 'merges via a merge train', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/561' do
branch_name = "merge-train-#{SecureRandom.hex(8)}"
# Create a branch that will be merged into master
......
......@@ -11,7 +11,7 @@ module QA
@project.visit!
end
it 'allows configuration of alerts', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/869' do
it 'allows configuration of alerts', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/869' do
Page::Project::Menu.perform(&:go_to_operations_metrics)
Page::Project::Operations::Metrics::Show.perform do |on_dashboard|
......@@ -23,7 +23,7 @@ module QA
end
end
it 'creates an incident template and opens an incident with template applied', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/981' do
it 'creates an incident template and opens an incident with template applied', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/981' do
create_incident_template
Page::Project::Menu.perform(&:go_to_operations_settings)
......
......@@ -29,7 +29,7 @@ module QA
end.project.visit!
end
it 'tests reindexing after push', retry: 3, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/679' do
it 'tests reindexing after push', retry: 3, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/679' do
expect { Runtime::Search.find_code(project_file_name, project_file_content) }.not_to raise_error
QA::Page::Main::Menu.perform do |menu|
......@@ -43,7 +43,7 @@ module QA
end
end
it 'tests reindexing after webIDE', retry: 3, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/680' do
it 'tests reindexing after webIDE', retry: 3, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/680' do
template = {
file_name: 'LICENSE',
name: 'Mozilla Public License 2.0',
......
......@@ -5,7 +5,7 @@ module QA
describe 'GitLab Geo attachment replication' do
let(:file_to_attach) { File.absolute_path(File.join('spec', 'fixtures', 'banana_sample.gif')) }
it 'user uploads attachment to the primary node', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/692' do
it 'user uploads attachment to the primary node', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/692' do
QA::Flow::Login.while_signed_in(address: :geo_primary) do
@project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project-for-issues'
......
......@@ -25,7 +25,7 @@ module QA
deleted_project_id = project_to_delete.id
end
it 'replicates deletion of a project to secondary node', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/696' do
it 'replicates deletion of a project to secondary node', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/696' do
QA::Runtime::Logger.debug('Visiting the secondary geo node')
QA::Flow::Login.while_signed_in(address: :geo_secondary) do
......
......@@ -6,7 +6,7 @@ module QA
let(:file_name) { 'README.md' }
context 'regular git commit' do
it 'is replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/690' do
it 'is replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/690' do
file_content = 'This is a Geo project! Commit from primary.'
project = nil
......@@ -60,7 +60,7 @@ module QA
end
context 'git-lfs commit' do
it 'is replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/689' do
it 'is replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/689' do
file_content = 'This is a Geo project!'
lfs_file_display_message = 'The rendered file could not be displayed because it is stored in LFS.'
project = nil
......
......@@ -9,7 +9,7 @@ module QA
let(:file_content_secondary) { 'This is a Geo project! Commit from secondary.' }
context 'regular git commit' do
it 'is redirected to the primary and ultimately replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/700' do
it 'is redirected to the primary and ultimately replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/700' do
file_name = 'README.md'
project = nil
......@@ -89,7 +89,7 @@ module QA
end
context 'git-lfs commit' do
it 'is redirected to the primary and ultimately replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/699' do
it 'is redirected to the primary and ultimately replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/699' do
file_name_primary = 'README.md'
file_name_secondary = 'README_MORE.md'
project = nil
......
......@@ -3,7 +3,7 @@
module QA
RSpec.describe 'Geo', :orchestrated, :geo do
describe 'GitLab Geo project rename replication' do
it 'user renames project', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/695' do
it 'user renames project', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/695' do
original_project_name = 'geo-before-rename'
original_readme_content = "The original project name was #{original_project_name}"
readme_file_name = 'README.md'
......
......@@ -6,7 +6,7 @@ module QA
let(:file_name) { 'README.md' }
context 'regular git commit' do
it "is replicated to the secondary", status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/686' do
it "is replicated to the secondary", testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/686' do
key_title = "Geo SSH #{Time.now.to_f}"
file_content = 'This is a Geo project! Commit from primary.'
project = nil
......@@ -69,7 +69,7 @@ module QA
end
context 'git-lfs commit' do
it "is replicated to the secondary", status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/687' do
it "is replicated to the secondary", testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/687' do
key_title = "Geo SSH LFS #{Time.now.to_f}"
file_content = 'The rendered file could not be displayed because it is stored in LFS.'
project = nil
......
......@@ -7,7 +7,7 @@ module QA
let(:file_content_secondary) { 'This is a Geo project! Commit from secondary.' }
context 'regular git commit' do
it 'is proxied to the primary and ultimately replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/698' do
it 'is proxied to the primary and ultimately replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/698' do
file_name = 'README.md'
key_title = "Geo SSH to 2nd #{Time.now.to_f}"
project = nil
......@@ -90,7 +90,7 @@ module QA
end
context 'git-lfs commit' do
it 'is proxied to the primary and ultimately replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/697' do
it 'is proxied to the primary and ultimately replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/697' do
key_title = "Geo SSH LFS to 2nd #{Time.now.to_f}"
file_name_primary = 'README.md'
file_name_secondary = 'README_MORE.md'
......
......@@ -4,7 +4,7 @@ module QA
RSpec.describe 'Geo', :orchestrated, :geo do
describe 'GitLab wiki HTTP push' do
context 'wiki commit' do
it 'is replicated to the secondary node', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/691' do
it 'is replicated to the secondary node', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/691' do
wiki_content = 'This tests replication of wikis via HTTP'
push_content = 'This is from the Geo wiki push!'
project = nil
......
......@@ -40,7 +40,7 @@ module QA
end
end
it 'is redirected to the primary and ultimately replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/693' do
it 'is redirected to the primary and ultimately replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/693' do
QA::Runtime::Logger.debug('Visiting the secondary geo node')
QA::Flow::Login.while_signed_in(address: :geo_secondary) do
......
......@@ -4,7 +4,7 @@ module QA
RSpec.describe 'Geo', :orchestrated, :geo do
describe 'GitLab wiki SSH push' do
context 'wiki commit' do
it 'is replicated to the secondary', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/688' do
it 'is replicated to the secondary', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/688' do
wiki_content = 'This tests replication of wikis via SSH'
push_content = 'This is from the Geo wiki push via SSH!'
project = nil
......
......@@ -34,7 +34,7 @@ module QA
end
end
it 'proxies wiki commit to primary node and ultmately replicates to secondary node', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/694' do
it 'proxies wiki commit to primary node and ultmately replicates to secondary node', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/694' do
QA::Runtime::Logger.debug('*****Visiting the secondary geo node*****')
QA::Flow::Login.while_signed_in(address: :geo_secondary) do
......
......@@ -59,7 +59,7 @@ module QA
merge_request.visit!
end
it 'displays the Security reports in the merge request', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/538' do
it 'displays the Security reports in the merge request', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/538' do
Page::MergeRequest::Show.perform do |merge_request|
expect(merge_request).to have_vulnerability_report
expect(merge_request).to have_vulnerability_count
......
......@@ -45,7 +45,7 @@ module QA
Flow::Login.sign_in_unless_signed_in
end
it 'can approve a license in the license compliance page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/964' do
it 'can approve a license in the license compliance page', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/964' do
@project.visit!
Page::Project::Menu.perform(&:click_on_license_compliance)
......@@ -57,7 +57,7 @@ module QA
end
end
it 'can deny a license in the settings page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/963' do
it 'can deny a license in the settings page', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/963' do
@project.visit!
Page::Project::Menu.perform(&:click_on_license_compliance)
......@@ -107,7 +107,7 @@ module QA
Page::Project::Pipeline::Index.perform(&:wait_for_latest_pipeline_success)
end
it 'can approve and deny licenses in the pipeline', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/965' do
it 'can approve and deny licenses in the pipeline', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/965' do
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline)
......
......@@ -116,7 +116,7 @@ module QA
Page::Project::Pipeline::Index.perform(&:wait_for_latest_pipeline_success)
end
it 'manage licenses from the merge request', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/575' do
it 'manage licenses from the merge request', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/575' do
@merge_request.visit!
Page::MergeRequest::Show.perform do |show|
......
......@@ -59,7 +59,7 @@ module QA
@runner.remove_via_api!
end
it 'shows vulnerability details', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/949' do
it 'shows vulnerability details', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/949' do
Flow::Login.sign_in_unless_signed_in
@project.visit!
Page::Project::Menu.perform(&:click_on_security_dashboard)
......
......@@ -49,7 +49,7 @@ module QA
@project.visit!
end
it 'displays security reports in the pipeline', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/565' do
it 'displays security reports in the pipeline', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/565' do
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline)
......@@ -74,7 +74,7 @@ module QA
end
end
it 'displays security reports in the project security dashboard', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/566' do
it 'displays security reports in the project security dashboard', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/566' do
Page::Project::Menu.perform(&:click_project)
Page::Project::Menu.perform(&:click_on_security_dashboard)
......@@ -97,7 +97,7 @@ module QA
end
end
it 'displays security reports in the group security dashboard', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/567' do
it 'displays security reports in the group security dashboard', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/567' do
Page::Main::Menu.perform(&:go_to_groups)
Page::Dashboard::Groups.perform do |groups|
groups.click_group @project.group.path
......@@ -131,7 +131,7 @@ module QA
end
end
it 'displays the Dependency List', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/564' do
it 'displays the Dependency List', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/564' do
Page::Project::Menu.perform(&:click_on_dependency_list)
EE::Page::Project::Secure::DependencyList.perform do |dependency_list|
......
......@@ -61,7 +61,7 @@ module QA
@merge_request.visit!
end
it 'can dismiss a vulnerability with a reason', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/549' do
it 'can dismiss a vulnerability with a reason', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/549' do
dismiss_reason = "Vulnerability not applicable"
Page::MergeRequest::Show.perform do |merge_request|
......@@ -73,7 +73,7 @@ module QA
end
end
it 'can create an issue from a vulnerability', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/548' do
it 'can create an issue from a vulnerability', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/548' do
Page::MergeRequest::Show.perform do |merge_request|
expect(merge_request).to have_vulnerability_report
merge_request.create_vulnerability_issue(vuln_name)
......@@ -84,7 +84,7 @@ module QA
end
end
it 'can create an auto-remediation MR', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/550' do
it 'can create an auto-remediation MR', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/550' do
Page::MergeRequest::Show.perform do |merge_request|
expect(merge_request).to have_vulnerability_report
merge_request.resolve_vulnerability_with_mr remediable_vuln_name
......
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