Skip to content

Commit

Permalink
add os vendor to switch service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Oct 17, 2024
1 parent 5693be6 commit be7314a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/metal-api/internal/service/switch-service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestRegisterSwitch(t *testing.T) {
PartitionID: "1",
SwitchBase: v1.SwitchBase{
RackID: "1",
OS: &v1.SwitchOS{Vendor: metal.SwitchOSVendorCumulus},
},
}
js, err := json.Marshal(createRequest)
Expand Down Expand Up @@ -89,6 +90,7 @@ func TestRegisterExistingSwitch(t *testing.T) {
PartitionID: testdata.Switch2.PartitionID,
SwitchBase: v1.SwitchBase{
RackID: testdata.Switch2.RackID,
OS: &v1.SwitchOS{Vendor: metal.SwitchOSVendorCumulus},
},
}
js, err := json.Marshal(createRequest)
Expand Down Expand Up @@ -134,6 +136,7 @@ func TestRegisterExistingSwitchErrorModifyingNics(t *testing.T) {
PartitionID: testdata.Switch1.PartitionID,
SwitchBase: v1.SwitchBase{
RackID: testdata.Switch1.RackID,
OS: &v1.SwitchOS{Vendor: metal.SwitchOSVendorCumulus},
},
}
js, err := json.Marshal(createRequest)
Expand Down Expand Up @@ -163,6 +166,7 @@ func TestReplaceSwitch(t *testing.T) {
PartitionID: testdata.Switch2.PartitionID,
SwitchBase: v1.SwitchBase{
RackID: testdata.Switch2.RackID,
OS: &v1.SwitchOS{Vendor: metal.SwitchOSVendorCumulus},
},
}
js, err := json.Marshal(createRequest)
Expand Down

0 comments on commit be7314a

Please sign in to comment.