summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2018-01-19 18:04:15 -0500
committerCole Robinson <crobinso@redhat.com>2018-01-21 10:02:08 -0500
commitc87bb3937d4a22903b43cd682675d538f75d0471 (patch)
tree68bd36ecd752f4791983d0055c65a13950d92358
parent3ccb947ce3252660d156635a6b54a7bdaa6e53f2 (diff)
downloadvirt-manager-c87bb3937d4a22903b43cd682675d538f75d0471.tar.gz
uitests: Add dbus remote cli test
-rw-r--r--tests/uitests/cli.py15
-rw-r--r--tests/uitests/utils.py3
2 files changed, 15 insertions, 3 deletions
diff --git a/tests/uitests/cli.py b/tests/uitests/cli.py
index 1d03a90b..fcff6603 100644
--- a/tests/uitests/cli.py
+++ b/tests/uitests/cli.py
@@ -55,3 +55,18 @@ class VMMCLI(uiutils.UITestCase):
self.assertFalse(
self.app.topwin.find_fuzzy(
"add-hardware", "button").showing)
+
+ def testShowRemoteConnect(self):
+ """
+ Test the remote app dbus connection
+ """
+ self.app.open()
+ newapp = uiutils.VMMDogtailApp("test:///default")
+ newapp.open()
+ uiutils.check_in_loop(lambda: not newapp.is_running())
+ import dogtail.tree
+ vapps = [a for a in dogtail.tree.root.applications() if
+ a.name == "virt-manager"]
+ self.assertEqual(len(vapps), 1)
+
+ self.app.topwin.find("test default", "table cell")
diff --git a/tests/uitests/utils.py b/tests/uitests/utils.py
index 0ef34c67..2ea08718 100644
--- a/tests/uitests/utils.py
+++ b/tests/uitests/utils.py
@@ -60,9 +60,6 @@ class UITestCase(unittest.TestCase):
check_in_loop(lambda: run.sensitive)
return win
-
- ##############
-
def _walkUIList(self, win, lst, error_cb):
"""
Toggle down through a UI list like addhardware, net/storage/iface