()
| 671 | } |
| 672 | |
| 673 | func (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 | |
| 693 | func (s *MetadataTestSuite) TestGetInstanceMetadataWithExtraSpecs() { |
| 694 | // Set up github tools cache |
nothing calls this directly
no test coverage detected