tests: verify system-wide sources can't be deleted. Closes #315

make sure this test can be run both as a unit test and as an
integration test on a running system
This commit is contained in:
Alexander Todorov 2020-04-06 09:58:52 -04:00 committed by Tom Gundersen
parent a1eb6b4cd5
commit bd4793eb58
2 changed files with 45 additions and 6 deletions

View file

@ -45,7 +45,7 @@ func TestMain(m *testing.M) {
if err != nil {
panic(err)
}
repos := []rpmmd.RepoConfig{{Id: "test-id", BaseURL: "http://example.com/test/os/test_arch"}}
repos := []rpmmd.RepoConfig{{Id: "test-system-repo", BaseURL: "http://example.com/test/os/test_arch"}}
logger := log.New(os.Stdout, "", 0)
api := weldr.New(rpm, arch, distro, repos, logger, fixture.Store)
server := http.Server{Handler: api}