The "HashiCorp Vault Secret Lookup" and "Hashicorp Vault Signed SSH" Credential Types provide both a test option which check if the parameters are working. In both cases the running the test case requires sysadmin permissions.
Login to AWX as non-sysadmin user. In the AWX Webinterface go to "Credentials" and create a new Credential of Type "HashiCorp Vault Secret Lookup". Fill in "Server Url", "token" and if necessary CA Certificate. Then open the "Test external credential" form by clicking the "Test" Buttion. Fill in "path to secret" and "key name" then click "run". The Test will fail.
If you run the same steps as sysadmin user, then the test will succeed.
A user which is allowed to create a credential of type "Hashicorp Vault Secret Lookup" should be allowed to run the test.
Non-sysadmin users are not allowed to test "HashiCorp Vault Secret Lookup" Credentials.
@nixocio assigned you because I remember you working on something related w/ credentials
it was this https://github.com/ansible/tower/issues/3882
If I give a user "Credential Admin" I can created the Hashicorp Vault and test this. A user that is only a member can not make a credential to test. Is that the expected behaviour?
@ryanpetrello @jakemcdermott @AlanCoding can you confirm what user permission is supposed to be used here?
@nixocio You need _use_ permissions or better on a credential to use its test button.

There is one exception - if you haven't _saved_ a credential (e.g: you're on the 'NEW CREDENTIAL' form of a hashivault credential and haven't clicked save yet), then only admins may use the test button.