Skip to content

Commit 2c25714

Browse files
authored
Add UT for powervs_cluster file (#1912)
* Add UT for Get methods * Add UT for ReconcilePowerVSServiceInstance method
1 parent 9dcb066 commit 2c25714

File tree

2 files changed

+1418
-1
lines changed

2 files changed

+1418
-1
lines changed

cloud/scope/powervs_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ func (s *PowerVSClusterScope) checkServiceInstanceState(instance resourcecontrol
779779
case string(infrav1beta2.ServiceInstanceStateFailed):
780780
return false, fmt.Errorf("PowerVS service instance is in failed state")
781781
}
782-
return false, nil
782+
return false, fmt.Errorf("PowerVS service instance is in %s state", *instance.State)
783783
}
784784

785785
// checkServiceInstance checks PowerVS service instance exist in cloud.

0 commit comments

Comments
 (0)