summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-08-22 14:04:58 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-09-18 13:40:42 +0300
commit02129c294d4f749d04835d231a24e81850347ebb (patch)
tree9a56ead95909b47f677c8259d96d89e2c14129af /spec
parenta744279f5ae55a52a04a5e3a719974992656bc70 (diff)
downloadgitlab-ce-02129c294d4f749d04835d231a24e81850347ebb.tar.gz
Add GitLab cluster id to jupyter configdz-expose-cluster-id-to-jupyter
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/models/clusters/applications/jupyter_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/clusters/applications/jupyter_spec.rb b/spec/models/clusters/applications/jupyter_spec.rb
index 591a01d78a9..9c4396731eb 100644
--- a/spec/models/clusters/applications/jupyter_spec.rb
+++ b/spec/models/clusters/applications/jupyter_spec.rb
@@ -108,8 +108,15 @@ describe Clusters::Applications::Jupyter do
expect(values).to include('rbac')
expect(values).to include('proxy')
expect(values).to include('auth')
+ expect(values).to include('singleuser')
expect(values).to match(/clientId: '?#{application.oauth_application.uid}/)
expect(values).to match(/callbackUrl: '?#{application.callback_url}/)
end
+
+ context 'when cluster belongs to a project' do
+ it 'sets GitLab project id' do
+ expect(values).to match(/GITLAB_CLUSTER_ID: '?#{application.cluster.id}/)
+ end
+ end
end
end