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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
7a5da502
Commit
7a5da502
authored
May 30, 2018
by
Jasper Maes
Committed by
Dennis Tang
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use strings as properties key in kubernetes service spec.
parent
8d8e8f77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
changelogs/unreleased/rails5-fix-46230.yml
changelogs/unreleased/rails5-fix-46230.yml
+5
-0
spec/models/project_services/kubernetes_service_spec.rb
spec/models/project_services/kubernetes_service_spec.rb
+6
-6
No files found.
changelogs/unreleased/rails5-fix-46230.yml
0 → 100644
View file @
7a5da502
---
title
:
Use strings as properties key in kubernetes service spec.
merge_request
:
19265
author
:
Jasper Maes
type
:
fixed
spec/models/project_services/kubernetes_service_spec.rb
View file @
7a5da502
...
...
@@ -65,7 +65,7 @@ describe KubernetesService, :use_clean_rails_memory_store_caching do
before
do
kubernetes_service
.
update_attribute
(
:active
,
false
)
kubernetes_service
.
properties
[
:namespace
]
=
"foo"
kubernetes_service
.
properties
[
'namespace'
]
=
"foo"
end
it
'should not update attributes'
do
...
...
@@ -82,7 +82,7 @@ describe KubernetesService, :use_clean_rails_memory_store_caching do
let
(
:kubernetes_service
)
{
create
(
:kubernetes_service
)
}
it
'should update attributes'
do
kubernetes_service
.
properties
[
:namespace
]
=
'foo'
kubernetes_service
.
properties
[
'namespace'
]
=
'foo'
expect
(
kubernetes_service
.
save
).
to
be_truthy
end
end
...
...
@@ -92,7 +92,7 @@ describe KubernetesService, :use_clean_rails_memory_store_caching do
before
do
kubernetes_service
.
active
=
false
kubernetes_service
.
properties
[
:namespace
]
=
'foo'
kubernetes_service
.
properties
[
'namespace'
]
=
'foo'
kubernetes_service
.
save
end
...
...
@@ -105,7 +105,7 @@ describe KubernetesService, :use_clean_rails_memory_store_caching do
end
it
'should update attributes'
do
expect
(
kubernetes_service
.
properties
[
:namespace
]).
to
eq
(
"foo"
)
expect
(
kubernetes_service
.
properties
[
'namespace'
]).
to
eq
(
"foo"
)
end
end
...
...
@@ -113,12 +113,12 @@ describe KubernetesService, :use_clean_rails_memory_store_caching do
let
(
:kubernetes_service
)
{
create
(
:kubernetes_service
,
template:
true
,
active:
false
)
}
before
do
kubernetes_service
.
properties
[
:namespace
]
=
'foo'
kubernetes_service
.
properties
[
'namespace'
]
=
'foo'
end
it
'should update attributes'
do
expect
(
kubernetes_service
.
save
).
to
be_truthy
expect
(
kubernetes_service
.
properties
[
:namespace
]).
to
eq
(
'foo'
)
expect
(
kubernetes_service
.
properties
[
'namespace'
]).
to
eq
(
'foo'
)
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