Fix tests for AuthClient

Added meta.name to test to avoid, missing error
This commit is contained in:
Vivek Patel
2023-02-22 14:53:29 +05:30
parent 76d8212e10
commit e8b6117fe5
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -95,6 +95,7 @@ func TestAuthClientCreate(t *testing.T) {
h.apiInit().
Post("/auth/clients/").
Header("Accept", "application/json").
FormData("meta", fmt.Sprintf(`{"name": "%s"}`, rs())).
FormData("handle", handle).
FormData("scope", "profile api").
Expect(t).
@@ -112,6 +113,7 @@ func TestAuthClientUpdate(t *testing.T) {
h.clearAuthClients()
client := h.repoMakeAuthClient()
client.Meta = &types.AuthClientMeta{Name: rs()}
client.Handle = rs()
helpers.AllowMe(h, types.AuthClientRbacResource(0), "update")