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

Method TestRemoveFilesWithPrefixRoot

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

Source from the content-addressed store, hash-verified

1016}
1017
1018func (s *PublishedRepoRemoveSuite) TestRemoveFilesWithPrefixRoot(c *C) {
1019 _ = s.repo2.RemoveFiles(s.provider, true, []string{"main"}, nil)
1020
1021 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/anaconda"), PathExists)
1022 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/dists/meduza"), PathExists)
1023 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/pool/main"), PathExists)
1024 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "ppa/pool/contrib"), PathExists)
1025 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "dists/anaconda"), Not(PathExists))
1026 c.Check(filepath.Join(s.publishedStorage.PublicPath(), "pool/main"), Not(PathExists))
1027 c.Check(filepath.Join(s.publishedStorage2.PublicPath(), "ppa/dists/osminog"), PathExists)
1028 c.Check(filepath.Join(s.publishedStorage2.PublicPath(), "ppa/pool/contrib"), PathExists)
1029}
1030
1031func (s *PublishedRepoRemoveSuite) TestRemoveRepo1and2(c *C) {
1032 err := s.collection.Remove(s.provider, "", "ppa", "anaconda", s.factory, nil, false, false)

Callers

nothing calls this directly

Calls 3

RemoveFilesMethod · 0.80
PublicPathMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected