Commit 4a7154b9 by Jérome Perrin

slapproxy: Add a no-op computerBang method for compatibility with recent slapos

1 parent eb11cca3
......@@ -732,6 +732,10 @@ def softwareInstanceRename():
def getComputerPartitionStatus():
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'])
def getComputerPartitionCertificate():
# proxy does not use partition certificate, but client calls this.
......
......@@ -271,6 +271,14 @@ class TestInformation(BasicMixin, unittest.TestCase):
response = xml_marshaller.xml_marshaller.loads(rv.data)
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):
"""
Define advanced tool for test proxy simulating behavior slap library tools
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!