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
b06c5d91
Commit
b06c5d91
authored
Aug 05, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
3146c37f
7205687c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
spec/factories/clusters/applications/helm.rb
spec/factories/clusters/applications/helm.rb
+14
-0
spec/fixtures/clusters/sample_key.key
spec/fixtures/clusters/sample_key.key
+9
-0
No files found.
spec/factories/clusters/applications/helm.rb
View file @
b06c5d91
...
...
@@ -4,6 +4,20 @@ FactoryBot.define do
factory
:clusters_applications_helm
,
class:
Clusters
::
Applications
::
Helm
do
cluster
factory:
%i(cluster provided_by_gcp)
before
(
:create
)
do
allow
(
Gitlab
::
Kubernetes
::
Helm
::
Certificate
).
to
receive
(
:generate_root
)
.
and_return
(
double
(
key_string:
File
.
read
(
Rails
.
root
.
join
(
'spec/fixtures/clusters/sample_key.key'
)),
cert_string:
File
.
read
(
Rails
.
root
.
join
(
'spec/fixtures/clusters/sample_cert.pem'
))
)
)
end
after
(
:create
)
do
allow
(
Gitlab
::
Kubernetes
::
Helm
::
Certificate
).
to
receive
(
:generate_root
).
and_call_original
end
trait
:not_installable
do
status
(
-
2
)
end
...
...
spec/fixtures/clusters/sample_key.key
0 → 100644
View file @
b06c5d91
-----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBAMA5sXIBE0HwgIB40iNidN4PGWzOyLQK0bsdOBNgpEXkDlZBvnak
OUgAPF+rME4PB0Yl415DabUI40T5UNmlwxcCAwEAAQJAZtY2pSwIFm3JAXIh0cZZ
iXcAfiJ+YzuqinUOS+eW2sBCAEzjcARlU/o6sFQgtsOi4FOMczAd1Yx8UDMXMmrw
2QIhAPBgVhJiTF09pdmeFWutCvTJDlFFAQNbrbo2X2x/9WF9AiEAzLgqMKeStSRu
H9N16TuDrUoO8R+DPqriCwkKrSHaWyMCIFzMhE4inuKcSywBaLmiG4m3GQzs++Al
A6PRG/PSTpQtAiBxtBg6zdf+JC3GH3zt/dA0/10tL4OF2wORfYQghRzyYQIhAL2l
0ZQW+yLIZAGrdBFWYEAa52GZosncmzBNlsoTgwE4
-----END RSA PRIVATE KEY-----
\ No newline at end of file
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