summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomislav Nikic <tnikic@gitlab.com>2019-08-01 12:26:51 +0200
committerTomislav Nikic <tnikic@gitlab.com>2019-08-01 12:26:51 +0200
commitb409db465d30ce69dd9af94bab7191d6bf4385be (patch)
tree373763062334686f13d85c2904456c504030b70d
parent6d9670d2e1789d573734941e082476366d38a58f (diff)
downloadgitlab-ce-qa-api-push-capability.tar.gz
Fixing some formatting issuesqa-api-push-capability
Fixing some odd formatting on the JSON objects send to the API
-rw-r--r--qa/qa/resource/merge_request.rb8
-rw-r--r--qa/qa/resource/repository/project_push.rb20
2 files changed, 14 insertions, 14 deletions
diff --git a/qa/qa/resource/merge_request.rb b/qa/qa/resource/merge_request.rb
index dd0b4c42b11..c88893f381a 100644
--- a/qa/qa/resource/merge_request.rb
+++ b/qa/qa/resource/merge_request.rb
@@ -91,10 +91,10 @@ module QA
def api_post_body
{
- description: @description,
- source_branch: @source_branch,
- target_branch: @target_branch,
- title: @title
+ description: @description,
+ source_branch: @source_branch,
+ target_branch: @target_branch,
+ title: @title
}
end
end
diff --git a/qa/qa/resource/repository/project_push.rb b/qa/qa/resource/repository/project_push.rb
index 9bf0e51ad58..ecde6afc8f1 100644
--- a/qa/qa/resource/repository/project_push.rb
+++ b/qa/qa/resource/repository/project_push.rb
@@ -52,16 +52,16 @@ module QA
def api_post_body
{
- branch: @remote_branch,
- start_branch: @branch_name,
- commit_message: @commit_message,
- actions: [
- {
- action: "create",
- file_path: @file_name,
- content: @file_content
- }
- ]
+ branch: @remote_branch,
+ start_branch: @branch_name,
+ commit_message: @commit_message,
+ actions: [
+ {
+ action: "create",
+ file_path: @file_name,
+ content: @file_content
+ }
+ ]
}
end
end