summaryrefslogtreecommitdiff
path: root/qa/qa/resource/clusters/agent.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/resource/clusters/agent.rb')
-rw-r--r--qa/qa/resource/clusters/agent.rb17
1 files changed, 5 insertions, 12 deletions
diff --git a/qa/qa/resource/clusters/agent.rb b/qa/qa/resource/clusters/agent.rb
index b190634f357..9574289a2ed 100644
--- a/qa/qa/resource/clusters/agent.rb
+++ b/qa/qa/resource/clusters/agent.rb
@@ -26,25 +26,18 @@ module QA
end
def api_get_path
- "gid://gitlab/Clusters::Agent/#{id}"
+ "/projects/#{project.id}/cluster_agents/#{id}"
end
def api_post_path
- "/graphql"
+ "/projects/#{project.id}/cluster_agents"
end
def api_post_body
- <<~GQL
- mutation createAgent {
- createClusterAgent(input: { projectPath: "#{project.full_path}", name: "#{@name}" }) {
- clusterAgent {
- id
- name
- }
- errors
- }
+ {
+ id: project.id,
+ name: name
}
- GQL
end
end
end