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:
James E. Blair 2019-02-19 14:58:25 -08:00
parent 6bc25035dd
commit 5271b592af
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,8 @@
- name: Return artifact data
zuul_return:
data:
something_else:
foo: bar
zuul:
artifacts:
- name: relative

View File

@ -26,7 +26,8 @@ zuul_data = {
'log_url': str,
'artifacts': [artifact],
v.Extra: object,
}
},
v.Extra: object,
}
artifact_schema = v.Schema(zuul_data)