Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewSuite (0.3 sec)

  1. pkg/test/framework/suite.go

    		}
    	}
    	return strings.ReplaceAll(d, "/", "_")
    }
    
    // NewSuite returns a new suite instance.
    func NewSuite(m *testing.M) Suite {
    	_, f, _, _ := goruntime.Caller(1)
    	suiteName := deriveSuiteName(f)
    
    	return newSuite(suiteName,
    		func(_ *suiteContext) int {
    			return m.Run()
    		},
    		os.Exit,
    		getSettings)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. tests/integration/ambient/cnirepair/main_test.go

    // If a test requires a custom install it should go into its own package, otherwise it should go
    // here to reuse a single install across tests.
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		RequireMinVersion(24).
    		Label(label.IPv4). // https://github.com/istio/istio/issues/41008
    		Setup(func(t resource.Context) error {
    			t.Settings().Ambient = true
    			return nil
    		}).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 09 09:12:45 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tests/integration/ambient/main_test.go

    // If a test requires a custom install it should go into its own package, otherwise it should go
    // here to reuse a single install across tests.
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		RequireMinVersion(24).
    		Label(label.IPv4). // https://github.com/istio/istio/issues/41008
    		Setup(func(t resource.Context) error {
    			t.Settings().Ambient = true
    			return nil
    		}).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. pkg/test/framework/suite_test.go

    	rt = nil
    }
    
    // Create a bogus environment for testing. This can be removed when "environments" are removed
    func newTestSuite(testID string, fn mRunFn, osExit func(int), getSettingsFn getSettingsFunc) *suiteImpl {
    	s := newSuite(testID, fn, osExit, getSettingsFn)
    	s.envFactory = func(ctx resource.Context) (resource.Environment, error) {
    		return kube.FakeEnvironment{}, nil
    	}
    	return s
    }
    
    func TestSuite_Basic(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. 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{
    			{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top