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

Method TestGetJITConfigFileNotFound

runner/metadata_test.go:525–530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

523}
524
525func (s *MetadataTestSuite) TestGetJITConfigFileNotFound() {
526 _, err := s.Runner.GetJITConfigFile(s.jitInstanceCtx, "nonexistent-file")
527
528 s.Require().NotNil(err)
529 s.Require().Contains(err.Error(), "could not find file")
530}
531
532func (s *MetadataTestSuite) TestGetInstanceGithubRegistrationToken() {
533 expectedToken := "test-registration-token"

Callers

nothing calls this directly

Calls 2

GetJITConfigFileMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected