mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-20 04:37:05 +00:00
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1m28s
Post / coverage (push) Failing after 26m43s
Post / images (amd64) (push) Failing after 6m50s
Post / images (arm64) (push) Failing after 6m49s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Close stale issues and PRs / stale (push) Successful in 35s
* Adding managedcluster identity creator role arn Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com> * Addressing review comments Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com> --------- Signed-off-by: Gaurav Jaswal <jaswalkiranavtar@gmail.com> Co-authored-by: Amrutha <amrutha.hari12@gmail.com>
15 lines
345 B
Go
15 lines
345 B
Go
package helpers
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetAwsAccountIdAndClusterName(t *testing.T) {
|
|
|
|
awsAccountId, clusterName := GetAwsAccountIdAndClusterName("arn:aws:eks:us-west-2:123456789012:cluster/hub-cluster")
|
|
if awsAccountId != "123456789012" && clusterName != "hub-cluster" {
|
|
t.Errorf("awsAccountId and cluster id are not valid")
|
|
}
|
|
|
|
}
|