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

OIDC Client API: add more test coverage #12392

Merged
merged 58 commits into from
Aug 23, 2021

Conversation

fairclothjm
Copy link
Contributor

@fairclothjm fairclothjm commented Aug 20, 2021

Add more test coverage to the OIDC Client API around templates and Existence Checks

Depends on #12272

It is not needed at this time.
- convert Callbacks to Operations
- add test case for update operations
- add changelog
- be more explicit in the case where we do not recieve a path field
be more explicit in the case where a field is not provided
@vercel vercel bot temporarily deployed to Preview – vault-storybook August 20, 2021 19:57 Inactive
@vercel vercel bot temporarily deployed to Preview – vault August 20, 2021 19:57 Inactive
Base automatically changed from oidc-provider-client-api to main August 23, 2021 13:42
@fairclothjm fairclothjm merged commit 1fff58f into main Aug 23, 2021
@fairclothjm fairclothjm deleted the oidc-provider-client-api-unit-tests branch August 23, 2021 19:08
jartek pushed a commit to jartek/vault that referenced this pull request Sep 11, 2021
* initial commit

* add read and delete operations

* fix bug in delete and add list unit test

* func doc typo fix

* add existence check for assignment

* remove locking on the assignment resource

It is not needed at this time.

* convert Callbacks to Operations

- convert Callbacks to Operations
- add test case for update operations

* add CRUD operations and test cases

* add client api and tests

* remove use of oidcCache

* remove use of oidcCache

* add template validation and update tests

* remove usage of oidcCache

* refactor struct and var names

* harmonize test name conventions

* refactor struct and var names

* add changelog and refactor

- add changelog
- be more explicit in the case where we do not recieve a path field

* refactor

be more explicit in the case where a field is not provided

* remove extra period from changelog

* update scope path to be OIDC provider specific

* refactor naming conventions

* update assignment path

* update scope path

* enforce key existence on client creation

* removed unused name field

* removed unused name field

* removed unused name field

* prevent assignment deletion when ref'ed by a client

* enfoce assignment existence on client create/update

* update scope template description

* error when attempting to created scope with openid reserved name

* fix UT failures after requiring assignment existence

* disallow key deletion when ref'ed by existing client

* generate client_id and client_secret on CreateOp

* do not allow key modification on client update

* return client_id and client_secret on read ops

* small refactor

* fix bug in delete assignment op

* remove client secret get call

* OIDC Client API: add more test coverage

* change name convention in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants