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:
parent
a1eb6b4cd5
commit
bd4793eb58
2 changed files with 45 additions and 6 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue