This repository was archived by the owner on Dec 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments