@@ -104,7 +104,7 @@ func (a *apiClientMocked) GetServerExecute(_ context.Context, _, _ string) (*iaa
104104 a .returnResizing = false
105105 return & iaas.Server {
106106 Id : utils .Ptr ("sid" ),
107- Status : utils .Ptr (ResizingStatus ),
107+ Status : utils .Ptr (ServerResizingStatus ),
108108 }, nil
109109 }
110110
@@ -213,7 +213,7 @@ func TestCreateNetworkAreaWaitHandler(t *testing.T) {
213213 {
214214 desc : "create_succeeded" ,
215215 getFails : false ,
216- resourceState : CreatedStatus ,
216+ resourceState : CreateSuccess ,
217217 wantErr : false ,
218218 wantResp : true ,
219219 },
@@ -272,7 +272,7 @@ func TestUpdateNetworkAreaWaitHandler(t *testing.T) {
272272 {
273273 desc : "update_succeeded" ,
274274 getFails : false ,
275- resourceState : CreatedStatus ,
275+ resourceState : CreateSuccess ,
276276 wantErr : false ,
277277 wantResp : true ,
278278 },
@@ -392,7 +392,7 @@ func TestCreateNetworkWaitHandler(t *testing.T) {
392392 {
393393 desc : "create_succeeded" ,
394394 getFails : false ,
395- resourceState : CreatedStatus ,
395+ resourceState : CreateSuccess ,
396396 wantErr : false ,
397397 wantResp : true ,
398398 },
@@ -451,7 +451,7 @@ func TestUpdateNetworkWaitHandler(t *testing.T) {
451451 {
452452 desc : "update_succeeded" ,
453453 getFails : false ,
454- resourceState : CreatedStatus ,
454+ resourceState : CreateSuccess ,
455455 wantErr : false ,
456456 wantResp : true ,
457457 },
@@ -571,7 +571,7 @@ func TestCreateVolumeWaitHandler(t *testing.T) {
571571 {
572572 desc : "create_succeeded" ,
573573 getFails : false ,
574- resourceState : AvailableStatus ,
574+ resourceState : VolumeAvailableStatus ,
575575 wantErr : false ,
576576 wantResp : true ,
577577 },
@@ -698,7 +698,7 @@ func TestCreateServerWaitHandler(t *testing.T) {
698698 {
699699 desc : "create_succeeded" ,
700700 getFails : false ,
701- resourceState : ActiveStatus ,
701+ resourceState : ServerActiveStatus ,
702702 wantErr : false ,
703703 wantResp : true ,
704704 },
@@ -827,15 +827,15 @@ func TestResizeServerWaitHandler(t *testing.T) {
827827 desc : "resize_succeeded" ,
828828 getFails : false ,
829829 returnResizing : true ,
830- finalResourceState : ActiveStatus ,
830+ finalResourceState : ServerActiveStatus ,
831831 wantErr : false ,
832832 wantResp : true ,
833833 },
834834 {
835835 desc : "resizing_status_is_never_returned" ,
836836 getFails : false ,
837837 returnResizing : false ,
838- finalResourceState : ActiveStatus ,
838+ finalResourceState : ServerActiveStatus ,
839839 wantErr : true ,
840840 wantResp : true ,
841841 },
@@ -903,7 +903,7 @@ func TestStartServerWaitHandler(t *testing.T) {
903903 {
904904 desc : "start_succeeded" ,
905905 getFails : false ,
906- resourceState : ActiveStatus ,
906+ resourceState : ServerActiveStatus ,
907907 wantErr : false ,
908908 wantResp : true ,
909909 },
@@ -969,7 +969,7 @@ func TestStopServerWaitHandler(t *testing.T) {
969969 {
970970 desc : "stop_succeeded" ,
971971 getFails : false ,
972- resourceState : InactiveStatus ,
972+ resourceState : ServerInactiveStatus ,
973973 wantErr : false ,
974974 wantResp : true ,
975975 },
@@ -1035,7 +1035,7 @@ func TestDeallocateServerWaitHandler(t *testing.T) {
10351035 {
10361036 desc : "deallocate_succeeded" ,
10371037 getFails : false ,
1038- resourceState : DeallocatedStatus ,
1038+ resourceState : ServerDeallocatedStatus ,
10391039 wantErr : false ,
10401040 wantResp : true ,
10411041 },
@@ -1101,7 +1101,7 @@ func TestRescueServerWaitHandler(t *testing.T) {
11011101 {
11021102 desc : "rescue_succeeded" ,
11031103 getFails : false ,
1104- resourceState : RescueStatus ,
1104+ resourceState : ServerRescueStatus ,
11051105 wantErr : false ,
11061106 wantResp : true ,
11071107 },
@@ -1167,7 +1167,7 @@ func TestUnrescueServerWaitHandler(t *testing.T) {
11671167 {
11681168 desc : "unrescue_succeeded" ,
11691169 getFails : false ,
1170- resourceState : ActiveStatus ,
1170+ resourceState : ServerActiveStatus ,
11711171 wantErr : false ,
11721172 wantResp : true ,
11731173 },
@@ -1234,24 +1234,24 @@ func TestProjectRequestWaitHandler(t *testing.T) {
12341234 {
12351235 desc : "create_succeeded" ,
12361236 getFails : false ,
1237- requestAction : CreateAction ,
1238- requestState : CreatedStatus ,
1237+ requestAction : RequestCreateAction ,
1238+ requestState : RequestCreatedStatus ,
12391239 wantErr : false ,
12401240 wantResp : true ,
12411241 },
12421242 {
12431243 desc : "update_succeeded" ,
12441244 getFails : false ,
1245- requestAction : UpdateAction ,
1246- requestState : UpdatedStatus ,
1245+ requestAction : RequestUpdateAction ,
1246+ requestState : RequestUpdatedStatus ,
12471247 wantErr : false ,
12481248 wantResp : true ,
12491249 },
12501250 {
12511251 desc : "delete_succeeded" ,
12521252 getFails : false ,
1253- requestAction : DeleteAction ,
1254- requestState : DeletedStatus ,
1253+ requestAction : RequestDeleteAction ,
1254+ requestState : RequestDeletedStatus ,
12551255 wantErr : false ,
12561256 wantResp : true ,
12571257 },
@@ -1265,7 +1265,7 @@ func TestProjectRequestWaitHandler(t *testing.T) {
12651265 {
12661266 desc : "error_status" ,
12671267 getFails : false ,
1268- requestAction : CreateAction ,
1268+ requestAction : RequestCreateAction ,
12691269 requestState : ErrorStatus ,
12701270 wantErr : true ,
12711271 wantResp : true ,
@@ -1280,7 +1280,7 @@ func TestProjectRequestWaitHandler(t *testing.T) {
12801280 {
12811281 desc : "timeout" ,
12821282 getFails : false ,
1283- requestAction : CreateAction ,
1283+ requestAction : RequestCreateAction ,
12841284 requestState : "ANOTHER Status" ,
12851285 wantErr : true ,
12861286 wantResp : true ,
@@ -1444,7 +1444,7 @@ func TestUploadImageWaitHandler(t *testing.T) {
14441444 {
14451445 desc : "upload_succeeded" ,
14461446 getFails : false ,
1447- resourceState : AvailableStatus ,
1447+ resourceState : ImageAvailableStatus ,
14481448 wantErr : false ,
14491449 wantResp : true ,
14501450 },
@@ -1556,7 +1556,7 @@ func TestCreateBackupWaitHandler(t *testing.T) {
15561556 {
15571557 desc : "create_succeeded" ,
15581558 getFails : false ,
1559- resourceState : AvailableStatus ,
1559+ resourceState : BackupAvailableStatus ,
15601560 wantErr : false ,
15611561 wantResp : true ,
15621562 },
@@ -1673,7 +1673,7 @@ func TestRestoreBackupWaitHandler(t *testing.T) {
16731673 {
16741674 desc : "restore_succeeded" ,
16751675 getFails : false ,
1676- resourceState : AvailableStatus ,
1676+ resourceState : BackupAvailableStatus ,
16771677 wantErr : false ,
16781678 wantResp : true ,
16791679 },
@@ -1738,7 +1738,7 @@ func TestCreateSnapshotWaitHandler(t *testing.T) {
17381738 {
17391739 desc : "create_succeeded" ,
17401740 getFails : false ,
1741- resourceState : CreatedStatus ,
1741+ resourceState : CreateSuccess ,
17421742 wantErr : false ,
17431743 wantResp : true ,
17441744 },
@@ -1803,7 +1803,7 @@ func TestDeleteSnapshotWaitHandler(t *testing.T) {
18031803 {
18041804 desc : "delete_succeeded" ,
18051805 getFails : false ,
1806- resourceState : DeletedStatus ,
1806+ resourceState : DeleteSuccess ,
18071807 wantErr : false ,
18081808 wantResp : true ,
18091809 },
0 commit comments