Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapcache
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapcache
Commits
dcafc514
Commit
dcafc514
authored
Nov 03, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
f71b36e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapcache/test/test_signature.py
slapcache/test/test_signature.py
+4
-4
No files found.
slapcache/test/test_signature.py
View file @
dcafc514
...
@@ -183,8 +183,8 @@ key = 'slapos-upgrade-testing-key-with-config-file-valid'
...
@@ -183,8 +183,8 @@ key = 'slapos-upgrade-testing-key-with-config-file-valid'
"""
+
BASE_UPDATE_CFG_DATA
"""
+
BASE_UPDATE_CFG_DATA
UPDATE_CFG_WITH_UPLOAD_DATA
=
UPDATE_CFG_DATA
+
"""
UPDATE_CFG_WITH_UPLOAD_DATA
=
UPDATE_CFG_DATA
+
"""
signature
_private_key_
file = /etc/opt/slapos/signature.key
signature
-private-key-
file = /etc/opt/slapos/signature.key
signature
_certificate_
file = /etc/opt/slapos/signature.cert
signature
-certificate-
file = /etc/opt/slapos/signature.cert
upload-cache-url = https://www.shacache.org/shacache
upload-cache-url = https://www.shacache.org/shacache
shacache-cert-file = /etc/opt/slapos/shacache.crt
shacache-cert-file = /etc/opt/slapos/shacache.crt
shacache-key-file = /etc/opt/slapos/shacache.key
shacache-key-file = /etc/opt/slapos/shacache.key
...
@@ -285,8 +285,8 @@ class NetworkCacheTestCase(unittest.TestCase):
...
@@ -285,8 +285,8 @@ class NetworkCacheTestCase(unittest.TestCase):
os
.
remove
(
signature_private_key_file
)
os
.
remove
(
signature_private_key_file
)
slapos
.
signature
.
generateCertificate
(
signature_certificate_file
,
signature_private_key_file
,
'COMP-123A'
)
slapos
.
signature
.
generateCertificate
(
signature_certificate_file
,
signature_private_key_file
,
'COMP-123A'
)
configuration_content
=
UPDATE_UPLOAD_CFG_DATA
+
"""
configuration_content
=
UPDATE_UPLOAD_CFG_DATA
+
"""
signature
_private_key_file = %(signature_private_key_file)s
signature
-private-key-file = %(signature_private_key_file)s
signature
_certificate_
file = %(signature_certificate_file)s
signature
-certificate-
file = %(signature_certificate_file)s
upload-cache-url = https://www.shacache.org/shacache
upload-cache-url = https://www.shacache.org/shacache
shacache-cert-file = %(tempfile)s
shacache-cert-file = %(tempfile)s
shacache-key-file = %(tempfile)s
shacache-key-file = %(tempfile)s
...
...
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