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

How to handle warnings in OTST tests #44

Open
samigamer1999 opened this issue Dec 10, 2024 · 0 comments
Open

How to handle warnings in OTST tests #44

samigamer1999 opened this issue Dec 10, 2024 · 0 comments

Comments

@samigamer1999
Copy link

samigamer1999 commented Dec 10, 2024

Description

Suppose a sandbox env doesn't support (yet) some optional OSDM fields passed in a request. There are 2 possibilities :

  • The endpoint refuses the request with a 422 status code for example
  • Accept the request but doesn't take the optional non-supported fields into account, and returns the result with warnings/problems (with a PARTIAL_SUCCESS code) for the non-accounted for fields.

What would be the best approach in this case for OTST ?

In both cases, this is a bit problematic in OTST tests. It seems to me that the second approach is more favorable, however, we would need to overlay the OTST tests to check warnings for every request, especially that warnings/problems are environment specific and tests would have to adapt to all supported environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Open
Development

No branches or pull requests

1 participant