Skip to content

Commit 2b29eac

Browse files
Davinciblekangasta
authored andcommitted
fix(server): add storage address to create server tests
1 parent 4f7c8b9 commit 2b29eac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/commands/server/create_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func TestCreateServer(t *testing.T) {
115115
LoginUser: &request.LoginUser{CreatePassword: "yes"},
116116
StorageDevices: request.CreateServerStorageDeviceSlice{request.CreateServerStorageDevice{
117117
Action: "clone",
118-
Address: "",
118+
Address: "virtio",
119119
Storage: StorageDef.UUID,
120120
Title: "example.com-OS",
121121
Size: 50,
@@ -145,7 +145,7 @@ func TestCreateServer(t *testing.T) {
145145
LoginUser: &request.LoginUser{CreatePassword: "yes"},
146146
StorageDevices: request.CreateServerStorageDeviceSlice{request.CreateServerStorageDevice{
147147
Action: "clone",
148-
Address: "",
148+
Address: "virtio",
149149
Storage: Storage1.UUID,
150150
Title: "example.com-OS",
151151
Size: 100,
@@ -201,7 +201,7 @@ func TestCreateServer(t *testing.T) {
201201
LoginUser: &request.LoginUser{CreatePassword: "yes", Username: "johndoe"},
202202
StorageDevices: request.CreateServerStorageDeviceSlice{request.CreateServerStorageDevice{
203203
Action: "clone",
204-
Address: "",
204+
Address: "virtio",
205205
Storage: StorageDef.UUID,
206206
Title: "example.com-OS",
207207
Size: 10,
@@ -233,7 +233,7 @@ func TestCreateServer(t *testing.T) {
233233
StorageDevices: request.CreateServerStorageDeviceSlice{
234234
request.CreateServerStorageDevice{
235235
Action: "clone",
236-
Address: "",
236+
Address: "virtio",
237237
Storage: StorageDef.UUID,
238238
Title: "example.com-OS",
239239
Size: 50,
@@ -289,7 +289,7 @@ func TestCreateServer(t *testing.T) {
289289
LoginUser: &request.LoginUser{CreatePassword: "yes"},
290290
StorageDevices: request.CreateServerStorageDeviceSlice{request.CreateServerStorageDevice{
291291
Action: "clone",
292-
Address: "",
292+
Address: "virtio",
293293
Storage: StorageDef.UUID,
294294
Title: "example.com-OS",
295295
Size: 50,

0 commit comments

Comments
 (0)