SMQ-2987 - Fix view domain roles using roleID (#2986)
Continuous Delivery / Build and Push (push) Has been cancelled
Check the consistency of generated files / check-generated-files (push) Has been cancelled
Check License Header / check-license (push) Has been cancelled
Deploy GitHub Pages / swagger-ui (push) Has been cancelled

Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
This commit is contained in:
Steve Munene
2025-06-30 20:09:21 +03:00
committed by GitHub
parent 668013cbad
commit 9a194a86df
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ var cmdDomainRoles = []cobra.Command{
logJSONCmd(*cmd, rs)
return
}
r, err := sdk.DomainRole(cmd.Context(), args[0], args[1], args[2])
r, err := sdk.DomainRole(cmd.Context(), args[1], args[0], args[2])
if err != nil {
logErrorCmd(*cmd, err)
return
+1 -1
View File
@@ -631,7 +631,7 @@ func TestGetDomainRoleCmd(t *testing.T) {
for _, tc := range cases {
t.Run(tc.desc, func(t *testing.T) {
sdkCall := sdkMock.On("DomainRole", mock.Anything, tc.args[0], tc.args[1], tc.args[2]).Return(tc.role, tc.sdkErr)
sdkCall := sdkMock.On("DomainRole", mock.Anything, tc.args[1], tc.args[0], tc.args[2]).Return(tc.role, tc.sdkErr)
out := executeCommand(t, rootCmd, append([]string{"roles", "get"}, tc.args...)...)
switch tc.logType {