Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Validate BDD models in tests #904

Merged
merged 46 commits into from
Dec 19, 2022
Merged

Validate BDD models in tests #904

merged 46 commits into from
Dec 19, 2022

Conversation

skarimo
Copy link
Member

@skarimo skarimo commented Nov 9, 2022

This PR adds support for validating models in the bdd tests instead of renaming keys as we did previously. This fixes few additional things as well:

  • Fix serialization and deserialization of additional properties
  • UnparsedObject key renamed to _data
  • Fix serialization and deserialization of Date objects
  • Fix serialization and deserialization of unparsedObjects
  • change unparsedObject: any attr to _unparsed: bool

Copy link
Contributor

@therve therve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized we didn't run the deserialization tests in CI. They are broken in master, but this PR makes things a bit worse, can you check it out? Also fix run-tests.sh to run them.

@skarimo skarimo merged commit 8903e20 into master Dec 19, 2022
@skarimo skarimo deleted the sherz/validate-bdd-models branch December 19, 2022 15:11
github-actions bot pushed a commit that referenced this pull request Dec 19, 2022
* convert params to models in bdd tests

Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com> 8903e20
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants