anchore-engine icon indicating copy to clipboard operation
anchore-engine copied to clipboard

Update schemas used in policy engine functional tests

Open zburstein opened this issue 3 years ago • 0 comments

The functional tests for policy-engine use schemas defined within the tests to verify the responses are accurate. These tests should instead use the classes that are used to build the responses to verify the schemas. The intent here is to ensure that the response complies with the contract defined in the API spec. A dev can change the schema in the tests to pass, but this can end up being a bad test because it may fail to catch potential issues that would be casued downstream if another service is using the defined api contract.

zburstein avatar Apr 28 '21 19:04 zburstein