Skip to content

validate command: ability to create access token for first admin user

Warren Gifford requested to merge validate_create_token into main

Created by: uwedeportivo

will be used for executing automated regression tests against k8s cluster.

you can use a script similar to the one below to create the first admin and let it spit out the token

validate_script.json:

{
  "firstAdmin": {
    "email": "[email protected]",
    "username": "foo",
    "password": "{{ .foo_pw}}",
    "createAccessToken": true
  }
}

you can run it like so:

EXPORT SRC_ENDPOINT=http://localhost:3080
src validate -context foo_pw=testtesttest validate_script.json

Merge request reports

Loading