flesh out is_valid check
Bug #1242830 reported by
gordon chung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pycadf |
Fix Released
|
Medium
|
gordon chung |
Bug Description
improve is_valid check to fully validate each CADF type attributes
ie.
- check that attribute has a value and not just descriptor object value.
- check that resource shortform doesn't assign additional properties aside from id attribute
also, explicitly call is_valid() in test cases
Changed in pycadf: | |
assignee: | nobody → gordon chung (chungg) |
status: | New → Fix Committed |
Changed in pycadf: | |
milestone: | none → 0.6.0 |
Changed in pycadf: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/53757 github. com/stackforge/ pycadf/ commit/ 2e436ada18e5b6d 37342ff7969b189 d4827df45d
Committed: http://
Submitter: Jenkins
Branch: master
commit 2e436ada18e5b6d 37342ff7969b189 d4827df45d
Author: Gordon Chung <email address hidden>
Date: Thu Oct 24 19:04:13 2013 -0400
improve model validation
- add isset to check "real" attribute and not descriptor
- verify only id is set in shortform
- verify either resource or resourceId value is set, not both.
blueprint improve-validation
related-bug: #1242830
Change-Id: Ie9e3f26c5d30cd 36e6013a1f0b77c 8fe466cb3f7