debian-forge-composer/internal/weldr
Brian C. Lane 0eb3bfe89a weldr: Adding sources with empty name should return an error
Currently, if a TOML source is added with no name, or the source is
incorrectly inside a [section] it will add an empty source, causing
depsolving to crash.

This adds tests for 'name' and 'type' fields as a minimum requirement,
and returns an API error if they are empty or missing.

This also includes unit and integration tests.

Closes PR#462
2020-04-06 19:34:37 +02:00
..
api.go weldr: Adding sources with empty name should return an error 2020-04-06 19:34:37 +02:00
api_test.go weldr: Adding sources with empty name should return an error 2020-04-06 19:34:37 +02:00
compose.go weldr/upload: no longer reuse the structs from the target package 2020-03-22 22:26:09 +01:00
json.go weldr, store: Add toml fields to SourceConfig 2020-04-06 19:34:37 +02:00
upload.go weldr/upload: uploadRequestToTarget() cannot fail 2020-03-24 14:13:03 +01:00
util.go composer/job-queue: add scaffolding for the job queue API 2019-09-26 19:53:06 +02:00