Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsliaquat <sliaquat@gitlab.com>2018-09-13 16:40:29 +0300
committerSanad Liaquat <sliaquat@gitlab.com>2018-11-15 13:58:11 +0300
commitd4cc67a612a70f2b06fc56f5aafc5f008a0242e4 (patch)
treeb24e4d8891ffc0fde5b5e30c3bbfa1e049e9978d
parent71213a98e30548a886641aaea90a3906c3490669 (diff)
Some renaming and reduce sleep to 1 sec
-rw-r--r--qa/qa/specs/features/api/1_manage/groups_spec.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/qa/qa/specs/features/api/1_manage/groups_spec.rb b/qa/qa/specs/features/api/1_manage/groups_spec.rb
index fe553e955aa..65cc83cec4d 100644
--- a/qa/qa/specs/features/api/1_manage/groups_spec.rb
+++ b/qa/qa/specs/features/api/1_manage/groups_spec.rb
@@ -39,11 +39,14 @@ module QA
expected_response[:id] = created_group_id = json_body[:id]
- get groups_request.url
+ groups_request_with_page_limit = Runtime::API::Request.new(@api_client, "/groups?per_page=100")
+
+ get groups_request_with_page_limit.url
expect_status(200)
expect(json_body).to include a_hash_including(expected_response)
expected_response = {
+ id: created_group_id,
name: updated_group_name,
path: updated_group_path,
description: updated_description,
@@ -62,9 +65,7 @@ module QA
expect_status(200)
expect(json_body).to match a_hash_including(expected_response)
- get_group_request_by_id = Runtime::API::Request.new(@api_client, "/groups/#{created_group_id}?per_page=100")
-
- get get_group_request_by_id.url
+ get group_request_by_id.url
expect_status(200)
expect(json_body).to match a_hash_including(expected_response)
@@ -72,15 +73,17 @@ module QA
delete group_request_by_id.url
expect_status(202)
expect(json_body).to match({ message: "202 Accepted" })
- sleep 5
- get get_group_request_by_id.url
- expect_status(404)
- expect(json_body).to match({ message: "404 Group Not Found" })
+ sleep 1
- get groups_request.url
+ get groups_request_with_page_limit.url
expect_status(200)
- expect(json_body).not_to include a_hash_including(expected_response)
+ expect(json_body).not_to include a_hash_including({ id: created_group_id })
+
+ get group_request_by_id.url
+ expect_status(404)
+ expect(json_body).to match({message: "404 Group Not Found"})
+
end
end
end