]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: A check must specify a state
authorDaniel Axtens <dja@axtens.net>
Mon, 29 Apr 2019 16:57:01 +0000 (02:57 +1000)
committerDaniel Axtens <dja@axtens.net>
Tue, 30 Apr 2019 05:20:57 +0000 (15:20 +1000)
commit7a20ccda99e48dab643d1fbd7e170fe3e4c47185
treeb15c52e451de569faed8c703c89dc3f78e7e452e
parent666de29ebada5990a8d69f4d71d6bb271e1a68c3
REST: A check must specify a state

The Ozlabs crew noticed that a check without a state caused a
KeyError in data['state']. Mark state as mandatory, check for
it, and add a test.

Reported-by: Russell Currey <ruscur@russell.cc>
Reported-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Daniel Axtens <dja@axtens.net>
docs/api/schemas/latest/patchwork.yaml
docs/api/schemas/patchwork.j2
docs/api/schemas/v1.0/patchwork.yaml
docs/api/schemas/v1.1/patchwork.yaml
patchwork/api/check.py
patchwork/tests/api/test_check.py