Allow extra data in artifact schema validation
The schema validator for zuul.artifacts returned via zuul_return did not allow for extra return data (outside of the zuul hierarchy). Correct the validator to allow that, and update the test to exercise it. Change-Id: Ia8d7ed212b03d978bec1a7de1a2647b0c87b7cf9
This commit is contained in:
parent
6bc25035dd
commit
5271b592af
|
@ -3,6 +3,8 @@
|
||||||
- name: Return artifact data
|
- name: Return artifact data
|
||||||
zuul_return:
|
zuul_return:
|
||||||
data:
|
data:
|
||||||
|
something_else:
|
||||||
|
foo: bar
|
||||||
zuul:
|
zuul:
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: relative
|
- name: relative
|
||||||
|
|
|
@ -26,7 +26,8 @@ zuul_data = {
|
||||||
'log_url': str,
|
'log_url': str,
|
||||||
'artifacts': [artifact],
|
'artifacts': [artifact],
|
||||||
v.Extra: object,
|
v.Extra: object,
|
||||||
}
|
},
|
||||||
|
v.Extra: object,
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact_schema = v.Schema(zuul_data)
|
artifact_schema = v.Schema(zuul_data)
|
||||||
|
|
Loading…
Reference in New Issue