summaryrefslogtreecommitdiffstats
path: root/windriver
diff options
context:
space:
mode:
authorHuang Haibin <haibin.huang@intel.com>2018-10-25 13:54:49 +0800
committerHuang Haibin <haibin.huang@intel.com>2018-10-25 13:54:49 +0800
commit28fdd51828b643a21b8eaa86743b4981f0005d4b (patch)
treea9bf1aac459ba865688554bd1a39e438dccb57d1 /windriver
parent7c594faa53eee523eb3378f8fcc5094264128f52 (diff)
Add UT of SRIOV-NIC infra workload for windriver
Change-Id: Ib4093e5e9eeb2371a8e904ead8b0d36b1fe32c3e Issue-ID: MULTICLOUD-250 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'windriver')
-rw-r--r--windriver/titanium_cloud/resource/tests/tests_infra_workload.py11
1 files changed, 10 insertions, 1 deletions
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