test: Add mirrorlist test for org.osbuild.librepo
These tests test downloading packages using mirrorlist: * Using a single mirrorlist repo * Using two mirrorlist repos * A bad checksum (or file) from the download which is expected to fail * Two mirrorlist paths with the first one returning a 404, expected to succeed with the 2nd mirrorlist path.
This commit is contained in:
parent
0c340da0a2
commit
6045b3ffd6
7 changed files with 146 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"expects": "success",
|
||||
"org.osbuild.librepo": {
|
||||
"items": {
|
||||
"sha256:99fa21f1b67fea84dcb9b3c7f7e09a4f150095cfa7163a19d03972fd7c826f00": {
|
||||
"path": "Packages/a/a",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:77e6ed0bed2d720e44d77643f66b05f0eb42b06379990e5ef658ef314c415827": {
|
||||
"path": "Packages/b/b",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:e99efe314a66334179236e5fb6a2e6a6431daf6aeb516162e01517a0ac708252": {
|
||||
"path": "Packages/c/c",
|
||||
"mirror": "d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703"
|
||||
},
|
||||
"sha256:354fe7c89ac014ed6479bf162fa7b9e8b37eddc7e46719ebd4349699d4e92c8c": {
|
||||
"path": "Packages/d/d",
|
||||
"mirror": "d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"mirrors": {
|
||||
"0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/one404",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
},
|
||||
"d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/updates",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"expects": "error",
|
||||
"org.osbuild.librepo": {
|
||||
"items": {
|
||||
"sha256:99fa21f1b67fea84dcb9b3c7f7e09a4f150095cfa7163a19d03972fd7c826f00": {
|
||||
"path": "Packages/a/a",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:77e6ed0bed2d720e44d77643f66b05f0eb42b06379990e5ef658ef314c415827": {
|
||||
"path": "Packages/b/b",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": {
|
||||
"path": "Packages/c/c",
|
||||
"mirror": "d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703"
|
||||
},
|
||||
"sha256:354fe7c89ac014ed6479bf162fa7b9e8b37eddc7e46719ebd4349699d4e92c8c": {
|
||||
"path": "Packages/d/d",
|
||||
"mirror": "d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"mirrors": {
|
||||
"0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/fedora",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
},
|
||||
"d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/updates",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"expects": "success",
|
||||
"org.osbuild.librepo": {
|
||||
"items": {
|
||||
"sha256:99fa21f1b67fea84dcb9b3c7f7e09a4f150095cfa7163a19d03972fd7c826f00": {
|
||||
"path": "Packages/a/a",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:77e6ed0bed2d720e44d77643f66b05f0eb42b06379990e5ef658ef314c415827": {
|
||||
"path": "Packages/b/b",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"mirrors": {
|
||||
"0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/fedora",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"expects": "success",
|
||||
"org.osbuild.librepo": {
|
||||
"items": {
|
||||
"sha256:99fa21f1b67fea84dcb9b3c7f7e09a4f150095cfa7163a19d03972fd7c826f00": {
|
||||
"path": "Packages/a/a",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:77e6ed0bed2d720e44d77643f66b05f0eb42b06379990e5ef658ef314c415827": {
|
||||
"path": "Packages/b/b",
|
||||
"mirror": "0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2"
|
||||
},
|
||||
"sha256:e99efe314a66334179236e5fb6a2e6a6431daf6aeb516162e01517a0ac708252": {
|
||||
"path": "Packages/c/c",
|
||||
"mirror": "d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703"
|
||||
},
|
||||
"sha256:354fe7c89ac014ed6479bf162fa7b9e8b37eddc7e46719ebd4349699d4e92c8c": {
|
||||
"path": "Packages/d/d",
|
||||
"mirror": "d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"mirrors": {
|
||||
"0cde5945566ff3feb627eaa84e31223d2b8be54fb446222cded36fc5e5debcc2": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/fedora",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
},
|
||||
"d68132295d14ad03bd676009c4fe8727f5040adfb91e20ac9919101d14ff4703": {
|
||||
"url": "http://localhost/sources/org.osbuild.librepo/data/mirrorlist/updates",
|
||||
"type": "mirrorlist",
|
||||
"fastest-mirror": true,
|
||||
"name": "mirrorlist"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
http://localhost/sources/org.osbuild.librepo/data/
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
http://localhost/sources/org.osbuild.librepo/data/404/
|
||||
http://localhost/sources/org.osbuild.librepo/data/
|
||||
|
|
@ -0,0 +1 @@
|
|||
http://localhost/sources/org.osbuild.librepo/data/updates/
|
||||
Loading…
Add table
Add a link
Reference in a new issue