smokeTest — PASSED (exit 0)
SHA-256: c6dfaad50764a9e24aea2be20bc986e072dfa8a134de201692d5943f176fa739
resetting the throw-away database container hsadmin-ng-smoke-test-postgres (host port 15432)
starting the application on port 8090 (log: build/smoke-test/bootRun.log)
waiting for the application to answer (up to 300s) ...
the application is up
LOGIN as hsh-alex_superuser via the fake-jwt token endpoint
LOGIN hsh-alex_superuser
PASSED
HTTP GET /api/ping
PASSED
HTTP GET /api/version
PASSED
HTTP GET /api/pong
PASSED
HTTP POST /api/test/customers \
-H "Content-Type: application/json" --data-binary @-
{ "prefix": "ttt", "reference": 80001, "adminUserName": "admin@ttt.example.com" }
PASSED
HTTP GET /api/test/customers
PASSED
APIKEY --transient switches the HTTP function from the JWT to the provisioning API-key
PASSED
HTTP requests now use a transient API-key, which lives only in this shell (use LOGIN to switch back to a JWT)
HTTP POST /api/rbac/subjects \
-H "Content-Type: application/json" --data-binary @-
{ "name": "smoke.test.key", "type": "API_KEY" }
PASSED
APIKEY --transient switches the HTTP function to the created API-key
HTTP requests now use a transient API-key, which lives only in this shell (use LOGIN to switch back to a JWT)
HTTP GET /api/rbac/context
PASSED
APIKEY --transient switches the HTTP function back to the provisioning API-key
PASSED
tools/create-accounts-from-csv creates an account linking a new subject to an existing person
HTTP requests now use a transient API-key, which lives only in this shell (use LOGIN to switch back to a JWT)
HTTP GET "/api/hs/office/persons?name=Drew"
creating account 'xyz-smoke.drew' (Drew User) with uid/gid 80100 ...
HTTP POST /api/hs/accounts/accounts \
-H "Content-Type: application/json" --data-binary @-
{
"person.uuid" : "7ab05868-8830-4b05-a338-4e0f17a641db",
"subject" : {
"uuid": "b5186aa6-5ba0-41e5-ab31-ed277f5e9ab4",
"name": "xyz-smoke.drew"
},
"globalUid" : 80100,
"globalGid" : 80100
}
{
"uuid": "b5186aa6-5ba0-41e5-ab31-ed277f5e9ab4",
"person": {
"uuid": "7ab05868-8830-4b05-a338-4e0f17a641db",
"personType": "NATURAL_PERSON",
"tradeName": null,
"salutation": null,
"title": null,
"givenName": "Drew",
"familyName": "User"
},
"subject": {
"uuid": "b5186aa6-5ba0-41e5-ab31-ed277f5e9ab4",
"name": "xyz-smoke.drew",
"organization": "xyz",
"type": "USER"
},
"globalUid": 80100,
"globalGid": 80100
}
create-accounts-from-csv: 1 created, 0 already existed, 0 invalid rows, 0 failed
HTTP GET "/api/hs/accounts/accounts?personUuid=7ab05868-8830-4b05-a338-4e0f17a641db"
PASSED
tools/create-accounts-from-csv re-run skips the already existing account (repeatable syncs)
PASSED
tools/create-api-key-for-keycloak-sync creates a global-admin API-key scoped to the sync endpoints
creating API_KEY subject 'hsadminng.keycloak.sync' with scope 'rbac.subjects:sync' ...
HTTP POST /api/rbac/subjects \
-H "Content-Type: application/json" --data-binary @-
{
"type": "API_KEY",
"name": "hsadminng.keycloak.sync",
"scopes": [ "rbac.subjects:sync" ]
}
resolving the 'rbac.global#global:ADMIN' role UUID ...
HTTP GET "/api/rbac/roles?name=rbac.global%23global:ADMIN"
granting the global-admin role to 'hsadminng.keycloak.sync' ...
HTTP POST /api/rbac/grants \
-H "Hostsharing-Assumed-Roles: rbac.global#global:ADMIN" -H "Content-Type: application/json" --data-binary @-
{
"grantedRole.uuid": "dcf22f0e-626a-4ab3-a9fd-014518ec5b50",
"granteeSubject.uuid": "9b3480ab-7ada-43f1-90d6-d1f9470b3b59"
}
created API_KEY subject 9b3480ab-7ada-43f1-90d6-d1f9470b3b59 ('hsadminng.keycloak.sync') and granted it the global-admin role.
clear-text API-key (shown only once) follows on stdout:
PASSED
APIKEY --transient switches the HTTP function to the sync API-key
HTTP requests now use a transient API-key, which lives only in this shell (use LOGIN to switch back to a JWT)
HTTP GET /api/rbac/subjects
PASSED
HTTP GET /api/rbac/context
PASSED
PASSED
SMOKE-TEST PASSED
stopping the application (pid 2773)