Commit 1375f399 authored by Dan Davison's avatar Dan Davison

Merge branch 'qa/explicitly-create-resources-via-api' into 'master'

Explicitly create resources via the API

See merge request gitlab-org/gitlab-ce!30639
parents a8859f3d 513c0f6c
...@@ -7,12 +7,12 @@ module QA ...@@ -7,12 +7,12 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials) Page::Main::Login.perform(&:sign_in_using_credentials)
project = Resource::Project.fabricate! do |project| project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project-with-ci-variables' project.name = 'project-with-ci-variables'
project.description = 'project with CI variables' project.description = 'project with CI variables'
end end
Resource::CiVariable.fabricate! do |resource| Resource::CiVariable.fabricate_via_api! do |resource|
resource.project = project resource.project = project
resource.key = 'VARIABLE_KEY' resource.key = 'VARIABLE_KEY'
resource.value = 'some_CI_variable' resource.value = 'some_CI_variable'
......
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