Skip to content

Metadata API: Tests (de)serialization with invalid arguments #1434

@MVrachev

Description

@MVrachev

Description of issue or feature request:
I started creating issues documenting some research I do for how we use our metadata attributes.
For example #1418, #1419 and #1420.
The end goal of this research is to decide how we are going to validate each of them, make the necessary changes and add tests ensuring the validation works.

Together with @jku we discussed that to achieve the last step - adding tests ensuring the validation works
it will be better if we wait for #1391 to be resolved.
That way we would come up with a better-refined approach of running a test case against multiple inputs.

Also, I wanted to point out that there was a suggestion to use a fuzzing tool for this.
Maybe it's worth exploring.

We will want to test cases when our attributes are:

  • empty values
  • values from the wrong type
  • non existent - they don't appear in the input dictionary when calling from_dict()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions