Skip to content

Commit

Permalink
fix unit test expecting hardcoded values
Browse files Browse the repository at this point in the history
  • Loading branch information
karolgorc committed Aug 16, 2024
1 parent 4c5ba3e commit d2f04f4
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ func TestComputeRegionInstanceTemplate_reorderDisks(t *testing.T) {
cDeviceName := map[string]interface{}{
"device_name": "disk-1",
}
cScratch := map[string]interface{}{
cScratchScsi := map[string]interface{}{
"type": "SCRATCH",
"interface": "SCSI",
}
cSource := map[string]interface{}{
"source": "disk-source",
Expand Down Expand Up @@ -82,7 +83,7 @@ func TestComputeRegionInstanceTemplate_reorderDisks(t *testing.T) {
aBoot, aScratchNvme, aSource, aScratchScsi, aFallThrough, aDeviceName,
},
ConfigDisks: []interface{}{
cBoot, cFallThrough, cDeviceName, cScratch, cSource, cScratchNvme,
cBoot, cFallThrough, cDeviceName, cScratchScsi, cSource, cScratchNvme,
},
ExpectedResult: []map[string]interface{}{
aBoot, aFallThrough, aDeviceName, aScratchScsi, aSource, aScratchNvme,
Expand All @@ -93,7 +94,7 @@ func TestComputeRegionInstanceTemplate_reorderDisks(t *testing.T) {
aBoot, aNoMatch, aScratchNvme, aScratchScsi, aFallThrough, aDeviceName,
},
ConfigDisks: []interface{}{
cBoot, cFallThrough, cDeviceName, cScratch, cSource, cScratchNvme,
cBoot, cFallThrough, cDeviceName, cScratchScsi, cSource, cScratchNvme,
},
ExpectedResult: []map[string]interface{}{
aBoot, aFallThrough, aDeviceName, aScratchScsi, aScratchNvme, aNoMatch,
Expand All @@ -104,7 +105,7 @@ func TestComputeRegionInstanceTemplate_reorderDisks(t *testing.T) {
aBoot, aScratchNvme, aFallThrough, aSource, aScratchScsi, aFallThrough2, aDeviceName,
},
ConfigDisks: []interface{}{
cBoot, cFallThrough, cDeviceName, cScratch, cFallThrough, cSource, cScratchNvme,
cBoot, cFallThrough, cDeviceName, cScratchScsi, cFallThrough, cSource, cScratchNvme,
},
ExpectedResult: []map[string]interface{}{
aBoot, aFallThrough, aDeviceName, aScratchScsi, aFallThrough2, aSource, aScratchNvme,
Expand Down

0 comments on commit d2f04f4

Please sign in to comment.