From 4d0b47935c59a83adc2c8b51b2de8140fd3ced4d Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Mon, 27 May 2019 09:28:57 +1200 Subject: Revert "Delegate CiVariable delegation to API" This reverts commit 63cbaa5e8e2830d16f8a0a3d56d66202fdcd2653. Use browser method to create variables to attempt to simulate failure for nightly#81 --- qa/qa/resource/ci_variable.rb | 27 --------------------------- qa/qa/resource/project.rb | 1 - 2 files changed, 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 -- cgit v1.2.1