-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix boundary_worker
auth token overwritten during creation & ForceNew
on auth token change
#461
Conversation
create
& ForceNew
on auth token changeboundary_worker
auth token overwrite in create
& ForceNew
on auth token change
boundary_worker
auth token overwrite in create
& ForceNew
on auth token changeboundary_worker
auth token overwritten during creation & ForceNew
on auth token change
@drewmullen if you merge |
Looks like the tests i changed were skipped: === RUN TestWorkerWorkerLed
worker_test.go:63: Not running worker led activation test without worker led token present
--- SKIP: TestWorkerWorkerLed (0.00s) I was unable to determine how to run these tests locally. Not sure if there is a way - happy to try it locally if there is! |
@grantorchard wrote these tests originally he may be able to help, but that being said these changes LGTM |
when i run this locally i get the exact same error as CI: $ make testacc TESTARGS='-run=TestWorkerWorkerLed'
TF_ACC=1 go test ./... -v -run=TestWorkerWorkerLed -timeout 120m
? github.com/hashicorp/terraform-provider-boundary [no test files]
? github.com/hashicorp/terraform-provider-boundary/plugins/kms [no test files]
=== RUN TestWorkerWorkerLed
worker_test.go:63: Not running worker led activation test without worker led token present
--- SKIP: TestWorkerWorkerLed (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-boundary/internal/provider 0.662s I tried setting the token to the same set in the |
The changes LGTM. For the test, I took a look at it.
I don't believe we can run this in CI yet but you can test it locally. Let me know if you have any clarifying questions |
Hi @elimt Thank you for the input. I looks like you were able to run the tests successfully! Nice. IMO this is good to merge at this point if yall are OK with it, @louisruch . |
@moduli any chance this can get merged or closed if not accepted? 🙏 |
Thanks for bringing it up. I need to wrap up a few things first, but I'll follow up/raise it to someone. |
closes: #459
How can i get the token the local deployment is expecting for testing a worker deployment? I tried without setting a token (error'd) and i tried using the token that is set as a
const
in theworker_test.go
file. Both failedsetup db
Set token from
const
value in worker_test:run updated test: