Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos.core
Commits
3e5f56eb
Commit
3e5f56eb
authored
May 15, 2013
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSL certificate escape utf-8
parent
6c9d9b5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudWorkflow.py
.../slapos_cloud/TestTemplateItem/testSlapOSCloudWorkflow.py
+4
-4
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudWorkflow.py
View file @
3e5f56eb
...
@@ -143,7 +143,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -143,7 +143,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
.
decode
(
'string_escape'
)
)
def
test_generateCertificate_twice
(
self
):
def
test_generateCertificate_twice
(
self
):
self
.
login
(
self
.
computer
.
getReference
())
self
.
login
(
self
.
computer
.
getReference
())
...
@@ -155,7 +155,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -155,7 +155,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
.
decode
(
'string_escape'
)
)
self
.
assertRaises
(
ValueError
,
self
.
computer
.
generateCertificate
)
self
.
assertRaises
(
ValueError
,
self
.
computer
.
generateCertificate
)
self
.
assertEqual
(
None
,
self
.
portal
.
REQUEST
.
get
(
'computer_key'
))
self
.
assertEqual
(
None
,
self
.
portal
.
REQUEST
.
get
(
'computer_key'
))
...
@@ -344,7 +344,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -344,7 +344,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
.
decode
(
'string_escape'
)
)
self
.
computer
.
revokeCertificate
()
self
.
computer
.
revokeCertificate
()
self
.
assertEqual
(
None
,
self
.
portal
.
REQUEST
.
get
(
'computer_key'
))
self
.
assertEqual
(
None
,
self
.
portal
.
REQUEST
.
get
(
'computer_key'
))
...
@@ -369,7 +369,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
...
@@ -369,7 +369,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
self
.
assertNotEqual
(
None
,
self
.
computer
.
getDestinationReference
())
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
serial
=
'0x%x'
%
int
(
self
.
computer
.
getDestinationReference
(),
16
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
serial
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
)
self
.
assertTrue
(
self
.
computer
.
getReference
()
in
computer_certificate
.
decode
(
'string_escape'
)
)
self
.
computer
.
revokeCertificate
()
self
.
computer
.
revokeCertificate
()
self
.
assertEqual
(
None
,
self
.
portal
.
REQUEST
.
get
(
'computer_key'
))
self
.
assertEqual
(
None
,
self
.
portal
.
REQUEST
.
get
(
'computer_key'
))
...
...
master/bt5/slapos_cloud/bt/revision
View file @
3e5f56eb
282
283
\ No newline at end of file
\ 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