@keycloak/keycloak-admin-client 16.0.0-dev.53 → 16.0.0-dev.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,6 +102,22 @@ await kcAdminClient.auth(credentials);
|
|
|
102
102
|
setInterval(() => kcAdminClient.auth(credentials), 58 * 1000); // 58 seconds
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
+
## Building and running the tests
|
|
106
|
+
To build the source do a build:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
npm run build
|
|
110
|
+
```
|
|
111
|
+
Start keycloak in a docker container or run it locally:
|
|
112
|
+
```bash
|
|
113
|
+
docker run --name keycloak -d -p 127.0.0.1:8080:8080 -e KEYCLOAK_USER=wwwy3y3 -e KEYCLOAK_PASSWORD=wwwy3y3 quay.io/keycloak/keycloak:latest
|
|
114
|
+
```
|
|
115
|
+
If you started your container manually make sure there is an admin user named www3y3 with password www3y3 as admin on master realm.
|
|
116
|
+
Then start the tests with:
|
|
117
|
+
```bash
|
|
118
|
+
npm run test
|
|
119
|
+
```
|
|
120
|
+
|
|
105
121
|
## Supported APIs
|
|
106
122
|
|
|
107
123
|
### [Realm admin](https://www.keycloak.org/docs-api/11.0/rest-api/index.html#_realms_admin_resource)
|