Skip to content

Commit

Permalink
asrock: Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Oct 30, 2023
1 parent 029809e commit e63714c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/asrockrack/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func mockASRockBMC() *httptest.Server {
// fw update endpoints - in order of invocation
handler.HandleFunc("/api/maintenance/flash", bmcFirmwareUpgrade)
handler.HandleFunc("/api/maintenance/firmware", bmcFirmwareUpgrade)
handler.HandleFunc("/api/maintenance/firmware/firmware", bmcFirmwareUpgrade)
handler.HandleFunc("/api/maintenance/firmware/verification", bmcFirmwareUpgrade)
handler.HandleFunc("/api/maintenance/firmware/upgrade", bmcFirmwareUpgrade)
handler.HandleFunc("/api/maintenance/firmware/flash-progress", bmcFirmwareUpgrade)
Expand Down Expand Up @@ -211,7 +212,7 @@ func bmcFirmwareUpgrade(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)

// 2. upload firmware
case "/api/maintenance/firmware":
case "/api/maintenance/firmware", "/api/maintenance/firmware/firmware":

// validate flash mode set
if !fwUpgradeState.FlashModeSet {
Expand Down

0 comments on commit e63714c

Please sign in to comment.