Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NewSuite (0.27 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/README.md

    ```console
    $ cd ${ISTIO}/tests/integration
    $ mkdir mysuite
    ```
    
    Within that package, create a `TestMain` to bootstrap the test suite:
    
    ```go
    func TestMain(m *testing.M) {
        framework.
            NewSuite("mysuite", m).
            Run()
    }
    ```
    
    Next, define your tests in the same package:
    
    ```go
    func TestMyLogic(t *testing.T) {
        framework.
            NewTest(t).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K 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. tests/integration/security/file_mounted_certs/main_test.go

          "ISTIO_META_TLS_SERVER_KEY": "/server-certs/key.pem",
          "ISTIO_META_TLS_SERVER_ROOT_CERT": "/server-certs/root-cert.pem",
    	}
    `
    )
    
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		Label(label.CustomSetup).
    		RequireSingleCluster().
    		RequireMultiPrimary().
    		Setup(istio.Setup(&inst, setupConfig, CreateCustomIstiodSecret)).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tests/integration/pilot/mcs/discoverability/discoverability_test.go

    	hostTypes = []hostType{hostTypeClusterSetLocal, hostTypeClusterLocal}
    
    	serviceA match.Matcher
    	serviceB match.Matcher
    )
    
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		Label(label.CustomSetup).
    		RequireMinVersion(17).
    		RequireMinClusters(2).
    		Setup(common.InstallMCSCRDs).
    		Setup(istio.Setup(&i, enableMCSServiceDiscovery)).
    		Setup(common.DeployEchosFunc("mcs", &echos)).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. tests/integration/security/sds_ingress/ingress_test.go

    	apps         deployment.SingleNamespaceView
    	echo1NS      namespace.Instance
    	customConfig []echo.Config
    )
    
    func TestMain(m *testing.M) {
    	// Integration test for the ingress SDS Gateway flow.
    	framework.
    		NewSuite(m).
    		Setup(istio.Setup(&inst, nil)).
    		Setup(namespace.Setup(&echo1NS, namespace.Config{Prefix: "echo1", Inject: true})).
    		Setup(func(ctx resource.Context) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top