// RemoveFakeToolsMetadata deletes the fake simplestreams tools metadata from the supplied storage. func RemoveFakeToolsMetadata(c *gc.C, stor storage.Storage) { files, err := stor.List("tools/streams") c.Assert(err, jc.ErrorIsNil) for _, file := range files { err = stor.Remove(file) c.Check(err, jc.ErrorIsNil) } }
func SignTestTools(stor storage.Storage) error { files, err := stor.List("") if err != nil { return err } for _, file := range files { if strings.HasSuffix(file, sstesting.UnsignedJsonSuffix) { // only sign .json files and data if err := SignFileData(stor, file); err != nil { return err } } } return nil }