(c *C)
| 1016 | } |
| 1017 | |
| 1018 | func (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 | |
| 1031 | func (s *PublishedRepoRemoveSuite) TestRemoveRepo1and2(c *C) { |
| 1032 | err := s.collection.Remove(s.provider, "", "ppa", "anaconda", s.factory, nil, false, false) |
nothing calls this directly
no test coverage detected