From: Huang Haibin Date: Thu, 25 Oct 2018 05:54:49 +0000 (+0800) Subject: Add UT of SRIOV-NIC infra workload for windriver X-Git-Tag: 1.2.1~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F71215%2F1;p=multicloud%2Fopenstack.git Add UT of SRIOV-NIC infra workload for windriver Change-Id: Ib4093e5e9eeb2371a8e904ead8b0d36b1fe32c3e Issue-ID: MULTICLOUD-250 Signed-off-by: Huang Haibin --- diff --git a/windriver/titanium_cloud/resource/tests/tests_infra_workload.py b/windriver/titanium_cloud/resource/tests/tests_infra_workload.py index 89147287..2d75e595 100644 --- a/windriver/titanium_cloud/resource/tests/tests_infra_workload.py +++ b/windriver/titanium_cloud/resource/tests/tests_infra_workload.py @@ -51,6 +51,15 @@ MOCK_HEAT_CREATE_BODY1 = { "attribute_value":"m1.hpa.medium" } ] + }, + { + "type":"sriovNetNetwork_directives", + "attributes":[ + { + "attribute_name":"physnetwork_label", + "attribute_value":"physnet1" + } + ] } ] } @@ -211,4 +220,4 @@ class APIv1InfraWorkloadTest(unittest.TestCase): response = self._APIv1InfraWorkload.get(mock_request, cloud_owner, cloud_region_id, mock_stack_id) self.assertEqual(response.status_code, status.HTTP_200_OK) - pass \ No newline at end of file + pass