Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7fc5916e
Commit
7fc5916e
authored
Oct 17, 2018
by
Ramya Authappan
Committed by
Rémy Coutable
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for epics api test staging failures
parent
b9c19790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
qa/qa/specs/features/api/2_plan/ee_epics_milestone_dates_spec.rb
...pecs/features/api/2_plan/ee_epics_milestone_dates_spec.rb
+12
-3
No files found.
qa/qa/specs/features/api/2_plan/ee_epics_milestone_dates_spec.rb
View file @
7fc5916e
...
...
@@ -26,14 +26,23 @@ module QA
Runtime
::
API
::
Request
.
new
(
@api_client
,
api_endpoint
)
end
def
create_group
group_name
=
"group_
#{
SecureRandom
.
hex
(
8
)
}
"
def
create_group
(
is_sandbox_group
=
false
)
group_name
=
is_sandbox_group
?
Runtime
::
Namespace
.
sandbox_name
:
"group_
#{
SecureRandom
.
hex
(
8
)
}
"
parent_id
=
is_sandbox_group
?
nil
:
sandbox_group_id
create_group_request
=
create_request
(
"/groups"
)
post
create_group_request
.
url
,
name:
group_name
,
path:
group_name
post
create_group_request
.
url
,
name:
group_name
,
path:
group_name
,
parent_id:
parent_id
expect_status
(
201
)
json_body
[
:id
]
end
def
sandbox_group_id
@_sandbox_group_id
||=
begin
request
=
create_request
(
"/groups/
#{
Runtime
::
Namespace
.
sandbox_name
}
"
)
get
request
.
url
json_body
[
:id
]
?
json_body
[
:id
]
:
create_group
(
true
)
end
end
def
create_project
project_name
=
"project_
#{
SecureRandom
.
hex
(
8
)
}
"
create_project_request
=
create_request
(
'/projects'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment