From cab47ee33492d244b3f926e4f71f118b4c1ac7f1 Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Mon, 26 Mar 2018 16:21:57 +0800 Subject: UT data for pci passthrough set capabilities Change-Id: Icb842ef8c8a020f16c06f88966abae1ff598b9d9 Issue-ID: MULTICLOUD-200 Signed-off-by: Yun Huang --- windriver/titanium_cloud/registration/tests/test_registration.py | 3 ++- windriver/titanium_cloud/registration/views/registration.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'windriver/titanium_cloud/registration') diff --git a/windriver/titanium_cloud/registration/tests/test_registration.py b/windriver/titanium_cloud/registration/tests/test_registration.py index 8ef4b4b8..0b3a516d 100644 --- a/windriver/titanium_cloud/registration/tests/test_registration.py +++ b/windriver/titanium_cloud/registration/tests/test_registration.py @@ -60,7 +60,8 @@ MOCK_GET_FLAVOR_EXTRA_SPECS_RESPONSE = { "hw:numa_cpus.1" : "2,3,4,5", "hw:numa_mem.0" : "2048", "hw:numa_mem.1" : "2048", - "hw:capabilities:cpu_info:features":"avx,acpi" + "hw:capabilities:cpu_info:features":"avx,acpi", + "pci_passthrough:alias":"sriov-vf-intel-8086-15b3:4" } } diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py index 992353ca..bdf89a15 100644 --- a/windriver/titanium_cloud/registration/views/registration.py +++ b/windriver/titanium_cloud/registration/views/registration.py @@ -127,7 +127,7 @@ class Registry(newton_registration.Registry): # PCI passthrough capabilities caps_dict = self._get_pci_passthrough_capabilities(extra_specs) if len(caps_dict) > 0: - self._logger.debug("pxi_passthrough_capabilities_info: %s" % caps_dict) + self._logger.debug("pci_passthrough_capabilities_info: %s" % caps_dict) hpa_caps.append(caps_dict) return hpa_caps -- cgit 1.2.3-korg