Commit 37fefced authored by Mark Lapierre's avatar Mark Lapierre

Stop using ReusableProject while investigating

The tests are failing and raising alerts, so this should stop
the alerts while we're investigating the cause
parent 0153acf8
...@@ -9,7 +9,9 @@ module QA ...@@ -9,7 +9,9 @@ module QA
attribute :id attribute :id
attribute :project do attribute :project do
Project.fabricate! Project.fabricate! do |project|
project.initialize_with_readme = true
end
end end
attribute :token do attribute :token do
Page::Project::Settings::AccessTokens.perform(&:created_access_token) Page::Project::Settings::AccessTokens.perform(&:created_access_token)
......
...@@ -4,9 +4,7 @@ module QA ...@@ -4,9 +4,7 @@ module QA
RSpec.describe 'Manage' do RSpec.describe 'Manage' do
describe 'Project access token' do describe 'Project access token' do
before(:all) do before(:all) do
@project_access_token = QA::Resource::ProjectAccessToken.fabricate_via_api! do |pat| @project_access_token = QA::Resource::ProjectAccessToken.fabricate_via_api!
pat.project = Resource::ReusableProject.fabricate_via_api!
end
@user_api_client = Runtime::API::Client.new(:gitlab, personal_access_token: @project_access_token.token) @user_api_client = Runtime::API::Client.new(:gitlab, personal_access_token: @project_access_token.token)
end end
......
...@@ -11,7 +11,12 @@ module QA ...@@ -11,7 +11,12 @@ module QA
let(:title) { "MR push options test #{SecureRandom.hex(8)}" } let(:title) { "MR push options test #{SecureRandom.hex(8)}" }
let(:commit_message) { 'Add README.md' } let(:commit_message) { 'Add README.md' }
let(:project) { Resource::ReusableProject.fabricate_via_api! } let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'merge-request-push-options'
project.initialize_with_readme = true
end
end
def create_new_mr_via_push def create_new_mr_via_push
Resource::Repository::ProjectPush.fabricate! do |push| Resource::Repository::ProjectPush.fabricate! do |push|
......
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