Skip to content
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 tests: Use oauth client instead of API token #162

Merged
merged 7 commits into from
Jun 6, 2023

Conversation

guineveresaenger
Copy link
Contributor

@guineveresaenger guineveresaenger commented Jun 5, 2023

This PR aims to reduce ops toil.

It uses the new oauth client to authenticate against Tailscale.
Due to the client creating short-lived API tokens, this brings us to a final resolution for #93 for this provider.

I have unset the TAILSCALE_API_KEY Action secret, generated a Tailscale Oauth client and added those secrets to the repository.

If the integration test passes on this PR, it means the keys are valid.

Additionally, I added a friendly failfast to our tests to verify if the keys exist. This is an improvement over our previous practice of t.Skip.

h/t to @passcod for the original issue!

Part of #150.

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

1 similar comment
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@guineveresaenger guineveresaenger requested review from a team and t0yv0 and removed request for a team June 5, 2023 21:25
Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@guineveresaenger guineveresaenger changed the title Integration tests: Use oauth scopes instead of API token Integration tests: Use oauth client instead of API token Jun 5, 2023
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@guineveresaenger guineveresaenger merged commit 6f1e70b into master Jun 6, 2023
17 checks passed
@guineveresaenger guineveresaenger deleted the guin/oauth-scopes branch June 6, 2023 17:08
@guineveresaenger guineveresaenger mentioned this pull request Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants