- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for EnvironmentFactory (0.23 sec)
-
pkg/test/framework/resource/environment.go
package resource import "istio.io/istio/pkg/test/framework/components/cluster" // EnvironmentFactory creates an Environment. type EnvironmentFactory func(ctx Context) (Environment, error) var _ EnvironmentFactory = NilEnvironmentFactory // NilEnvironmentFactory is an EnvironmentFactory that returns nil. func NilEnvironmentFactory(Context) (Environment, error) { return nil, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 27 15:52:38 UTC 2022 - 1.3K bytes - Viewed (0) -
pkg/test/framework/suite.go
} settings, err := s.getSettings(s.testID) if err != nil { return err } // Get the EnvironmentFactory. environmentFactory := s.envFactory if environmentFactory == nil { environmentFactory = settings.EnvironmentFactory } if environmentFactory == nil { environmentFactory = newEnvironment } if err := configureLogging(); err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 17.2K bytes - Viewed (0) -
pkg/test/framework/integration/main_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 18 20:37:32 UTC 2020 - 826 bytes - Viewed (0) -
pkg/test/framework/resource/settings.go
OnlyWorkloadClasses ArrayFlags // The label selector, in parsed form. Selector label.Selector // EnvironmentFactory allows caller to override the environment creation. If nil, a default is used based // on the known environment names. EnvironmentFactory EnvironmentFactory // Deprecated: prefer to use `--istio.test.revisions=<revision name>`. // The revision label on a namespace for injection webhook.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 19:04:51 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/test/framework/runtime.go
// runtime for the test environment. type runtime struct { context *suiteContext } // newRuntime returns a new runtime instance. func newRuntime(s *resource.Settings, fn resource.EnvironmentFactory, labels label.Set) (*runtime, error) { ctx, err := newSuiteContext(s, fn, labels) if err != nil { return nil, err } return &runtime{ context: ctx, }, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 26 17:50:56 UTC 2022 - 1.9K bytes - Viewed (0) -
pkg/test/framework/suitecontext.go
contextNames sets.String suiteLabels label.Set dumpCount *atomic.Uint64 traceContext context.Context traces sync.Map } func newSuiteContext(s *resource.Settings, envFn resource.EnvironmentFactory, labels label.Set) (*suiteContext, error) { scopeID := fmt.Sprintf("[suite(%s)]", s.TestID) workDir := path.Join(s.RunDir(), "_suite_context") if err := os.MkdirAll(workDir, os.ModePerm); err != nil {
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/components/echo/echotest/filters_test.go
}}, } all = echo.Instances{a1, a2, b1, b2, c1, c2, a1Ns2, a2Ns2, vm1, vm2, headless1, headless2, naked1, naked2, external1, external2} ) func TestMain(m *testing.M) { framework.NewSuite(m).EnvironmentFactory(resource.NilEnvironmentFactory).Run() } func TestDeployments(t *testing.T) { if diff := cmp.Diff( all.Services().NamespacedNames(), echo.NamespacedNames{ { Name: "a",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/test/framework/suite_test.go
g := NewWithT(t) actual := deriveSuiteName(c.caller) g.Expect(actual).To(Equal(c.expected)) }) } } func newFakeEnvironmentFactory(numClusters int) resource.EnvironmentFactory { e := kube.FakeEnvironment{NumClusters: numClusters} return func(ctx resource.Context) (resource.Environment, error) { return e, nil } } type OtherInterface interface { GetOtherValue() string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 11.5K bytes - Viewed (0)