Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 3f53487

Browse files
committed
Update unittests
Signed-off-by: Matej Feder <[email protected]>
1 parent 4bd0465 commit 3f53487

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

internal/controller/openstacknodeimagerelease_controller_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ func HandleImageCreationSuccessfully(t *testing.T) { //nolint: gocritic
421421
"id": "test_id",
422422
"name": "test_image",
423423
"disk_format": "qcow2",
424-
"container_format": "bare"
424+
"container_format": "bare",
425+
"architecture": "x86_64",
426+
"hw_disk_bus": "scsi"
425427
}`)
426428

427429
w.Header().Add("Content-Type", "application/json")
@@ -433,7 +435,9 @@ func HandleImageCreationSuccessfully(t *testing.T) { //nolint: gocritic
433435
"disk_format": "qcow2",
434436
"visibility": "shared",
435437
"min_disk": 0,
436-
"id": "test_id"
438+
"id": "test_id",
439+
"architecture": "x86_64",
440+
"hw_disk_bus": "scsi"
437441
}`)
438442
})
439443
}
@@ -449,6 +453,7 @@ func TestCreateImage(t *testing.T) {
449453
Name: "test_image",
450454
DiskFormat: "qcow2",
451455
ContainerFormat: "bare",
456+
Properties: map[string]string{"architecture": "x86_64", "hw_disk_bus": "scsi"},
452457
}
453458

454459
fakeClient := fakeclient.ServiceClient()
@@ -462,7 +467,7 @@ func TestCreateImage(t *testing.T) {
462467
ContainerFormat: "bare",
463468
DiskFormat: "qcow2",
464469
Visibility: "shared",
465-
Properties: map[string]interface{}{},
470+
Properties: map[string]any{"architecture": "x86_64", "hw_disk_bus": "scsi"},
466471
}
467472

468473
assert.NoError(t, err)

0 commit comments

Comments
 (0)