diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-06 22:32:37 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-06 22:34:43 +0300 |
commit | 6fa106b8980fc818b206da6246f050e94ddbb073 (patch) | |
tree | 2f0f7dc61673a870e8ec97fc8da7f7c1e91d9a86 /spec | |
parent | 348dff0a826c45f00f992e761423a22d2ac32bc3 (diff) |
Make a default namespace of Kubernetes service to contain project ID
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_services/kubernetes_service_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/project_services/kubernetes_service_spec.rb b/spec/models/project_services/kubernetes_service_spec.rb index 585c899cdf9..bf7950ef1c9 100644 --- a/spec/models/project_services/kubernetes_service_spec.rb +++ b/spec/models/project_services/kubernetes_service_spec.rb @@ -74,8 +74,10 @@ describe KubernetesService, models: true, caching: true do describe '#initialize_properties' do context 'with a project' do - it 'defaults to the project name' do - expect(described_class.new(project: project).namespace).to eq(project.name) + let(:namespace_name) { "#{project.path}-#{project.id}" } + + it 'defaults to the project name with ID' do + expect(described_class.new(project: project).namespace).to eq(namespace_name) end end |