-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration Test Error #901
Comments
The error is spawned from the suite run script. This may be able to be fixed by exporting those variables in the makefile before running the script. |
I appreciate the sensitivity of these env variables. Perhaps we could change the CONTRIBUTING doc to reflect steps on setting them personally, avoiding the need to generate them. |
Hey @m3talsmith 👋🏻 Thanks for taking the time to raise this! We can definitely improve the contributing guidelines and the test setup. One important thing we're missing there is the fact that we require a machine to machine application already created on the test tenant that has been authorized to request access tokens for the Management API and has all the required permissions. Only then we can leverage the client's credentials to authenticate through the Auth0 CLI. We could also take this opportunity to uniform the env var naming to A further improvement would be the addition of another make command that would only run a single/subset of the integration tests, for example: These combined would make for a much more improved CONTRIBUTING guidelines. Happy to know your thoughts on this and discuss further. |
… test Added explicit calls to the run script with the environment variable Added the `GOBIN` to the path for sake of the script Added clear instructions to CONTRIBUTING.md
Thanks @sergiught ! I think we are both on the same page here. There were some minor I'll keep PR #902 open to have code specific comments there. I especially like the idea of having a filter on |
…#902) * Fix: Issue #901 Add auth0 environment variables for integrations test Added explicit calls to the run script with the environment variable Added the `GOBIN` to the path for sake of the script Added clear instructions to CONTRIBUTING.md * Fix: Issue 901 - Unified Environment Variables * Ensure the `gobin` is before path Ensures that the new binaries will be used if a developer has releases installed previously. * Remove unused env variable * Revert environment name changes * Update CONTRIBUTING.md Co-authored-by: Will Vedder <[email protected]> * Conditionally include environment variables in Makefile --------- Co-authored-by: Will Vedder <[email protected]>
Closing this down now that we have #902 merged in 💪🏻 |
Checklist
Description
I ran across this error while running
make test
:Setup
OS: MacOS 13.6.1
Go: 1.20.3
Notes: I don't have the cli installed and was testing the steps through the CONTRIBUTING doc.
Expectation
I expected all tests to pass.
Reproduction
Given I do not have the auth0-cli installed
And I haven't authenticated
When I run
make test
Then I see the integration error
Auth0 CLI version
main
The text was updated successfully, but these errors were encountered: