MCPcopy Create free account
hub / github.com/aptly-dev/aptly / TestRemoveFilesWithTwoPools

Method TestRemoveFilesWithTwoPools

deb/publish_test.go:990–1002  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

988}
989
990func (s *PublishedRepoRemoveSuite) TestRemoveFilesWithTwoPools(c *C) {
991 _ = s.repo1.RemoveFiles(s.provider, false, []string{"main", "contrib"}, nil)
992
993 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/anaconda"), Not(PathExists))
994 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/meduza"), PathExists)
995 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/osminog"), PathExists)
996 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/pool/main"), Not(PathExists))
997 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/pool/contrib"), Not(PathExists))
998 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "dists/anaconda"), PathExists)
999 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "pool/main"), PathExists)
1000 c.Check(filepath.Join(s.publishedStorage2.PublicPath(), "ppa/dists/osminog"), PathExists)
1001 c.Check(filepath.Join(s.publishedStorage2.PublicPath(), "ppa/pool/contrib"), PathExists)
1002}
1003
1004func (s *PublishedRepoRemoveSuite) TestRemoveFilesWithPrefix(c *C) {
1005 _ = s.repo1.RemoveFiles(s.provider, true, []string{"main"}, nil)

Callers

nothing calls this directly

Calls 3

RemoveFilesMethod · 0.80
PublicPathMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected