@@ -18,38 +18,30 @@ import (
1818)
1919
2020var boot_settings = BootSettingDataRequest {
21- BIOSLastStatus : []int {2 , 0 },
22- BIOSPause : false ,
23- BIOSSetup : false ,
24- BootMediaIndex : 0 ,
25- BootguardStatus : 127 ,
26- ConfigurationDataReset : false ,
27- ElementName : "Intel(r) AMT Boot Configuration Settings" ,
28- EnforceSecureBoot : false ,
29- FirmwareVerbosity : 0 ,
30- ForcedProgressEvents : false ,
31- IDERBootDevice : 0 ,
32- InstanceID : "Intel(r) AMT:BootSettingData 0" ,
33- LockKeyboard : false ,
34- LockPowerButton : false ,
35- LockResetButton : false ,
36- LockSleepButton : false ,
37- OptionsCleared : true ,
38- OwningEntity : "Intel(r) AMT" ,
39- PlatformErase : false ,
40- RPEEnabled : false ,
41- RSEPassword : "" ,
42- ReflashBIOS : false ,
43- SecureBootControlEnabled : false ,
44- SecureErase : false ,
45- UEFIHTTPSBootEnabled : false ,
46- UEFILocalPBABootEnabled : false ,
47- UefiBootNumberOfParams : 0 ,
48- UseIDER : false ,
49- UseSOL : false ,
50- UseSafeMode : false ,
51- UserPasswordBypass : false ,
52- WinREBootEnabled : false ,
21+ BIOSPause : false ,
22+ BIOSSetup : false ,
23+ BootMediaIndex : 0 ,
24+ ConfigurationDataReset : false ,
25+ ElementName : "Intel(r) AMT Boot Configuration Settings" ,
26+ EnforceSecureBoot : false ,
27+ FirmwareVerbosity : 0 ,
28+ ForcedProgressEvents : false ,
29+ IDERBootDevice : 0 ,
30+ InstanceID : "Intel(r) AMT:BootSettingData 0" ,
31+ LockKeyboard : false ,
32+ LockPowerButton : false ,
33+ LockResetButton : false ,
34+ LockSleepButton : false ,
35+ OwningEntity : "Intel(r) AMT" ,
36+ PlatformErase : false ,
37+ RSEPassword : "" ,
38+ ReflashBIOS : false ,
39+ SecureErase : false ,
40+ UefiBootNumberOfParams : 0 ,
41+ UseIDER : false ,
42+ UseSOL : false ,
43+ UseSafeMode : false ,
44+ UserPasswordBypass : false ,
5345}
5446
5547func TestPositiveAMT_BootSettingData (t * testing.T ) {
@@ -87,7 +79,7 @@ func TestPositiveAMT_BootSettingData(t *testing.T) {
8779 XMLName : xml.Name {Space : message .XMLBodySpace , Local : "Body" },
8880 BootSettingDataGetResponse : BootSettingDataResponse {
8981 XMLName : xml.Name {Space : "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_BootSettingData" , Local : "AMT_BootSettingData" },
90- BIOSLastStatus : []int {2 , 0 },
82+ BIOSLastStatus : []uint16 {2 , 0 },
9183 BIOSSetup : false ,
9284 BIOSPause : false ,
9385 BootMediaIndex : 0 ,
@@ -158,7 +150,7 @@ func TestPositiveAMT_BootSettingData(t *testing.T) {
158150 BootSettingDataItems : []BootSettingDataResponse {
159151 {
160152 XMLName : xml.Name {Space : "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_BootSettingData" , Local : "AMT_BootSettingData" },
161- BIOSLastStatus : []int {2 , 0 },
153+ BIOSLastStatus : []uint16 {2 , 0 },
162154 BIOSSetup : false ,
163155 BIOSPause : false ,
164156 BootMediaIndex : 0 ,
@@ -201,7 +193,7 @@ func TestPositiveAMT_BootSettingData(t *testing.T) {
201193 AMTBootSettingData ,
202194 wsmantesting .Put ,
203195 fmt .Sprintf (
204- `<h:AMT_BootSettingData xmlns:h="%sAMT_BootSettingData"><h:BIOSLastStatus>2</h:BIOSLastStatus><h:BIOSLastStatus>0</h:BIOSLastStatus><h:BIOSPause>false</h:BIOSPause><h:BIOSSetup>false</h:BIOSSetup><h:BootMediaIndex>0</h:BootMediaIndex><h:BootguardStatus>127</h:BootguardStatus><h:ConfigurationDataReset>false</h:ConfigurationDataReset><h:ElementName>Intel(r) AMT Boot Configuration Settings</h:ElementName><h:EnforceSecureBoot>false</h:EnforceSecureBoot><h:FirmwareVerbosity>0</h:FirmwareVerbosity><h:ForcedProgressEvents>false</h:ForcedProgressEvents><h:IDERBootDevice>0</h:IDERBootDevice><h:InstanceID>Intel(r) AMT:BootSettingData 0</h:InstanceID><h:LockKeyboard>false</h:LockKeyboard><h:LockPowerButton>false</h:LockPowerButton><h:LockResetButton>false</h:LockResetButton><h:LockSleepButton>false</h:LockSleepButton><h:OptionsCleared>true</h:OptionsCleared><h:OwningEntity>Intel(r) AMT</h:OwningEntity><h:PlatformErase>false</h:PlatformErase><h:RPEEnabled>false</h:RPEEnabled><h:RSEPassword></h:RSEPassword><h:ReflashBIOS>false</h:ReflashBIOS><h:SecureBootControlEnabled>false</h:SecureBootControlEnabled><h:SecureErase>false</h:SecureErase><h:UEFIHTTPSBootEnabled>false</h:UEFIHTTPSBootEnabled><h:UEFILocalPBABootEnabled>false</h:UEFILocalPBABootEnabled><h:UefiBootNumberOfParams>0</h:UefiBootNumberOfParams><h:UseIDER>false</h:UseIDER><h:UseSOL>false</h:UseSOL><h:UseSafeMode>false</h:UseSafeMode><h:UserPasswordBypass>false</h:UserPasswordBypass><h:WinREBootEnabled>false</h:WinREBootEnabled></h:AMT_BootSettingData>` ,
196+ `<h:AMT_BootSettingData xmlns:h="%sAMT_BootSettingData"><h:BIOSPause>false</h:BIOSPause><h:BIOSSetup>false</h:BIOSSetup><h:BootMediaIndex>0</h:BootMediaIndex><h:ConfigurationDataReset>false</h:ConfigurationDataReset><h:ElementName>Intel(r) AMT Boot Configuration Settings</h:ElementName><h:EnforceSecureBoot>false</h:EnforceSecureBoot><h:FirmwareVerbosity>0</h:FirmwareVerbosity><h:ForcedProgressEvents>false</h:ForcedProgressEvents><h:IDERBootDevice>0</h:IDERBootDevice><h:InstanceID>Intel(r) AMT:BootSettingData 0</h:InstanceID><h:LockKeyboard>false</h:LockKeyboard><h:LockPowerButton>false</h:LockPowerButton><h:LockResetButton>false</h:LockResetButton><h:LockSleepButton>false</h:LockSleepButton><h:OwningEntity>Intel(r) AMT</h:OwningEntity><h:PlatformErase>false</h:PlatformErase><h:RSEPassword></h:RSEPassword><h:ReflashBIOS>false</h:ReflashBIOS><h:SecureErase>false</h:SecureErase><h:UefiBootParametersArray></h:UefiBootParametersArray><h:UefiBootNumberOfParams>0</h:UefiBootNumberOfParams><h:UseIDER>false</h:UseIDER><h:UseSOL>false</h:UseSOL><h:UseSafeMode>false</h:UseSafeMode><h:UserPasswordBypass>false</h:UserPasswordBypass></h:AMT_BootSettingData>` ,
205197 "http://intel.com/wbem/wscim/1/amt-schema/1/" ),
206198 func () (Response , error ) {
207199 client .CurrentMessage = wsmantesting .CurrentMessagePut
@@ -212,7 +204,7 @@ func TestPositiveAMT_BootSettingData(t *testing.T) {
212204 XMLName : xml.Name {Space : message .XMLBodySpace , Local : "Body" },
213205 BootSettingDataGetResponse : BootSettingDataResponse {
214206 XMLName : xml.Name {Space : "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_BootSettingData" , Local : "AMT_BootSettingData" },
215- BIOSLastStatus : []int {2 , 0 },
207+ BIOSLastStatus : []uint16 {2 , 0 },
216208 BIOSSetup : false ,
217209 BIOSPause : false ,
218210 BootMediaIndex : 0 ,
@@ -243,7 +235,6 @@ func TestPositiveAMT_BootSettingData(t *testing.T) {
243235 UseSOL : false ,
244236 UseSafeMode : false ,
245237 UserPasswordBypass : false ,
246- WinREBootEnabled : false ,
247238 },
248239 },
249240 },
@@ -322,8 +313,8 @@ func TestNegativeAMT_BootSettingData(t *testing.T) {
322313 UEFIHTTPSBootEnabled : false ,
323314 SecureBootControlEnabled : false ,
324315 BootguardStatus : 127 ,
325- BIOSLastStatus : []int {0 , 0 },
326- UEFIBootParametersArray : []int {0 },
316+ BIOSLastStatus : []uint16 {0 , 0 },
317+ UEFIBootParametersArray : []uint8 {0 },
327318 UefiBootNumberOfParams : 0 ,
328319 RPEEnabled : false ,
329320 PlatformErase : false ,
@@ -394,8 +385,8 @@ func TestNegativeAMT_BootSettingData(t *testing.T) {
394385 UEFIHTTPSBootEnabled : false ,
395386 SecureBootControlEnabled : false ,
396387 BootguardStatus : 127 ,
397- BIOSLastStatus : []int {0 , 0 },
398- UEFIBootParametersArray : []int {0 },
388+ BIOSLastStatus : []uint16 {0 , 0 },
389+ UEFIBootParametersArray : []uint8 {0 },
399390 UefiBootNumberOfParams : 0 ,
400391 RPEEnabled : false ,
401392 PlatformErase : false ,
0 commit comments