smokeTest — PASSED (exit 0)

SHA-256: 8a1a80f39b64634ab2a7bcd85991dd7f070bead60d2dc943a9d940f76f263e03
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

HTTP requests now use a transient API-key, which lives only in this shell (use LOGIN to switch back to a JWT)
tools/create-accounts-from-csv creates an account linking a new subject to an existing person
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" : "a6ae9800-23ff-4830-95c3-9e20dbf400ab",
          "subject" : {
              "uuid": "b11a5d24-adfe-4198-b33e-4aaa2541d601",
              "name": "xyz-smoke.drew"
          },
          "globalUid" : 80100,
          "globalGid" : 80100
        }
{
  "uuid": "b11a5d24-adfe-4198-b33e-4aaa2541d601",
  "person": {
    "uuid": "a6ae9800-23ff-4830-95c3-9e20dbf400ab",
    "personType": "NATURAL_PERSON",
    "tradeName": null,
    "salutation": null,
    "title": null,
    "givenName": "Drew",
    "familyName": "User"
  },
  "subject": {
    "uuid": "b11a5d24-adfe-4198-b33e-4aaa2541d601",
    "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=a6ae9800-23ff-4830-95c3-9e20dbf400ab"
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": "106da768-4ba1-43de-b67d-4c57b402d23d",
    "granteeSubject.uuid": "3b1ae43c-cb19-4887-b6e4-57e8933c96a0"
  }
created API_KEY subject 3b1ae43c-cb19-4887-b6e4-57e8933c96a0 ('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 2699)