From 068c4be4784af9bc5839b2728f9b833342899f5e Mon Sep 17 00:00:00 2001 From: Imre Farkas Date: Fri, 8 Jul 2016 13:02:37 +0200 Subject: [PATCH] Delete bios_wsman_mock.py from DRAC driver It's left over from the dracclient refactor patches. Should have been removed in 51a73e11c2f6bad0302cefcd8380f6ccbc757907. Change-Id: I52a520971dfc3dfd2ba20c9620c303697adc02dd --- .../drivers/modules/drac/bios_wsman_mock.py | 273 ------------------ 1 file changed, 273 deletions(-) delete mode 100644 ironic/tests/unit/drivers/modules/drac/bios_wsman_mock.py diff --git a/ironic/tests/unit/drivers/modules/drac/bios_wsman_mock.py b/ironic/tests/unit/drivers/modules/drac/bios_wsman_mock.py deleted file mode 100644 index 245d27c016..0000000000 --- a/ironic/tests/unit/drivers/modules/drac/bios_wsman_mock.py +++ /dev/null @@ -1,273 +0,0 @@ -# -# Copyright 2015 Dell, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -""" -Test class for DRAC BIOS interface -""" - -from ironic.drivers.modules.drac import resource_uris - -Enumerations = { - resource_uris.DCIM_BIOSEnumeration: { - 'XML': """ - - http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous - - -http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse - uuid:1f5cd907-0e6f-1e6f-8002-4f266e3acab8 - uuid:219ca357-0e6f-1e6f-a828-f0e4fb722ab8 - - - - - - MemTest - Disabled - - 310 - BIOS.Setup.1-1 - Memory Settings - MemSettings - BIOS.Setup.1-1:MemTest - false - - Enabled - Disabled - - - C States - ProcCStates - Disabled - 1706 - BIOS.Setup.1-1 - System Profile Settings - SysProfileSettings - BIOS.Setup.1-1:ProcCStates - true - - Enabled - Disabled - - - - - """, - 'Dict': { - 'MemTest': { - 'name': 'MemTest', - 'current_value': 'Disabled', - 'pending_value': None, - 'read_only': False, - 'possible_values': ['Disabled', 'Enabled']}, - 'ProcCStates': { - 'name': 'ProcCStates', - 'current_value': 'Disabled', - 'pending_value': None, - 'read_only': True, - 'possible_values': ['Disabled', 'Enabled']}}}, - resource_uris.DCIM_BIOSString: { - 'XML': """ - - http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous - - -http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse - - uuid:1f877bcb-0e6f-1e6f-8004-4f266e3acab8 - uuid:21bea321-0e6f-1e6f-a82b-f0e4fb722ab8 - - - - - - SystemModelName - PowerEdge R630 - - 201 - BIOS.Setup.1-1 - System Information - SysInformation - BIOS.Setup.1-1:SystemModelName - true - 40 - 0 - - - - - SystemModelName2 - PowerEdge R630 - - 201 - BIOS.Setup.1-1 - System Information - SysInformation - BIOS.Setup.1-1:SystemModelName2 - true - 40 - 0 - - - - Asset Tag - AssetTag - - - 1903 - BIOS.Setup.1-1 - Miscellaneous Settings - MiscSettings - BIOS.Setup.1-1:AssetTag - false - 63 - 0 - - ^[ -~]{0,63}$ - - - - - - - """, - 'Dict': { - 'SystemModelName': { - 'name': 'SystemModelName', - 'current_value': 'PowerEdge R630', - 'pending_value': None, - 'read_only': True, - 'min_length': 0, - 'max_length': 40, - 'pcre_regex': None}, - 'SystemModelName2': { - 'name': 'SystemModelName2', - 'current_value': 'PowerEdge R630', - 'pending_value': None, - 'read_only': True, - 'min_length': 0, - 'max_length': 40, - 'pcre_regex': None}, - 'AssetTag': { - 'name': 'AssetTag', - 'current_value': None, - 'pending_value': None, - 'read_only': False, - 'min_length': 0, - 'max_length': 63, - 'pcre_regex': '^[ -~]{0,63}$'}}}, - resource_uris.DCIM_BIOSInteger: { - 'XML': """ - - -http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous - -http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse - uuid:1fa60792-0e6f-1e6f-8005-4f266e3acab8 - uuid:21ccf01d-0e6f-1e6f-a82d-f0e4fb722ab8 - - - - - - Proc1NumCores - 8 - - 439 - BIOS.Setup.1-1 - Processor Settings - ProcSettings - BIOS.Setup.1-1:Proc1NumCores - true - 0 - - 65535 - - - AcPwrRcvryUserDelay - 60 - 1825 - BIOS.Setup.1-1 - System Security - SysSecurity - BIOS.Setup.1-1:AcPwrRcvryUserDelay - false - 60 - - 240 - - - - - - - """, - 'Dict': { - 'Proc1NumCores': { - 'name': 'Proc1NumCores', - 'current_value': 8, - 'pending_value': None, - 'read_only': True, - 'lower_bound': 0, - 'upper_bound': 65535}, - 'AcPwrRcvryUserDelay': { - 'name': 'AcPwrRcvryUserDelay', - 'current_value': 60, - 'pending_value': None, - 'read_only': False, - 'lower_bound': 60, - 'upper_bound': 240}}}} - -Invoke_Commit = """ - - -http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous - -http://schemas.dell.com/wbem/wscim/1/cim-schema/2/DCIM_BIOSService/SetAttributesResponse - uuid:42baa476-0ee9-1ee9-8020-4f266e3acab8 - uuid:fadae2f8-0eea-1eea-9626-76a8f1d9bed4 - - - - The command was successful. - BIOS001 - Yes - 0 - Set PendingValue - - -"""