qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r1655908 - /qpid/dispatch/trunk/tests/system_tests_management.py
Date Fri, 30 Jan 2015 02:19:06 GMT
Author: aconway
Date: Fri Jan 30 02:19:06 2015
New Revision: 1655908

URL: http://svn.apache.org/r1655908
Log:
NO-JIRA: Add test for remote management of via intermediate node.

Modified:
    qpid/dispatch/trunk/tests/system_tests_management.py

Modified: qpid/dispatch/trunk/tests/system_tests_management.py
URL: http://svn.apache.org/viewvc/qpid/dispatch/trunk/tests/system_tests_management.py?rev=1655908&r1=1655907&r2=1655908&view=diff
==============================================================================
--- qpid/dispatch/trunk/tests/system_tests_management.py (original)
+++ qpid/dispatch/trunk/tests/system_tests_management.py Fri Jan 30 02:19:06 2015
@@ -410,6 +410,16 @@ class ManagementTest(system_test.TestCas
         remote = self.cleanup(Node(remote_url))
         self.assertEqual(["router2"], [r.routerId for r in remote.query(type=ROUTER).get_entities()])
 
+    def test_remote_node(self):
+        """Test that we can access management info of remote nodes using get_mgmt_nodes addresses"""
+        nodes = [self.cleanup(Node(Url(r.addresses[0]))) for r in self.routers]
+        remotes = sum([n.get_mgmt_nodes() for n in nodes], [])
+        self.assertEqual([u'amqp:/_topo/0/router2/$management', u'amqp:/_topo/0/router1/$management'],
remotes)
+        # Query router2 indirectly via router1
+        remote_url = Url(self.routers[0].addresses[0], path=Url(remotes[0]).path)
+        remote = self.cleanup(Node(remote_url))
+        self.assertEqual(["router2"], [r.routerId for r in remote.query(type=ROUTER).get_entities()])
+
     def test_get_types(self):
         types = self.node.get_types()
         self.assertIn(CONFIGURATION, types[LISTENER])



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message