Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test JSONSerializer.serialize with validate=True
Add a simple test verifying that by calling JSONSerializer.serialize() on JSONSerializer with validate = True will fail if an attribute has a not allowed value. Comprehensive testing is not needed here as the validation used inside JSONSerializer.serialize() relies on the validation that is done during metadata objects initialization which is tested in detail. Additionally, I added validation when calling JSONSerializer.serialize() in the modify_metadata() inside the test_trusted_metadata_set.py module as this function modifies an existing object and I wanted to make sure it does that without compromising it. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
- Loading branch information