Add UT of SRIOV-NIC infra workload for windriver 15/71215/1
authorHuang Haibin <haibin.huang@intel.com>
Thu, 25 Oct 2018 05:54:49 +0000 (13:54 +0800)
committerHuang Haibin <haibin.huang@intel.com>
Thu, 25 Oct 2018 05:54:49 +0000 (13:54 +0800)
Change-Id: Ib4093e5e9eeb2371a8e904ead8b0d36b1fe32c3e
Issue-ID: MULTICLOUD-250
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
windriver/titanium_cloud/resource/tests/tests_infra_workload.py

index 8914728..2d75e59 100644 (file)
@@ -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