Ondřej Budai
4ebf6ee85b
upload/koji: add a simple test
...
This commit adds a test which uploads a random file to Koji and runs CGImport.
The result is checked using the koji cli client.
2020-05-19 13:54:53 +02:00
Ondřej Budai
87a7e90c98
upload/koji: return the CGImport result
...
Currently, only build id is returned, more will come when needed.
2020-05-19 13:54:53 +02:00
Ondřej Budai
e43eb4da7b
upload/koji: make the hexdigest field consistent
...
We usually try to match the field name with its json/toml/xmlrpc tag. This
commit does exactly that.
2020-05-19 13:54:53 +02:00
Ondřej Budai
184cd24426
upload/koji: handle the unmarshalling error
2020-05-19 13:54:53 +02:00
Ondřej Budai
0c87a7f524
upload/koji: handle the xmlrpc error
...
This is the way to handle situations when the remote method errors.
2020-05-19 13:54:53 +02:00
Tom Gundersen
76515066a8
upload/koji: add helpers to upload to koji
...
This does not yet actually upload the image, and it only supports empty
images. You need to place a an empty file named <filename>, with a valid
extension (e.g., .qcow2) in /mnt/koji/work/<directory>/.
Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-05-19 13:54:53 +02:00