Skip to content

Commit 7b7a61d

Browse files
committed
Add non-regression test for repo2docker downgrade
See: https://gist.github.com/minrk/5fdabeb7ab8cd2c69cbc27588fed1903 Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
1 parent a818ce9 commit 7b7a61d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

libmamba/tests/src/core/test_sharded_repodata_integration.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,19 @@ namespace
449449
}
450450
}
451451

452+
auto read_explicit_urls(const fs::u8path& path) -> std::vector<std::string>
453+
{
454+
std::vector<std::string> urls;
455+
for (const auto& line : read_lines(path))
456+
{
457+
if (line.starts_with("http://") || line.starts_with("https://"))
458+
{
459+
urls.push_back(line);
460+
}
461+
}
462+
return urls;
463+
}
464+
452465
}
453466

454467
TEST_CASE("Sharded repodata - load_channels accepts root_packages", "[mamba::core][sharded][.integration]")

0 commit comments

Comments
 (0)