#51 Port submit script to use openidc authentication (#50)
Merged by jforbes. Opened by adamwill.
adamwill/kernel-tests openidc-auth  into  master

Download 51.patch

This should make authenticated result submission work again. It
uses https://github.com/puiterwijk/python-openidc-client , like
python-wikitcms and a few other things. When you first submit a
result it will trigger a browser auth flow, then store a token
for future uses.

Signed-off-by: Adam Williamson awilliam@redhat.com

I tested this locally, and it works. Note on the change from text/x-log to text/plain: kerneltest server-side only accepts text/plain. If I leave it as text/x-log, submission fails, and the server logs an error Invalid input submitted: text/x-log, indicating we're running into this check. I've no idea how this worked before - the check seems to have been added in 2014. Anyhow, this makes it happy.

Note, we'll need to update the test case - https://fedoraproject.org/wiki/QA:Testcase_kernel_regression - to say to install python3-openidc-client instead of python3-fedora.

Pull-Request has been merged by jforbes

Thanks for doing this!

npnp. I've updated the test case now.

Metadata