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
ee87ee7e
Commit
ee87ee7e
authored
Dec 11, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in spec/services/clusters/create_service_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
d42ff99d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
spec/services/clusters/create_service_spec.rb
spec/services/clusters/create_service_spec.rb
+0
-25
No files found.
spec/services/clusters/create_service_spec.rb
View file @
ee87ee7e
...
...
@@ -45,7 +45,6 @@ describe Clusters::CreateService do
expect
{
subject
}
.
to
change
{
Clusters
::
Cluster
.
count
}.
by
(
1
)
.
and
change
{
Clusters
::
Providers
::
Gcp
.
count
}.
by
(
1
)
<<<<<<<
HEAD
expect
(
subject
.
name
).
to
eq
(
'test-cluster'
)
expect
(
subject
.
user
).
to
eq
(
user
)
...
...
@@ -59,21 +58,6 @@ describe Clusters::CreateService do
end
end
=======
expect
(
subject
.
name
).
to
eq
(
'test-cluster'
)
expect
(
subject
.
user
).
to
eq
(
user
)
expect
(
subject
.
project
).
to
eq
(
project
)
expect
(
subject
.
provider
.
gcp_project_id
).
to
eq
(
'gcp-project'
)
expect
(
subject
.
provider
.
zone
).
to
eq
(
'us-central1-a'
)
expect
(
subject
.
provider
.
num_nodes
).
to
eq
(
1
)
expect
(
subject
.
provider
.
machine_type
).
to
eq
(
'machine_type-a'
)
expect
(
subject
.
provider
.
access_token
).
to
eq
(
access_token
)
expect
(
subject
.
platform
).
to
be_nil
end
end
>>>>>>>
origin
/
master
shared_examples
'error'
do
it
'returns an error'
do
expect
(
ClusterProvisionWorker
).
not_to
receive
(
:perform_async
)
...
...
@@ -97,14 +81,6 @@ describe Clusters::CreateService do
end
context
'when project has a cluster'
do
<<<<<<<
HEAD
include_context
'valid params'
let!
(
:cluster
)
{
create
(
:cluster
,
:provided_by_gcp
,
projects:
[
project
])
}
it
'does not create a cluster'
do
expect
(
ClusterProvisionWorker
).
not_to
receive
(
:perform_async
)
expect
{
subject
}.
to
raise_error
(
ArgumentError
).
and
change
{
Clusters
::
Cluster
.
count
}.
by
(
0
)
=======
let!
(
:cluster
)
{
create
(
:cluster
,
:provided_by_gcp
,
projects:
[
project
])
}
before
do
...
...
@@ -140,7 +116,6 @@ describe Clusters::CreateService do
expect
(
ClusterProvisionWorker
).
not_to
receive
(
:perform_async
)
expect
{
subject
}.
to
raise_error
(
ArgumentError
).
and
change
{
Clusters
::
Cluster
.
count
}.
by
(
0
)
end
>>>>>>>
origin
/
master
end
end
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