Skip to content

Commit

Permalink
Add AppRole response schema validation tests (#18636)
Browse files Browse the repository at this point in the history
This PR modifies every test in `builtin/credentials/approle/path_role_test.go` with new validation checks to ensure that approle/path_role  successful responses align with the declared response schema.

It also introduces a test helper in `sdk/helper/testhelpers`:

```go
func FindResponseSchema(t *testing.T, ...)
```

This test helper will be useful for all plugins that require similar response schema validation in tests.

### Background

This PR is part of the ongoing work to add structured responses in Vault OpenAPI (VLT-234)
  • Loading branch information
averche authored Jan 13, 2023
1 parent 6a25867 commit 9997cf5
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 0 deletions.
Loading

0 comments on commit 9997cf5

Please sign in to comment.