Skip to content

Commit 733b885

Browse files
Resolve merge conflicts with main
1 parent e5343e4 commit 733b885

File tree

2 files changed

+21
-30
lines changed

2 files changed

+21
-30
lines changed

bmc/bmc.go

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ const (
2525
ManufacturerHPE Manufacturer = "HPE"
2626
)
2727

28+
type SettingAttributeValueTypes string
29+
30+
const (
31+
TypeInteger SettingAttributeValueTypes = "integer"
32+
TypeString SettingAttributeValueTypes = "string"
33+
TypeEnumerations SettingAttributeValueTypes = "enumeration"
34+
)
35+
2836
// BMC defines an interface for interacting with a Baseboard Management Controller.
2937
type BMC interface {
3038
// PowerOn powers on the system.
@@ -98,22 +106,6 @@ type BMC interface {
98106
WaitForServerPowerState(ctx context.Context, systemUUID string, powerState redfish.PowerState) error
99107
}
100108

101-
type Manufacturer string
102-
103-
const (
104-
ManufacturerDell Manufacturer = "Dell Inc."
105-
ManufacturerLenovo Manufacturer = "Lenovo"
106-
ManufacturerHPE Manufacturer = "HPE"
107-
)
108-
109-
type SettingAttributeValueTypes string
110-
111-
const (
112-
TypeInteger SettingAttributeValueTypes = "integer"
113-
TypeString SettingAttributeValueTypes = "string"
114-
TypeEnumerations SettingAttributeValueTypes = "enumeration"
115-
)
116-
117109
type OEMManagerInterface interface {
118110
GetOEMBMCSettingAttribute(attributes []string) (redfish.SettingsAttributes, error)
119111
GetBMCPendingAttributeValues() (redfish.SettingsAttributes, error)
@@ -122,6 +114,19 @@ type OEMManagerInterface interface {
122114
UpdateBMCAttributesApplyAt(attrs redfish.SettingsAttributes, applyTime common.ApplyTime) error
123115
}
124116

117+
type OEMInterface interface {
118+
GetUpdateRequestBody(
119+
parameters *redfish.SimpleUpdateParameters,
120+
) *oem.SimpleUpdateRequestBody
121+
GetUpdateTaskMonitorURI(
122+
response *http.Response,
123+
) (string, error)
124+
GetTaskMonitorDetails(
125+
ctx context.Context,
126+
taskMonitorResponse *http.Response,
127+
) (*redfish.Task, error)
128+
}
129+
125130
type Entity struct {
126131
// ID uniquely identifies the resource.
127132
ID string `json:"Id"`
@@ -312,19 +317,6 @@ func NewOEMManager(ooem *redfish.Manager, service *gofish.Service) (OEMManagerIn
312317
return OEMManager, nil
313318
}
314319

315-
type OEMInterface interface {
316-
GetUpdateRequestBody(
317-
parameters *redfish.SimpleUpdateParameters,
318-
) *oem.SimpleUpdateRequestBody
319-
GetUpdateTaskMonitorURI(
320-
response *http.Response,
321-
) (string, error)
322-
GetTaskMonitorDetails(
323-
ctx context.Context,
324-
taskMonitorResponse *http.Response,
325-
) (*redfish.Task, error)
326-
}
327-
328320
func NewOEM(manufacturer string, service *gofish.Service) (OEMInterface, error) {
329321
var oemintf OEMInterface
330322
switch manufacturer {

internal/controller/biosversion_controller_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121

2222
var _ = Describe("BIOSVersion Controller", func() {
2323
ns := SetupTest()
24-
ns.Name = "default"
2524

2625
var (
2726
server *metalv1alpha1.Server

0 commit comments

Comments
 (0)