Merge "libfetchers: factorize inputFromAttrs" into main

This commit is contained in:
Tom Hubrecht
2025-05-28 19:54:37 +00:00
committed by Lix Systems Gerrit
9 changed files with 159 additions and 95 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ testFetchTreeError \
# test for unsupported attributes / validation in git fetcher
testFetchTreeError \
"\"git+https://github.com/owner/repo?invalid=1\"" \
"unsupported Git input attribute 'invalid'"
"unsupported input attribute 'invalid' for the 'git' scheme"
testFetchTreeError \
"\"git+https://github.com/owner/repo?url=foo\"" \
@@ -76,11 +76,11 @@ testFetchTreeError \
# same for mercurial
testFetchTreeError \
"\"hg+https://forge.tld/owner/repo?invalid=1\"" \
"unsupported Mercurial input attribute 'invalid'"
"unsupported input attribute 'invalid' for the 'hg' scheme"
testFetchTreeError \
"{ type = \"hg\"; url = \"https://forge.tld/owner/repo\"; invalid = 1; }" \
"unsupported Mercurial input attribute 'invalid'"
"unsupported input attribute 'invalid' for the 'hg' scheme"
testFetchTreeError \
"\"hg+https://forge.tld/owner/repo?ref=,\"" \