summaryrefslogtreecommitdiffstats
path: root/src/service-dbus
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2013-10-31 09:32:52 +0100
committerRadek Novacek <rnovacek@redhat.com>2013-10-31 09:32:52 +0100
commit6b245bf1cef3731ef62dd33a1bbcd56922dec16b (patch)
treed1fdd82b679a9a2a2f9a4dded1e691605cca6fa8 /src/service-dbus
parent49394a84fe1235b692fc32d903bf3486e41f76b4 (diff)
downloadopenlmi-providers-6b245bf1cef3731ef62dd33a1bbcd56922dec16b.tar.gz
openlmi-providers-6b245bf1cef3731ef62dd33a1bbcd56922dec16b.tar.xz
openlmi-providers-6b245bf1cef3731ef62dd33a1bbcd56922dec16b.zip
test: Don't test connection in the service provider
The test for creating socket and http connection get removed, because: * socket connection might not work on the buildbot * http(s) connection is tested in the service provider tests anyway
Diffstat (limited to 'src/service-dbus')
-rw-r--r--src/service-dbus/test/testService.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/service-dbus/test/testService.py b/src/service-dbus/test/testService.py
index b323637..346ca92 100644
--- a/src/service-dbus/test/testService.py
+++ b/src/service-dbus/test/testService.py
@@ -37,36 +37,6 @@ DEV_NULL = open("/dev/null", 'w')
# NOTES
# - systemd/service status returns code 3 for stopped (dead) services on Fedora
-class TestConnection(unittest.TestCase):
- """
- TestCase class testing connection to remote test server.
- """
-
- def test_connection_socket(self):
- """
- Test connection to remote HOST using LMI_CIMOM_ settings.
-
- Use predefined HOST and global LMI_CIMOM_ settings:
- LMI_CIMOM_USERNAME
- LMI_CIMOM_PASSWORD
- Cases:
- LMIConnection is properly returned
- """
- conn = lmishell.connect(HOST)
- self.assertTrue(isinstance(conn, lmishell.LMIConnection), "Couldn't connect to remote provider")
-
- def test_connection_http(self):
- """
- Test connection to remote HOST using USER and PASSWD.
-
- Use predefined HOST, USER and PASSWD.
- Cases:
- LMIConnection is properly returned
- """
- conn = lmishell.connect(HOST, USER, PASSWD)
- self.assertTrue(isinstance(conn, lmishell.LMIConnection), "Couldn't connect to remote provider")
-
-
class TestServiceProvider(unittest.TestCase):
"""
TestCase class testing OpenLMI service functionality.