- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for CleanupStrategy (0.15 sec)
-
pkg/test/framework/resource/context.go
// completes. This is identical to CleanupStrategy(Always). // This function may not (safely) access the test context. Cleanup(fn func()) // CleanupConditionally will trigger a cleanup operation the test context // completes, unless -istio.test.nocleanup is set. This is identical to // CleanupStrategy(Conditionally). // This function may not (safely) access the test context.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 3.2K bytes - Viewed (0) -
pkg/test/framework/components/istio/configmap.go
scopes.Framework.Debugf("patched %s injection configmap:\n%s", c.Name(), cfgMap.Data["config"]) return nil }) } // Restore the original value of the MeshConfig when the context completes. t.CleanupStrategy(cleanupStrategy, func() { // Invalidate the member mesh config again, since we're rolling back the changes. ic.mu.Lock() ic.injectConfig = nil ic.mu.Unlock() errG := multierror.Group{} mu.RLock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/test/framework/config.go
return c.New().EvalFile(ns, args, filePaths...) } func (c *configFactory) applyYAML(cleanupStrategy cleanup.Strategy, ns string, yamlText ...string) error { if len(c.prefix) == 0 { return c.withFilePrefix("apply").(*configFactory).applyYAML(cleanupStrategy, ns, yamlText...) } GlobalYAMLWrites.Add(uint64(len(yamlText))) // Convert the content to files.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/test/framework/suitecontext.go
discriminator++ } } func (c *suiteContext) CleanupConditionally(fn func()) { c.CleanupStrategy(cleanup.Conditionally, fn) } func (c *suiteContext) Cleanup(fn func()) { c.CleanupStrategy(cleanup.Always, fn) } func (c *suiteContext) CleanupStrategy(strategy cleanup.Strategy, fn func()) { switch strategy { case cleanup.Always:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/test/framework/testcontext.go
return c.NewSubTest(fmt.Sprintf(format, a...)) } func (c *testContext) CleanupConditionally(fn func()) { c.CleanupStrategy(cleanup.Conditionally, fn) } func (c *testContext) Cleanup(fn func()) { c.CleanupStrategy(cleanup.Always, fn) } func (c *testContext) CleanupStrategy(strategy cleanup.Strategy, fn func()) { switch strategy { case cleanup.Always: c.scope.addCloser(&closer{fn: func() error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 11.4K bytes - Viewed (0)