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

Method TestGetJITConfigFileUnauthorized

runner/metadata_test.go:518–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516}
517
518func (s *MetadataTestSuite) TestGetJITConfigFileUnauthorized() {
519 _, err := s.Runner.GetJITConfigFile(s.unauthorizedCtx, ".runner")
520
521 s.Require().NotNil(err)
522 s.Require().Contains(err.Error(), "instance not configured for JIT")
523}
524
525func (s *MetadataTestSuite) TestGetJITConfigFileNotFound() {
526 _, err := s.Runner.GetJITConfigFile(s.jitInstanceCtx, "nonexistent-file")

Callers

nothing calls this directly

Calls 2

GetJITConfigFileMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected