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

Method TestGetLabelsForInstanceWithCache

runner/metadata_test.go:1290–1296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1288}
1289
1290func (s *MetadataTestSuite) TestGetLabelsForInstanceWithCache() {
1291 // This test would require setting up the cache properly
1292 // For now, we test that it doesn't panic with empty cache
1293 instance := s.Fixtures.TestInstance
1294 labels := getLabelsForInstance(instance)
1295 s.Require().NotNil(labels)
1296}
1297
1298func (s *MetadataTestSuite) TestGetLabelsForInstanceWithScaleSetAndJIT() {
1299 // Test instance with both scale set and JIT config

Callers

nothing calls this directly

Calls 1

getLabelsForInstanceFunction · 0.85

Tested by

no test coverage detected