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
Klaus Wölfel
slapos.core
Commits
4a7154b9
Commit
4a7154b9
authored
Jul 16, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapproxy: Add a no-op computerBang method for compatibility with recent slapos
parent
eb11cca3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
slapos/proxy/views.py
slapos/proxy/views.py
+4
-0
slapos/tests/slapproxy/__init__.py
slapos/tests/slapproxy/__init__.py
+8
-0
No files found.
slapos/proxy/views.py
View file @
4a7154b9
...
@@ -732,6 +732,10 @@ def softwareInstanceRename():
...
@@ -732,6 +732,10 @@ def softwareInstanceRename():
def
getComputerPartitionStatus
():
def
getComputerPartitionStatus
():
return
xml_marshaller
.
xml_marshaller
.
dumps
(
'Not implemented.'
)
return
xml_marshaller
.
xml_marshaller
.
dumps
(
'Not implemented.'
)
@
app
.
route
(
'/computerBang'
,
methods
=
[
'POST'
])
def
computerBang
():
return
xml_marshaller
.
xml_marshaller
.
dumps
(
''
)
@
app
.
route
(
'/getComputerPartitionCertificate'
,
methods
=
[
'GET'
])
@
app
.
route
(
'/getComputerPartitionCertificate'
,
methods
=
[
'GET'
])
def
getComputerPartitionCertificate
():
def
getComputerPartitionCertificate
():
# proxy does not use partition certificate, but client calls this.
# proxy does not use partition certificate, but client calls this.
...
...
slapos/tests/slapproxy/__init__.py
View file @
4a7154b9
...
@@ -271,6 +271,14 @@ class TestInformation(BasicMixin, unittest.TestCase):
...
@@ -271,6 +271,14 @@ class TestInformation(BasicMixin, unittest.TestCase):
response
=
xml_marshaller
.
xml_marshaller
.
loads
(
rv
.
data
)
response
=
xml_marshaller
.
xml_marshaller
.
loads
(
rv
.
data
)
self
.
assertEquals
({
'certificate'
:
''
,
'key'
:
''
},
response
)
self
.
assertEquals
({
'certificate'
:
''
,
'key'
:
''
},
response
)
def
test_computerBang
(
self
):
"""
Tests that computerBang method is implemented in slapproxy.
"""
rv
=
self
.
app
.
post
(
'/computerBang?computer_id=%s'
%
(
self
.
computer_id
))
response
=
xml_marshaller
.
xml_marshaller
.
loads
(
rv
.
data
)
self
.
assertEquals
(
''
,
response
)
class
MasterMixin
(
BasicMixin
,
unittest
.
TestCase
):
class
MasterMixin
(
BasicMixin
,
unittest
.
TestCase
):
"""
"""
Define advanced tool for test proxy simulating behavior slap library tools
Define advanced tool for test proxy simulating behavior slap library tools
...
...
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