Closed mmskv closed 1 year ago
@mmskv Thanks for making the updates! The acceptance tests are failing with:
=== NAME TestDataSourceIdentityOIDCClientCreds
testing_new.go:85: Error running post-test destroy, there may be dangling resources: exit status 1
Error: error deleting IdentityOidcKey key: Error making API request.
URL: DELETE http://localhost:8200/v1/identity/oidc/key/key
Code: 400. Errors:
* unable to delete key "key" because it is currently referenced by these clients: test-public-client-6603691130748134188
--- FAIL: TestDataSourceIdentityOIDCClientCreds (2.07s)
You should be able to run this locally with
make testacc TESTARGS='-run TestDataSourceIdentityOIDCClientCreds -v'
@fairclothjm That's odd. The tests ran fine on my machine. Can you trigger the test CI again, I think I've fixed that.
@mmskv You might be able to repro with the -race
flag of go test
. The test was running in parallel and CI tends to reveal race conditions more frequently. I think the issue was that the vault_identity_oidc_key resource didn't have a unique name and the other test func was colliding.
I will trigger CI with your updates though
Thank you for your time!
Public OpenID Clients don't have a client_secret so accessing it results in a
Description
This change explicitly ignores
vault_identity_oidc_client_creds
'sclient_secret
and sets it to an empty string for public clientsChecklist
Output from acceptance testing:
Steps to reproduce
Create a public oidc client and attemt to query it's creds
You will get this error
Community Note