X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Fintegration-ocloud%2Ftest_clientdriver_stx.py;h=a9f404bf09bebc3b80071cc932336612214ed60c;hb=79323988bfb68d23a9d781843c0b73f3fa463809;hp=8ca1780ebd08fef09142a0c110cd07c65bc9bae3;hpb=8ce7973df58d75f63dca57264d4934089a8629c5;p=pti%2Fo2.git diff --git a/tests/integration-ocloud/test_clientdriver_stx.py b/tests/integration-ocloud/test_clientdriver_stx.py index 8ca1780..a9f404b 100644 --- a/tests/integration-ocloud/test_clientdriver_stx.py +++ b/tests/integration-ocloud/test_clientdriver_stx.py @@ -89,6 +89,20 @@ def test_get_k8s_list(real_stx_aio_client): assert k8s3.id == k8s4.id +def test_get_label_list(real_stx_aio_client): + stxClientImp = StxClientImp(real_stx_aio_client) + assert stxClientImp is not None + hostlist = stxClientImp.getPserverList() + assert len(hostlist) > 0 + + print(hostlist[0].id) + + labellist = stxClientImp.getLabelList(hostid=hostlist[0].id) + assert len(labellist) > 0 + label1 = labellist[0] + assert label1.id == "test" + + def test_get_cpu_list(real_stx_aio_client): stxClientImp = StxClientImp(real_stx_aio_client) assert stxClientImp is not None