summaryrefslogtreecommitdiff
path: root/qa/qa.rb
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-09-05 16:13:22 +1000
committerMark Lapierre <mlapierre@gitlab.com>2019-09-11 11:48:14 +1000
commit5c261439e2cbc77c7bc1ce368e52bd60188d5c55 (patch)
tree8549375b833016c0f5f0dbb58b71317ebea46bc6 /qa/qa.rb
parentc0b9e50af9ecdbaf6cd8bb0dbcf23388c3c388e4 (diff)
downloadgitlab-ce-5c261439e2cbc77c7bc1ce368e52bd60188d5c55.tar.gz
Refactor protected branch resource and specqa-ml-refactor-protected-branch-test
Rename Resource::Branch to Resource::ProtectedBranch to be clear that it configures the settings to protect a branch, rather than just creating a new branch. Make branch an attribute to make it clear creating the branch is not the main responsibility of the class. Initialize the project with a readme so that the resource only has to push once when it creates a branch. Stop ProjectPush from visiting the project page so that it doesn't have to use the browser UI.
Diffstat (limited to 'qa/qa.rb')
-rw-r--r--qa/qa.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa.rb b/qa/qa.rb
index 9bf28d396ba..b38c39a621f 100644
--- a/qa/qa.rb
+++ b/qa/qa.rb
@@ -54,7 +54,7 @@ module QA
autoload :MergeRequestFromFork, 'qa/resource/merge_request_from_fork'
autoload :DeployKey, 'qa/resource/deploy_key'
autoload :DeployToken, 'qa/resource/deploy_token'
- autoload :Branch, 'qa/resource/branch'
+ autoload :ProtectedBranch, 'qa/resource/protected_branch'
autoload :CiVariable, 'qa/resource/ci_variable'
autoload :Runner, 'qa/resource/runner'
autoload :PersonalAccessToken, 'qa/resource/personal_access_token'