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

Method TestRemoveFilesOnlyDist

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

Source from the content-addressed store, hash-verified

960}
961
962func (s *PublishedRepoRemoveSuite) TestRemoveFilesOnlyDist(c *C) {
963 _ = s.repo1.RemoveFiles(s.provider, false, []string{}, nil)
964
965 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/anaconda"), Not(PathExists))
966 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/meduza"), PathExists)
967 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/osminog"), PathExists)
968 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/pool/main"), PathExists)
969 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/pool/contrib"), PathExists)
970 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "dists/anaconda"), PathExists)
971 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "pool/main"), PathExists)
972 c.Check(filepath.Join(s.publishedStorage2.PublicPath(), "ppa/dists/osminog"), PathExists)
973 c.Check(filepath.Join(s.publishedStorage2.PublicPath(), "ppa/pool/contrib"), PathExists)
974}
975
976func (s *PublishedRepoRemoveSuite) TestRemoveFilesWithPool(c *C) {
977 _ = s.repo1.RemoveFiles(s.provider, false, []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