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

Method TestGetInstanceMetadataWithJIT

runner/metadata_test.go:673–691  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671}
672
673func (s *MetadataTestSuite) TestGetInstanceMetadataWithJIT() {
674 // Set up github tools cache
675 tools := []commonParams.RunnerApplicationDownload{
676 {
677 OS: garmTesting.Ptr("linux"),
678 Architecture: garmTesting.Ptr("x64"),
679 DownloadURL: garmTesting.Ptr("https://example.com/runner.tar.gz"),
680 Filename: garmTesting.Ptr("runner.tar.gz"),
681 SHA256Checksum: garmTesting.Ptr("abc123"),
682 },
683 }
684 cache.SetGithubToolsCache(s.Fixtures.TestEntity, tools)
685
686 metadata, err := s.Runner.GetInstanceMetadata(s.jitInstanceCtx)
687
688 s.Require().Nil(err)
689 s.Require().True(metadata.JITEnabled)
690 s.Require().NotNil(metadata.RunnerTools)
691}
692
693func (s *MetadataTestSuite) TestGetInstanceMetadataWithExtraSpecs() {
694 // Set up github tools cache

Callers

nothing calls this directly

Calls 2

SetGithubToolsCacheFunction · 0.92
GetInstanceMetadataMethod · 0.80

Tested by

no test coverage detected