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
69b1eb3e
Commit
69b1eb3e
authored
Sep 13, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project to jupyter cluster app factory
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
06fd6cb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
spec/factories/clusters/applications/helm.rb
spec/factories/clusters/applications/helm.rb
+1
-1
spec/models/clusters/applications/jupyter_spec.rb
spec/models/clusters/applications/jupyter_spec.rb
+1
-5
No files found.
spec/factories/clusters/applications/helm.rb
View file @
69b1eb3e
...
@@ -59,7 +59,7 @@ FactoryBot.define do
...
@@ -59,7 +59,7 @@ FactoryBot.define do
factory
:clusters_applications_jupyter
,
class:
Clusters
::
Applications
::
Jupyter
do
factory
:clusters_applications_jupyter
,
class:
Clusters
::
Applications
::
Jupyter
do
oauth_application
factory: :oauth_application
oauth_application
factory: :oauth_application
cluster
factory:
%i(cluster with_installed_helm provided_by_gcp)
cluster
factory:
%i(cluster with_installed_helm provided_by_gcp
project
)
end
end
end
end
end
end
spec/models/clusters/applications/jupyter_spec.rb
View file @
69b1eb3e
...
@@ -114,11 +114,7 @@ describe Clusters::Applications::Jupyter do
...
@@ -114,11 +114,7 @@ describe Clusters::Applications::Jupyter do
end
end
context
'when cluster belongs to a project'
do
context
'when cluster belongs to a project'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
application
.
cluster
.
first_project
}
before
do
application
.
cluster
.
projects
<<
project
end
it
'sets GitLab project id'
do
it
'sets GitLab project id'
do
expect
(
values
).
to
match
(
/GITLAB_PROJECT_ID: '?
#{
project
.
id
}
/
)
expect
(
values
).
to
match
(
/GITLAB_PROJECT_ID: '?
#{
project
.
id
}
/
)
...
...
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