summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-05-27 09:28:57 +1200
committerThong Kuah <tkuah@gitlab.com>2019-05-27 09:28:57 +1200
commit4d0b47935c59a83adc2c8b51b2de8140fd3ced4d (patch)
tree884162b37690fb368488dfe316cf619eed1acb3b
parent5a85f8f81a2dd87db873b51c44e869b8c6128798 (diff)
downloadgitlab-ce-reproduce_nightly_81.tar.gz
Revert "Delegate CiVariable delegation to API"reproduce_nightly_81
This reverts commit 63cbaa5e8e2830d16f8a0a3d56d66202fdcd2653. Use browser method to create variables to attempt to simulate failure for nightly#81
-rw-r--r--qa/qa/resource/ci_variable.rb27
-rw-r--r--qa/qa/resource/project.rb1
2 files changed, 0 insertions, 28 deletions
diff --git a/qa/qa/resource/ci_variable.rb b/qa/qa/resource/ci_variable.rb
index 341d3c1ed7e..d82de4cb816 100644
--- a/qa/qa/resource/ci_variable.rb
+++ b/qa/qa/resource/ci_variable.rb
@@ -25,33 +25,6 @@ module QA
end
end
end
-
- def fabricate_via_api!
- resource_web_url(api_get)
- rescue ResourceNotFoundError
- super
- end
-
- def resource_web_url(resource)
- super
- rescue ResourceURLMissingError
- # this particular resource does not expose a web_url property
- end
-
- def api_get_path
- "/projects/#{project.id}/variables/#{key}"
- end
-
- def api_post_path
- "/projects/#{project.id}/variables"
- end
-
- def api_post_body
- {
- key: key,
- value: value
- }
- end
end
end
end
diff --git a/qa/qa/resource/project.rb b/qa/qa/resource/project.rb
index c1a0cff86d8..de1e9f04c36 100644
--- a/qa/qa/resource/project.rb
+++ b/qa/qa/resource/project.rb
@@ -7,7 +7,6 @@ module QA
class Project < Base
include Events::Project
- attribute :id
attribute :name
attribute :description