summaryrefslogtreecommitdiff
path: root/tests/unit/test_web.py
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-29 14:39:17 +0000
committerGerrit Code Review <review@openstack.org>2018-12-29 14:39:17 +0000
commitdcfeb3a42bc31d4aea15d3032fc162f97486891d (patch)
treea03535a082b6750dd6c72d4bc69e809b1f48c276 /tests/unit/test_web.py
parent0fc3485454e2a0c2ac57fcb9b7a8b5d9ffbaaab4 (diff)
parent8436ed38b7af1a698516f7bcc840510c1e9bb9f9 (diff)
downloadzuul-dcfeb3a42bc31d4aea15d3032fc162f97486891d.tar.gz
Merge "web: add /{tenant}/nodes route"
Diffstat (limited to 'tests/unit/test_web.py')
-rwxr-xr-xtests/unit/test_web.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/test_web.py b/tests/unit/test_web.py
index 063cf8d15..73b5cd11a 100755
--- a/tests/unit/test_web.py
+++ b/tests/unit/test_web.py
@@ -373,6 +373,13 @@ class TestWeb(BaseTestWeb):
'voting': True
}], data)
+ def test_web_nodes_list(self):
+ # can we fetch the nodes list
+ data = self.get_url('api/tenant/tenant-one/nodes').json()
+ self.assertGreater(len(data), 0)
+ self.assertEqual("test-provider", data[0]["provider"])
+ self.assertEqual("label1", data[0]["type"])
+
def test_web_labels_list(self):
# can we fetch the labels list
data = self.get_url('api/tenant/tenant-one/labels').json()