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
ca1dfc6f
Commit
ca1dfc6f
authored
Feb 28, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
37a02a6b
f6453eca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
129 deletions
+114
-129
qa/qa/service/kubernetes_cluster.rb
qa/qa/service/kubernetes_cluster.rb
+1
-1
qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb
...igure/auto_devops/create_project_with_auto_devops_spec.rb
+113
-128
No files found.
qa/qa/service/kubernetes_cluster.rb
View file @
ca1dfc6f
...
...
@@ -9,7 +9,7 @@ module QA
attr_reader
:api_url
,
:ca_certificate
,
:token
,
:rbac
def
initialize
(
rbac:
fals
e
)
def
initialize
(
rbac:
tru
e
)
@rbac
=
rbac
end
...
...
qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb
View file @
ca1dfc6f
...
...
@@ -11,8 +11,7 @@ module QA
end
describe
'Auto DevOps support'
,
:orchestrated
,
:kubernetes
,
:quarantine
do
[
true
,
false
].
each
do
|
rbac
|
context
"when rbac is
#{
rbac
?
'enabled'
:
'disabled'
}
"
do
context
'when rbac is enabled'
do
before
(
:all
)
do
login
...
...
@@ -39,7 +38,7 @@ module QA
end
# Create and connect K8s cluster
@cluster
=
Service
::
KubernetesCluster
.
new
(
rbac:
rbac
)
.
create!
@cluster
=
Service
::
KubernetesCluster
.
new
.
create!
Resource
::
KubernetesCluster
.
fabricate!
do
|
cluster
|
cluster
.
project
=
@project
cluster
.
cluster
=
@cluster
...
...
@@ -48,22 +47,12 @@ module QA
cluster
.
install_prometheus
=
true
cluster
.
install_runner
=
true
end
@project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:click_ci_cd_settings
)
Page
::
Project
::
Settings
::
CICD
.
perform
do
|
p
|
p
.
enable_auto_devops
end
end
after
(
:all
)
do
@cluster
&
.
remove!
end
before
do
login
end
it
'runs auto devops'
do
@project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:click_ci_cd_pipelines
)
...
...
@@ -126,7 +115,6 @@ module QA
push
.
file_content
=
'new file contents'
end
@project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:click_ci_cd_pipelines
)
Page
::
Project
::
Pipeline
::
Index
.
perform
(
&
:go_to_latest_pipeline
)
...
...
@@ -153,8 +141,6 @@ module QA
end
Page
::
Project
::
Job
::
Show
.
perform
do
|
job
|
expect
(
job
).
to
be_successful
(
timeout:
1200
)
job
.
click_element
(
:pipeline_path
)
end
Page
::
Project
::
Menu
.
perform
(
&
:click_operations_environments
)
...
...
@@ -172,7 +158,6 @@ module QA
end
end
end
end
describe
'Auto DevOps'
,
:smoke
do
it
'enables AutoDevOps by default'
do
...
...
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