Instead of testing the legacy `SourcesServer` and `sources.get`, test the `Source.download` method, which is the new and exclusive way how sources are used in osbuild. For this, the complete info for a specific source is now included the specific test case. For the `org.osbuild.curl` source this means that the respective information is moved from `sources.json`, which is then unused and thus removed. The test case that checks for an unknown checksum is also removed because `Source.download` just fetches everything instead of a subset.
10 lines
238 B
JSON
10 lines
238 B
JSON
{
|
|
"expects": "error",
|
|
"org.osbuild.curl": {
|
|
"items": {
|
|
"sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb": {
|
|
"url": "http://localhost/sources/org.osbuild.curl/data/missing"
|
|
}
|
|
}
|
|
}
|
|
}
|