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
Boxiang Sun
gitlab-ce
Commits
4c9e53a4
Commit
4c9e53a4
authored
Sep 13, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'dz-add-project-id-to-jupyter' into 'master'"
This reverts merge request !21341
parent
733cae70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
app/models/clusters/applications/jupyter.rb
app/models/clusters/applications/jupyter.rb
+0
-9
spec/models/clusters/applications/jupyter_spec.rb
spec/models/clusters/applications/jupyter_spec.rb
+0
-9
No files found.
app/models/clusters/applications/jupyter.rb
View file @
4c9e53a4
...
@@ -73,19 +73,10 @@ module Clusters
...
@@ -73,19 +73,10 @@ module Clusters
"clientSecret"
=>
oauth_application
.
secret
,
"clientSecret"
=>
oauth_application
.
secret
,
"callbackUrl"
=>
callback_url
"callbackUrl"
=>
callback_url
}
}
},
"singleuser"
=>
{
"extraEnv"
=>
{
"GITLAB_PROJECT_ID"
=>
project_id
}
}
}
}
}
end
end
def
project_id
cluster
&
.
project
&
.
id
end
def
gitlab_url
def
gitlab_url
Gitlab
.
config
.
gitlab
.
url
Gitlab
.
config
.
gitlab
.
url
end
end
...
...
spec/models/clusters/applications/jupyter_spec.rb
View file @
4c9e53a4
...
@@ -108,17 +108,8 @@ describe Clusters::Applications::Jupyter do
...
@@ -108,17 +108,8 @@ describe Clusters::Applications::Jupyter do
expect
(
values
).
to
include
(
'rbac'
)
expect
(
values
).
to
include
(
'rbac'
)
expect
(
values
).
to
include
(
'proxy'
)
expect
(
values
).
to
include
(
'proxy'
)
expect
(
values
).
to
include
(
'auth'
)
expect
(
values
).
to
include
(
'auth'
)
expect
(
values
).
to
include
(
'singleuser'
)
expect
(
values
).
to
match
(
/clientId: '?
#{
application
.
oauth_application
.
uid
}
/
)
expect
(
values
).
to
match
(
/clientId: '?
#{
application
.
oauth_application
.
uid
}
/
)
expect
(
values
).
to
match
(
/callbackUrl: '?
#{
application
.
callback_url
}
/
)
expect
(
values
).
to
match
(
/callbackUrl: '?
#{
application
.
callback_url
}
/
)
end
end
context
'when cluster belongs to a project'
do
let
(
:project
)
{
application
.
cluster
.
first_project
}
it
'sets GitLab project id'
do
expect
(
values
).
to
match
(
/GITLAB_PROJECT_ID: '?
#{
project
.
id
}
/
)
end
end
end
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