Skip to content

Failing to receive auth token w/ oauth2 client credentials flow results in exit code 0 #760

Closed
@tyler-hagen

Description

I have some tests running in a pipeline, and ended up configuring and invalid client_id/client_secret. This resulted in a 401 response from the auth server, which I can see in the logs.

I expected the behavior to be that all my tests that reference the prefix with the invalid client_id and client_secret would be failed tests, and therefore the process would exit with some sort of error code that my pipeline runner could recognize as a failure. Because the behavior is to just essentially skip the test and not count it as a pass or fail, and exit successfully, I was not able to recognize my tests were not being run for some time.

I'm not sure if this is actually an issue or if I'm misusing the tool. Any suggestions?

Activity

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

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