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
ab9399d9
Commit
ab9399d9
authored
Jul 22, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
06897b2e
6c04066d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/factories/clusters/clusters.rb
spec/factories/clusters/clusters.rb
+2
-0
spec/models/concerns/deployment_platform_spec.rb
spec/models/concerns/deployment_platform_spec.rb
+4
-6
No files found.
spec/factories/clusters/clusters.rb
View file @
ab9399d9
...
...
@@ -5,6 +5,8 @@ FactoryBot.define do
cluster_type
:project_type
managed
true
factory
:cluster_for_group
,
traits:
[
:provided_by_gcp
,
:group
]
trait
:instance
do
cluster_type
{
Clusters
::
Cluster
.
cluster_types
[
:instance_type
]
}
end
...
...
spec/models/concerns/deployment_platform_spec.rb
View file @
ab9399d9
...
...
@@ -46,12 +46,11 @@ describe DeploymentPlatform do
end
context
'when child group has configured kubernetes cluster'
,
:nested_groups
do
let
!
(
:child_group1_cluster
)
{
create
(
:cluster
,
:provided_by_gcp
,
:
group
)
}
let
(
:child_group1
)
{
child_group1_cluster
.
group
}
let
(
:child_group1
)
{
create
(
:group
,
parent:
group
)
}
let
!
(
:child_group1_cluster
)
{
create
(
:cluster_for_group
,
groups:
[
child_group1
])
}
before
do
project
.
update!
(
group:
child_group1
)
child_group1
.
update!
(
parent:
group
)
end
it
'returns the Kubernetes platform for the child group'
do
...
...
@@ -59,11 +58,10 @@ describe DeploymentPlatform do
end
context
'deeply nested group'
do
let
!
(
:child_group2_cluster
)
{
create
(
:cluster
,
:provided_by_gcp
,
:group
)
}
let
(
:child_group2
)
{
child_group2_cluster
.
group
}
let
(
:child_group2
)
{
create
(
:group
,
parent:
child_group1
)
}
let
!
(
:child_group2_cluster
)
{
create
(
:cluster_for_group
,
groups:
[
child_group2
])
}
before
do
child_group2
.
update!
(
parent:
child_group1
)
project
.
update!
(
group:
child_group2
)
end
...
...
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