diff options
author | Zuul <zuul@review.openstack.org> | 2018-12-29 14:39:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-12-29 14:39:17 +0000 |
commit | dcfeb3a42bc31d4aea15d3032fc162f97486891d (patch) | |
tree | a03535a082b6750dd6c72d4bc69e809b1f48c276 /tests/unit/test_web.py | |
parent | 0fc3485454e2a0c2ac57fcb9b7a8b5d9ffbaaab4 (diff) | |
parent | 8436ed38b7af1a698516f7bcc840510c1e9bb9f9 (diff) | |
download | zuul-dcfeb3a42bc31d4aea15d3032fc162f97486891d.tar.gz |
Merge "web: add /{tenant}/nodes route"
Diffstat (limited to 'tests/unit/test_web.py')
-rwxr-xr-x | tests/unit/test_web.py | 7 |
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() |