mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-01 04:40:38 +00:00
tests: add new arguments
This commit is contained in:
+2
-2
@@ -61,7 +61,7 @@ func (s *MirrorSuite) TestCreateMirror(c *C) {
|
|||||||
func (s *MirrorSuite) TestGetMirrorsIncludesNumPackages(c *C) {
|
func (s *MirrorSuite) TestGetMirrorsIncludesNumPackages(c *C) {
|
||||||
collection := s.context.NewCollectionFactory().RemoteRepoCollection()
|
collection := s.context.NewCollectionFactory().RemoteRepoCollection()
|
||||||
|
|
||||||
repo, err := deb.NewRemoteRepo("count-mirror", "http://example.com/debian", "stable", []string{"main"}, []string{}, false, false, false)
|
repo, err := deb.NewRemoteRepo("count-mirror", "http://example.com/debian", "stable", []string{"main"}, []string{}, false, false, false, false)
|
||||||
c.Assert(err, IsNil)
|
c.Assert(err, IsNil)
|
||||||
|
|
||||||
err = collection.Add(repo)
|
err = collection.Add(repo)
|
||||||
@@ -93,7 +93,7 @@ func (s *MirrorSuite) TestGetMirrorsIncludesNumPackages(c *C) {
|
|||||||
func (s *MirrorSuite) TestGetMirrorsReturns500OnCorruptRefList(c *C) {
|
func (s *MirrorSuite) TestGetMirrorsReturns500OnCorruptRefList(c *C) {
|
||||||
collection := s.context.NewCollectionFactory().RemoteRepoCollection()
|
collection := s.context.NewCollectionFactory().RemoteRepoCollection()
|
||||||
|
|
||||||
repo, err := deb.NewRemoteRepo("broken-mirror", "http://example.com/debian", "stable", []string{"main"}, []string{}, false, false, false)
|
repo, err := deb.NewRemoteRepo("broken-mirror", "http://example.com/debian", "stable", []string{"main"}, []string{}, false, false, false, false)
|
||||||
c.Assert(err, IsNil)
|
c.Assert(err, IsNil)
|
||||||
c.Assert(collection.Add(repo), IsNil)
|
c.Assert(collection.Add(repo), IsNil)
|
||||||
putRawDBValue(c, &s.APISuite, repo.RefKey(), []byte("not-msgpack"))
|
putRawDBValue(c, &s.APISuite, repo.RefKey(), []byte("not-msgpack"))
|
||||||
|
|||||||
Reference in New Issue
Block a user