Skip to content

Validate all vars  #18

Description

@dnitsch

Validate all vars inside the auth and seed actions - set in either variables or runtimeVariables.

So that

- name: create-pocketbase-user-for-qa-tes1
    endpoint: http://127.0.0.1:59886/api/users
    strategy: FIND/PATCH/POST
    getEndpointSuffix: "?page=1&perPage=100&sort=-created&filter="
    findByJsonPathExpr: "$.items[?(@.email=='qa-guy@example.com')].id"
    authMapRef: customTest1
    payloadTemplate: |
      {"email":"qa-guy@example.com","password":"Password123_alwaysChange","passwordConfirm":"Password123_alwaysChange"}
    patchPayloadTemplate: |
      {"password":"${newPass}","passwordConfirm":"${newPass}","unknown":"${unknown_var}"}
    variables:
      newPass: AWSPARAMSTR:///int-test/pocketbase/admin-pwd

an error is raised at to signify that unknown_var has no source.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions