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
dcbf2011
Commit
dcbf2011
authored
Oct 15, 2019
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test a user can create eks cluster form
parent
82651874
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
9 deletions
+48
-9
app/assets/javascripts/create_cluster/eks_cluster/components/create_eks_cluster.vue
...ate_cluster/eks_cluster/components/create_eks_cluster.vue
+6
-4
app/views/clusters/clusters/new.html.haml
app/views/clusters/clusters/new.html.haml
+8
-5
spec/features/projects/clusters/eks_spec.rb
spec/features/projects/clusters/eks_spec.rb
+34
-0
No files found.
app/assets/javascripts/create_cluster/eks_cluster/components/create_eks_cluster.vue
View file @
dcbf2011
...
...
@@ -20,8 +20,10 @@ export default {
};
</
script
>
<
template
>
<eks-cluster-configuration-form
:gitlab-managed-cluster-help-path=
"gitlabManagedClusterHelpPath"
:kubernetes-integration-help-path=
"kubernetesIntegrationHelpPath"
/>
<div
class=
"js-create-eks-cluster"
>
<eks-cluster-configuration-form
:gitlab-managed-cluster-help-path=
"gitlabManagedClusterHelpPath"
:kubernetes-integration-help-path=
"kubernetesIntegrationHelpPath"
/>
</div>
</
template
>
app/views/clusters/clusters/new.html.haml
View file @
dcbf2011
...
...
@@ -17,12 +17,15 @@
%li
.nav-item
{
role:
'presentation'
}
%a
.nav-link
{
href:
'#create-cluster-pane'
,
id:
'create-cluster-tab'
,
class:
active_when
(
active_tab
==
'create'
),
data:
{
toggle:
'tab'
},
role:
'tab'
}
%span
-
if
@gke_selected
=
create_on_gke_tab_label
-
elsif
@eks_selected
=
create_on_eks_tab_label
-
if
create_eks_enabled
-
if
@gke_selected
=
create_on_gke_tab_label
-
elsif
@eks_selected
=
create_on_eks_tab_label
-
else
=
create_new_cluster_label
-
else
=
create_
new_cluster
_label
=
create_
on_gke_tab
_label
%li
.nav-item
{
role:
'presentation'
}
%a
.nav-link
{
href:
'#add-cluster-pane'
,
id:
'add-cluster-tab'
,
class:
active_when
(
active_tab
==
'add'
),
data:
{
toggle:
'tab'
},
role:
'tab'
}
%span
Add existing cluster
...
...
spec/features/projects/clusters/eks_spec.rb
0 → 100644
View file @
dcbf2011
# frozen_string_literal: true
require
'spec_helper'
describe
'AWS EKS Cluster'
,
:js
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
project
.
add_maintainer
(
user
)
gitlab_sign_in
(
user
)
allow
(
Projects
::
ClustersController
).
to
receive
(
:STATUS_POLLING_INTERVAL
)
{
100
}
end
context
'when user does not have a cluster and visits cluster index page'
do
let
(
:project_id
)
{
'test-project-1234'
}
before
do
visit
project_clusters_path
(
project
)
click_link
'Add Kubernetes cluster'
end
context
'when user creates a cluster on AWS EKS'
do
before
do
click_link
'Amazon EKS'
end
it
'user sees a form to create an EKS cluster'
do
expect
(
page
).
to
have_selector
(
:css
,
'.js-create-eks-cluster'
)
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