diff options
Diffstat (limited to 'qa/qa/resource/group_label.rb')
-rw-r--r-- | qa/qa/resource/group_label.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qa/qa/resource/group_label.rb b/qa/qa/resource/group_label.rb new file mode 100644 index 00000000000..d512dfc6a89 --- /dev/null +++ b/qa/qa/resource/group_label.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module QA + module Resource + class GroupLabel < LabelBase + attribute :group do + Group.fabricate! do |resource| + resource.name = 'group-with-label' + end + end + + def fabricate! + raise NotImplementedError + end + + def api_post_path + "/groups/#{CGI.escape(group.full_path)}/labels" + end + + def api_get_path + "/groups/#{CGI.escape(group.full_path)}/labels/#{id}" + end + end + end +end |