Move k8s resources test to TestKubernetesAPIs

Due to client changes [1], listing k8s resources needs bay uuid or
name. So this patch moves test for listing k8s resources functional
test to `TestKubernetesAPIs`. Because `TestListResources` doesn't
have bay uuid or name.

[1]: https://review.openstack.org/#/c/231219/

Change-Id: Ieb76fab3e98a62e9b0624d50632f611191220a58
Closes-Bug: #1503587
This commit is contained in:
OTSUKA, Yuanying 2015-10-07 16:57:04 +09:00
parent 30d9ce3f81
commit 3ab11cb16b
2 changed files with 9 additions and 9 deletions

View File

@ -127,3 +127,12 @@ class TestKubernetesAPIs(BaseMagnumClient):
resp = self.k8s_api.delete_namespaced_replication_controller(
name='frontend', body={}, namespace='default')
def test_pods_list(self):
self.assertTrue(self.cs.pods.list(self.bay.uuid) is not None)
def test_rcs_list(self):
self.assertTrue(self.cs.rcs.list(self.bay.uuid) is not None)
def test_services_list(self):
self.assertTrue(self.cs.services.list(self.bay.uuid) is not None)

View File

@ -26,12 +26,3 @@ class TestListResources(BaseMagnumClient):
def test_nodes_list(self):
self.assertTrue(self.cs.nodes.list() is not None)
def test_pods_list(self):
self.assertTrue(self.cs.pods.list() is not None)
def test_rcs_list(self):
self.assertTrue(self.cs.rcs.list() is not None)
def test_services_list(self):
self.assertTrue(self.cs.services.list() is not None)