Commit cec8e8a7 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'dj-update-remaining-rspec-describe-blocks-2' into 'master'

Update outer describe block for internal QA tests 2/2

See merge request gitlab-org/gitlab!43185
parents f499fcc9 0e0a5738
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Framework sanity checks', :orchestrated, :framework do RSpec.describe 'Framework sanity checks', :orchestrated, :framework do
describe 'Passing orchestrated example' do describe 'Passing orchestrated example' do
it 'succeeds' do it 'succeeds' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Runtime::API::Request do RSpec.describe QA::Runtime::API::Request do
let(:client) { QA::Runtime::API::Client.new('http://example.com') } let(:client) { QA::Runtime::API::Client.new('http://example.com') }
let(:request) { described_class.new(client, '/users') } let(:request) { described_class.new(client, '/users') }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Runtime::Key::ECDSA do RSpec.describe QA::Runtime::Key::ECDSA do
describe '#public_key' do describe '#public_key' do
[256, 384, 521].each do |bits| [256, 384, 521].each do |bits|
it "generates a public #{bits}-bits ECDSA key" do it "generates a public #{bits}-bits ECDSA key" do
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Runtime::Key::ED25519 do RSpec.describe QA::Runtime::Key::ED25519 do
describe '#public_key' do describe '#public_key' do
subject { described_class.new.public_key } subject { described_class.new.public_key }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Runtime::Key::RSA do RSpec.describe QA::Runtime::Key::RSA do
describe '#public_key' do describe '#public_key' do
subject { described_class.new.public_key } subject { described_class.new.public_key }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Actable do RSpec.describe QA::Scenario::Actable do
subject do subject do
Class.new do Class.new do
include QA::Scenario::Actable include QA::Scenario::Actable
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Bootable do RSpec.describe QA::Scenario::Bootable do
subject do subject do
Class.new(QA::Scenario::Template) Class.new(QA::Scenario::Template)
.include(described_class) .include(described_class)
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Template do RSpec.describe QA::Scenario::Template do
let(:feature) { spy('Runtime::Feature') } let(:feature) { spy('Runtime::Feature') }
let(:release) { spy('Runtime::Release') } let(:release) { spy('Runtime::Release') }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Instance::Airgapped do RSpec.describe QA::Scenario::Test::Instance::Airgapped do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
end end
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Instance::All do RSpec.describe QA::Scenario::Test::Instance::All do
it_behaves_like 'a QA scenario class' it_behaves_like 'a QA scenario class'
end end
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Instance::Smoke do RSpec.describe QA::Scenario::Test::Instance::Smoke do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:smoke] } let(:tags) { [:smoke] }
end end
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Integration::Github do RSpec.describe QA::Scenario::Test::Integration::Github do
describe '#perform' do describe '#perform' do
let(:env) { spy('Runtime::Env') } let(:env) { spy('Runtime::Env') }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Integration::InstanceSAML do RSpec.describe QA::Scenario::Test::Integration::InstanceSAML do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:instance_saml] } let(:tags) { [:instance_saml] }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Integration::Kubernetes do RSpec.describe QA::Scenario::Test::Integration::Kubernetes do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:kubernetes] } let(:tags) { [:kubernetes] }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Integration::LDAPNoTLS do RSpec.describe QA::Scenario::Test::Integration::LDAPNoTLS do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:ldap_no_tls] } let(:tags) { [:ldap_no_tls] }
...@@ -8,7 +8,7 @@ describe QA::Scenario::Test::Integration::LDAPNoTLS do ...@@ -8,7 +8,7 @@ describe QA::Scenario::Test::Integration::LDAPNoTLS do
end end
end end
describe QA::Scenario::Test::Integration::LDAPNoServer do RSpec.describe QA::Scenario::Test::Integration::LDAPNoServer do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:ldap_no_server] } let(:tags) { [:ldap_no_server] }
...@@ -16,7 +16,7 @@ describe QA::Scenario::Test::Integration::LDAPNoServer do ...@@ -16,7 +16,7 @@ describe QA::Scenario::Test::Integration::LDAPNoServer do
end end
end end
describe QA::Scenario::Test::Integration::LDAPTLS do RSpec.describe QA::Scenario::Test::Integration::LDAPTLS do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:ldap_tls] } let(:tags) { [:ldap_tls] }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Integration::Mattermost do RSpec.describe QA::Scenario::Test::Integration::Mattermost do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:args) { %w[gitlab_address mattermost_address] } let(:args) { %w[gitlab_address mattermost_address] }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Integration::ObjectStorage do RSpec.describe QA::Scenario::Test::Integration::ObjectStorage do
describe '#perform' do describe '#perform' do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:object_storage] } let(:tags) { [:object_storage] }
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Sanity::Framework do RSpec.describe QA::Scenario::Test::Sanity::Framework do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:framework] } let(:tags) { [:framework] }
end end
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Scenario::Test::Sanity::Selectors do RSpec.describe QA::Scenario::Test::Sanity::Selectors do
let(:validator) { spy('validator') } let(:validator) { spy('validator') }
before do before do
......
...@@ -36,7 +36,7 @@ RSpec.configure do |c| ...@@ -36,7 +36,7 @@ RSpec.configure do |c|
end end
end end
describe QA::Specs::Helpers::Quarantine do RSpec.describe QA::Specs::Helpers::Quarantine do
describe '.skip_or_run_quarantined_contexts' do describe '.skip_or_run_quarantined_contexts' do
context 'with no tag focused' do context 'with no tag focused' do
before do before do
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Specs::ParallelRunner do RSpec.describe QA::Specs::ParallelRunner do
include Helpers::StubENV include Helpers::StubENV
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'active_support/core_ext/hash' require 'active_support/core_ext/hash'
describe QA::Specs::Runner do RSpec.describe QA::Specs::Runner do
shared_examples 'excludes orchestrated' do shared_examples 'excludes orchestrated' do
it 'excludes the orchestrated tag and includes default args' do it 'excludes the orchestrated tag and includes default args' do
expect_rspec_runner_arguments(['--tag', '~orchestrated', *described_class::DEFAULT_TEST_PATH_ARGS]) expect_rspec_runner_arguments(['--tag', '~orchestrated', *described_class::DEFAULT_TEST_PATH_ARGS])
......
...@@ -4,7 +4,7 @@ require 'logger' ...@@ -4,7 +4,7 @@ require 'logger'
require 'timecop' require 'timecop'
require 'active_support/core_ext/integer/time' require 'active_support/core_ext/integer/time'
describe QA::Support::Repeater do RSpec.describe QA::Support::Repeater do
before do before do
logger = ::Logger.new $stdout logger = ::Logger.new $stdout
logger.level = ::Logger::DEBUG logger.level = ::Logger::DEBUG
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'logger' require 'logger'
require 'timecop' require 'timecop'
describe QA::Support::Retrier do RSpec.describe QA::Support::Retrier do
before do before do
logger = ::Logger.new $stdout logger = ::Logger.new $stdout
logger.level = ::Logger::DEBUG logger.level = ::Logger::DEBUG
......
# frozen_string_literal: true # frozen_string_literal: true
describe QA::Support::WaitForRequests do RSpec.describe QA::Support::WaitForRequests do
describe '.wait_for_requests' do describe '.wait_for_requests' do
before do before do
allow(subject).to receive(:finished_all_ajax_requests?).and_return(true) allow(subject).to receive(:finished_all_ajax_requests?).and_return(true)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'logger' require 'logger'
describe QA::Support::Waiter do RSpec.describe QA::Support::Waiter do
before do before do
logger = ::Logger.new $stdout logger = ::Logger.new $stdout
logger.level = ::Logger::DEBUG logger.level = ::Logger::DEBUG
......
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