keycloak-nodejs-admin-client icon indicating copy to clipboard operation
keycloak-nodejs-admin-client copied to clipboard

group.spec.ts does not contain example of how to add attributes while creating groups

Open siddisking opened this issue 4 years ago • 1 comments

Description

Just started using this library to manage our REST api requests.

Our requirement was to create a group with some attributes but there was no example for the same.

The official documentation mentions the key attribute but representation of the same is missing

After going through QA on stackoverflow i found the representation of attribute map is something like this

kcAdminClient.groups.create({ name: 'Some Group', attributes: { someAttr1: ["val1"], someAttr2: ["val2"] } });

Can we add a testcase for the same to the group.spec.ts ?

Discussion

No response

Motivation

No response

Details

No response

siddisking avatar Jan 05 '22 10:01 siddisking

I am all for adding more tests. Feel free to open up a PR for this :+1:

jonkoops avatar Jan 07 '22 11:01 jonkoops