From 5c1ae8361a0b23b6320a76836b5e0f9c1ff558c9 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Tue, 19 Feb 2013 14:41:19 -0800 Subject: [PATCH] Test AsyncStreamServer with abstract unix sockets This was meant to be since "the beginning" but was never submitted as somehow it failed with python 2.4. Now that the minimum python version has been increased it can be added. Signed-off-by: Guido Trotter Reviewed-by: Michael Hanselmann --- test/py/ganeti.daemon_unittest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/py/ganeti.daemon_unittest.py b/test/py/ganeti.daemon_unittest.py index 5be22dd..e337065 100755 --- a/test/py/ganeti.daemon_unittest.py +++ b/test/py/ganeti.daemon_unittest.py @@ -598,6 +598,15 @@ class TestAsyncStreamServerUnixPath(TestAsyncStreamServerTCP): TestAsyncStreamServerTCP.tearDown(self) +class TestAsyncStreamServerUnixAbstract(TestAsyncStreamServerTCP): + """Test daemon.AsyncStreamServer with a Unix abstract connection""" + + family = socket.AF_UNIX + + def getAddress(self): + return "\0myabstractsocketaddress" + + class TestAsyncAwaker(testutils.GanetiTestCase): """Test daemon.AsyncAwaker""" -- 1.7.10.4