Commit bb100947 authored by Dan Davison's avatar Dan Davison Committed by Mark Lapierre

Update 3_create tests to use outer describe

Remove monkey-patch for RSpec
parent 9c3cb4d3
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Changing Gitaly repository storage', :requires_admin do
shared_examples 'repository storage move' do
it 'confirms a `finished` status after moving project repository storage' do
......
......@@ -4,7 +4,7 @@ require 'airborne'
require 'securerandom'
module QA
describe 'API basics' do
RSpec.describe 'API basics' do
before(:context) do
@api_client = Runtime::API::Client.new(:gitlab)
end
......
......@@ -5,7 +5,7 @@ require 'securerandom'
require 'digest'
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
include Support::Api
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
context 'Gitaly' do
describe 'High Availability', :orchestrated, :gitaly_ha do
let(:project) do
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
include Support::Api
describe 'Jira integration', :jira, :orchestrated, :requires_admin do
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Create a new merge request' do
before do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Merge request creation from fork' do
it 'user forks a project, submits a merge request and maintainer merges it' do
Flow::Login.sign_in
......
# frozen_string_literal: true
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
it 'user rebases source branch of merge request' do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Merge request squashing' do
it 'user squashes commits while merging' do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Download merge request patch and diff' do
before(:context) do
@merge_request = Resource::MergeRequest.fabricate_via_api! do |merge_request|
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'File templates' do
include Runtime::Fixtures
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Create, list, and delete branches via web' do
master_branch = 'master'
second_branch = 'second-branch'
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'SSH keys support' do
let(:key_title) { "key for ssh tests #{Time.now.to_f}" }
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Git clone over HTTP', :ldap_no_tls do
before(:all) do
@project = Resource::Project.fabricate_via_api! do |scenario|
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Files management' do
it 'user creates, edits and deletes a file via the Web' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
# frozen_string_literal: true
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
let(:user) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) }
let(:parent_project) do
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Push over HTTP using Git protocol version 2', :requires_git_protocol_v2 do
it 'user pushes to the repository' do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' 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
# enabled setting the Git protocol by adding `AcceptEnv GIT_PROTOCOL` to
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Git push over HTTP', :ldap_no_tls do
it 'user using a personal access token pushes code to the repository' do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Push mirror a repository over HTTP' do
it 'configures and syncs a (push) mirrored repository' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
# frozen_string_literal: true
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
# 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
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Git push over HTTP', :ldap_no_tls do
it 'user pushes code to the repository' do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Protected branch support', :ldap_no_tls do
let(:branch_name) { 'protected-branch' }
let(:commit_message) { 'Protected push commit message' }
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'SSH key support' do
# 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
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Commit data' do
before(:context) do
# Get the user's details to confirm they're included in the email patch
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Version control for personal snippets' do
let(:new_file) { 'new_snippet_file' }
let(:changed_content) { 'changes' }
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Version control for project snippets' do
let(:new_file) { 'new_snippet_file' }
let(:changed_content) { 'changes' }
......
# frozen_string_literal: true
module QA
context 'Create', :smoke do
RSpec.describe 'Create', :smoke do
describe 'Personal snippet creation' do
it 'User creates a personal snippet' do
Flow::Login.sign_in
......
# frozen_string_literal: true
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
it 'User creates a project snippet' do
Flow::Login.sign_in
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Web IDE file templates' do
include Runtime::Fixtures
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'First file using Web IDE' do
let(:project) do
Resource::Project.fabricate_via_api! do |project|
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
describe 'Review a merge request in Web IDE' do
let(:new_file) { 'awesome_new_file.txt' }
let(:original_text) { 'Text' }
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
context 'Wiki' do
describe 'testing wiki content creation inside a project' do
let(:new_wiki_title) { "just_another_wiki_page" }
......
# frozen_string_literal: true
module QA
context 'Create' do
RSpec.describe 'Create' do
context 'Wiki' do
describe 'testing wiki content manipulation inside a project' do
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