Skip to content

Commit

Permalink
Merge pull request #2271 from AkashKanni/account-role-fix
Browse files Browse the repository at this point in the history
OCM-9769 | test: fix Add timeout after creating account-roles
  • Loading branch information
openshift-merge-bot[bot] authored Jul 23, 2024
2 parents 9ff1205 + 054b45f commit bd912b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/utils/exec/rosacli/ocm_resource_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"strings"
"time"

. "github.com/openshift/rosa/tests/utils/log"
)
Expand Down Expand Up @@ -336,7 +337,9 @@ func (url UserRoleList) UserRole(prefix string, ocmAccountUsername string) (user
func (ors *ocmResourceService) CreateAccountRole(flags ...string) (bytes.Buffer, error) {
createAccountRole := ors.client.Runner
createAccountRole = createAccountRole.Cmd("create", "account-roles").CmdFlags(flags...)
return createAccountRole.Run()
AccountRoles, err := createAccountRole.Run()
time.Sleep(10 * time.Second)
return AccountRoles, err
}

// Pasrse the result of 'rosa list account-roles' to AccountRoleList struct
Expand Down

0 comments on commit bd912b3

Please sign in to comment.