MCPcopy Create free account
hub / github.com/cloudbase/garm / TestGetFileObjectNotFound

Method TestGetFileObjectNotFound

runner/object_store_test.go:165–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163}
164
165func (s *ObjectStoreTestSuite) TestGetFileObjectNotFound() {
166 _, err := s.Runner.GetFileObject(s.Fixtures.AdminContext, 99999)
167
168 s.Require().NotNil(err)
169 s.Require().Contains(err.Error(), "failed to get file object")
170}
171
172func (s *ObjectStoreTestSuite) TestDeleteFileObject() {
173 // Create a file to delete

Callers

nothing calls this directly

Calls 2

GetFileObjectMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected