Skip to content

Commit

Permalink
Add UT for powervs_cluster file (kubernetes-sigs#1912)
Browse files Browse the repository at this point in the history
* Add UT for Get methods

* Add UT for ReconcilePowerVSServiceInstance method
  • Loading branch information
Karthik-K-N authored Sep 17, 2024
1 parent 9dcb066 commit 2c25714
Show file tree
Hide file tree
Showing 2 changed files with 1,418 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/scope/powervs_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ func (s *PowerVSClusterScope) checkServiceInstanceState(instance resourcecontrol
case string(infrav1beta2.ServiceInstanceStateFailed):
return false, fmt.Errorf("PowerVS service instance is in failed state")
}
return false, nil
return false, fmt.Errorf("PowerVS service instance is in %s state", *instance.State)
}

// checkServiceInstance checks PowerVS service instance exist in cloud.
Expand Down
Loading

0 comments on commit 2c25714

Please sign in to comment.