Commit 93f779ec authored by Mark Lapierre's avatar Mark Lapierre Committed by Sanad Liaquat

Revert "Stop using ReusableProject while investigating"

This reverts commit 37fefced.
parent cb8a5b23
......@@ -9,9 +9,7 @@ module QA
attribute :id
attribute :project do
Project.fabricate! do |project|
project.initialize_with_readme = true
end
Project.fabricate!
end
attribute :token do
Page::Project::Settings::AccessTokens.perform(&:created_access_token)
......
......@@ -4,7 +4,9 @@ module QA
RSpec.describe 'Manage' do
describe 'Project access token' do
before(:all) do
@project_access_token = QA::Resource::ProjectAccessToken.fabricate_via_api!
@project_access_token = QA::Resource::ProjectAccessToken.fabricate_via_api! do |pat|
pat.project = Resource::ReusableProject.fabricate_via_api!
end
@user_api_client = Runtime::API::Client.new(:gitlab, personal_access_token: @project_access_token.token)
end
......@@ -76,11 +78,6 @@ module QA
@different_project.remove_via_api!
end
end
after(:all) do
@project_access_token.remove_via_api!
@project_access_token.project.remove_via_api!
end
end
end
end
......@@ -11,12 +11,7 @@ module QA
let(:title) { "MR push options test #{SecureRandom.hex(8)}" }
let(:commit_message) { 'Add README.md' }
let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'merge-request-push-options'
project.initialize_with_readme = true
end
end
let(:project) { Resource::ReusableProject.fabricate_via_api! }
def create_new_mr_via_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