Commit 7bfb71d1 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'qa-no-monkey-patching-3_create' into 'master'

Update 3_create tests to use outer describe

See merge request gitlab-org/gitlab!35637
parents 9c3cb4d3 bb100947
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Changing Gitaly repository storage', :requires_admin do describe 'Changing Gitaly repository storage', :requires_admin do
shared_examples 'repository storage move' do shared_examples 'repository storage move' do
it 'confirms a `finished` status after moving project repository storage' do it 'confirms a `finished` status after moving project repository storage' do
......
...@@ -4,7 +4,7 @@ require 'airborne' ...@@ -4,7 +4,7 @@ require 'airborne'
require 'securerandom' require 'securerandom'
module QA module QA
describe 'API basics' do RSpec.describe 'API basics' do
before(:context) do before(:context) do
@api_client = Runtime::API::Client.new(:gitlab) @api_client = Runtime::API::Client.new(:gitlab)
end end
......
...@@ -5,7 +5,7 @@ require 'securerandom' ...@@ -5,7 +5,7 @@ require 'securerandom'
require 'digest' require 'digest'
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Compare archives of different user projects with the same name and check they\'re different' do describe 'Compare archives of different user projects with the same name and check they\'re different' do
include Support::Api include Support::Api
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
context 'Gitaly' do context 'Gitaly' do
describe 'High Availability', :orchestrated, :gitaly_ha do describe 'High Availability', :orchestrated, :gitaly_ha do
let(:project) do let(:project) do
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
include Support::Api include Support::Api
describe 'Jira integration', :jira, :orchestrated, :requires_admin do describe 'Jira integration', :jira, :orchestrated, :requires_admin do
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Create a new merge request' do describe 'Create a new merge request' do
before do before do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Merge request creation from fork' do describe 'Merge request creation from fork' do
it 'user forks a project, submits a merge request and maintainer merges it' do it 'user forks a project, submits a merge request and maintainer merges it' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/30226', type: :bug } do RSpec.describe 'Create', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/30226', type: :bug } do
describe 'Merge request rebasing' do describe 'Merge request rebasing' do
it 'user rebases source branch of merge request' do it 'user rebases source branch of merge request' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Merge request squashing' do describe 'Merge request squashing' do
it 'user squashes commits while merging' do it 'user squashes commits while merging' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Download merge request patch and diff' do describe 'Download merge request patch and diff' do
before(:context) do before(:context) do
@merge_request = Resource::MergeRequest.fabricate_via_api! do |merge_request| @merge_request = Resource::MergeRequest.fabricate_via_api! do |merge_request|
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'File templates' do describe 'File templates' do
include Runtime::Fixtures include Runtime::Fixtures
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Create, list, and delete branches via web' do describe 'Create, list, and delete branches via web' do
master_branch = 'master' master_branch = 'master'
second_branch = 'second-branch' second_branch = 'second-branch'
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'SSH keys support' do describe 'SSH keys support' do
let(:key_title) { "key for ssh tests #{Time.now.to_f}" } let(:key_title) { "key for ssh tests #{Time.now.to_f}" }
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Git clone over HTTP', :ldap_no_tls do describe 'Git clone over HTTP', :ldap_no_tls do
before(:all) do before(:all) do
@project = Resource::Project.fabricate_via_api! do |scenario| @project = Resource::Project.fabricate_via_api! do |scenario|
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Files management' do describe 'Files management' do
it 'user creates, edits and deletes a file via the Web' do it 'user creates, edits and deletes a file via the Web' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/217002', type: :investigating } do RSpec.describe 'Create', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/217002', type: :investigating } do
describe 'Gitaly repository storage', :orchestrated, :repository_storage, :requires_admin do describe 'Gitaly repository storage', :orchestrated, :repository_storage, :requires_admin do
let(:user) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) } let(:user) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) }
let(:parent_project) do let(:parent_project) do
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Push over HTTP using Git protocol version 2', :requires_git_protocol_v2 do describe 'Push over HTTP using Git protocol version 2', :requires_git_protocol_v2 do
it 'user pushes to the repository' do it 'user pushes to the repository' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Push over SSH using Git protocol version 2', :requires_git_protocol_v2 do describe 'Push over SSH using Git protocol version 2', :requires_git_protocol_v2 do
# Note: If you run this test against GDK make sure you've enabled sshd and # Note: If you run this test against GDK make sure you've enabled sshd and
# enabled setting the Git protocol by adding `AcceptEnv GIT_PROTOCOL` to # enabled setting the Git protocol by adding `AcceptEnv GIT_PROTOCOL` to
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Git push over HTTP', :ldap_no_tls do describe 'Git push over HTTP', :ldap_no_tls do
it 'user using a personal access token pushes code to the repository' do it 'user using a personal access token pushes code to the repository' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Push mirror a repository over HTTP' do describe 'Push mirror a repository over HTTP' do
it 'configures and syncs a (push) mirrored repository' do it 'configures and syncs a (push) mirrored repository' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create', :requires_admin do RSpec.describe 'Create', :requires_admin do
describe 'push after setting the file size limit via admin/application_settings' do describe 'push after setting the file size limit via admin/application_settings' do
# Note: The file size limits in this test should be greater than the limits in # Note: The file size limits in this test should be greater than the limits in
# ee/browser_ui/3_create/repository/push_rules_spec to prevent that test from # ee/browser_ui/3_create/repository/push_rules_spec to prevent that test from
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Git push over HTTP', :ldap_no_tls do describe 'Git push over HTTP', :ldap_no_tls do
it 'user pushes code to the repository' do it 'user pushes code to the repository' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Protected branch support', :ldap_no_tls do describe 'Protected branch support', :ldap_no_tls do
let(:branch_name) { 'protected-branch' } let(:branch_name) { 'protected-branch' }
let(:commit_message) { 'Protected push commit message' } let(:commit_message) { 'Protected push commit message' }
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'SSH key support' do describe 'SSH key support' do
# Note: If you run this test against GDK make sure you've enabled sshd # Note: If you run this test against GDK make sure you've enabled sshd
# See: https://gitlab.com/gitlab-org/gitlab-qa/blob/master/docs/run_qa_against_gdk.md # See: https://gitlab.com/gitlab-org/gitlab-qa/blob/master/docs/run_qa_against_gdk.md
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Commit data' do describe 'Commit data' do
before(:context) do before(:context) do
# Get the user's details to confirm they're included in the email patch # Get the user's details to confirm they're included in the email patch
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Version control for personal snippets' do describe 'Version control for personal snippets' do
let(:new_file) { 'new_snippet_file' } let(:new_file) { 'new_snippet_file' }
let(:changed_content) { 'changes' } let(:changed_content) { 'changes' }
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Version control for project snippets' do describe 'Version control for project snippets' do
let(:new_file) { 'new_snippet_file' } let(:new_file) { 'new_snippet_file' }
let(:changed_content) { 'changes' } let(:changed_content) { 'changes' }
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create', :smoke do RSpec.describe 'Create', :smoke do
describe 'Personal snippet creation' do describe 'Personal snippet creation' do
it 'User creates a personal snippet' do it 'User creates a personal snippet' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do # to be converted to a smoke test once proved to be stable RSpec.describe 'Create' do # to be converted to a smoke test once proved to be stable
describe 'Project snippet creation' do describe 'Project snippet creation' do
it 'User creates a project snippet' do it 'User creates a project snippet' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Web IDE file templates' do describe 'Web IDE file templates' do
include Runtime::Fixtures include Runtime::Fixtures
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'First file using Web IDE' do describe 'First file using Web IDE' do
let(:project) do let(:project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
describe 'Review a merge request in Web IDE' do describe 'Review a merge request in Web IDE' do
let(:new_file) { 'awesome_new_file.txt' } let(:new_file) { 'awesome_new_file.txt' }
let(:original_text) { 'Text' } let(:original_text) { 'Text' }
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
context 'Wiki' do context 'Wiki' do
describe 'testing wiki content creation inside a project' do describe 'testing wiki content creation inside a project' do
let(:new_wiki_title) { "just_another_wiki_page" } let(:new_wiki_title) { "just_another_wiki_page" }
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Create' do RSpec.describe 'Create' do
context 'Wiki' do context 'Wiki' do
describe 'testing wiki content manipulation inside a project' do describe 'testing wiki content manipulation inside a project' do
let(:new_wiki_title) { "just_another_wiki_page" } let(:new_wiki_title) { "just_another_wiki_page" }
......
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