Skip to content

Commit

Permalink
tests: The 2 urls should answer correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Oct 27, 2023
1 parent c72e483 commit 5e1993a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions providers/asrockrack/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,7 @@ func bmcFirmwareUpgrade(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)

// 2. upload firmware
case "/api/maintenance/firmware":
// make it fail to test the other URL
w.WriteHeader(http.StatusBadRequest)
case "/api/maintenance/firmware/firmware":
case "/api/maintenance/firmware", "/api/maintenance/firmware/firmware":

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

0 comments on commit 5e1993a

Please sign in to comment.