smokeTest — PASSED (exit 0)

SHA-256: cf177fbdebfa04d46572f81cae177615603f9810cb5f09096b8c82416a090519
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" : "d5250e0d-7cff-49ea-94e9-69ea54e45cd6",
          "subject" : {
              "uuid": "4abcc575-1305-4306-aadc-007cc77a9b8f",
              "name": "xyz-smoke.drew"
          },
          "globalUid" : 80100,
          "globalGid" : 80100
        }
{
  "uuid": "4abcc575-1305-4306-aadc-007cc77a9b8f",
  "person": {
    "uuid": "d5250e0d-7cff-49ea-94e9-69ea54e45cd6",
    "personType": "NATURAL_PERSON",
    "tradeName": null,
    "salutation": null,
    "title": null,
    "givenName": "Drew",
    "familyName": "User"
  },
  "subject": {
    "uuid": "4abcc575-1305-4306-aadc-007cc77a9b8f",
    "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=d5250e0d-7cff-49ea-94e9-69ea54e45cd6"
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": "5a54b136-3e01-481e-bd0a-f4e2acb0bc55",
    "granteeSubject.uuid": "df56555a-c8dd-4b4c-8802-57397a0cea06"
  }
created API_KEY subject df56555a-c8dd-4b4c-8802-57397a0cea06 ('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 2610)