cockpit-project / cockpituous

Cockpit Continuous Integration and Delivery
GNU Lesser General Public License v2.1
36 stars 35 forks source link

tasks: Add integration test for image-refresh via issue-scan #588

Closed martinpitt closed 8 months ago

martinpitt commented 8 months ago

This covers the real thing in between getting the "issue" webhook data and uploading the image to the S3 server, and hence issue-scan, image-refresh, image-create, S3 image credentials, etc.

Extend mock-github for the operations that image-refresh does, like converting an issue to a pull, posting test statuses, etc. These aren't asserted: it's possible in principle with keeping state in the mock, but these aren't the parts that are sensitive to us changing our bots infrastructure. Also, these are better done in bots' unittests than this integration test.


TODO: