Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for NewTest (0.3 sec)

  1. tests/integration/pilot/analyze_test.go

    	jsonOutput           = "-ojson"
    )
    
    var analyzerFoundIssuesError = analyze.AnalyzerFoundIssuesError{}
    
    func TestEmptyCluster(t *testing.T) {
    	// nolint: staticcheck
    	framework.
    		NewTest(t).
    		RequiresSingleCluster().
    		Run(func(t framework.TestContext) {
    			g := NewWithT(t)
    
    			ns := namespace.NewOrFail(t, t, namespace.Config{
    				Prefix: "istioctl-analyze",
    				Inject: true,
    			})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. tests/integration/security/jwt_test.go

    	payload3 := strings.Split(jwt.TokenIssuer1WithNestedClaims2, ".")[1]
    	framework.NewTest(t).
    		Label(label.IPv4). // https://github.com/istio/istio/issues/35835
    		Run(func(t framework.TestContext) {
    			type testCase struct {
    				name          string
    				customizeCall func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions)
    			}
    
    			newTest := func(policy string, cases []testCase) func(framework.TestContext) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  3. tests/integration/pilot/istioctl_test.go

    // TestVersion does "istioctl version --remote=true" to verify the CLI understands the data plane version data
    func TestVersion(t *testing.T) {
    	// nolint: staticcheck
    	framework.
    		NewTest(t).RequiresSingleCluster().
    		Run(func(t framework.TestContext) {
    			cfg := i.Settings()
    
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Environment().Clusters()[0]})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. tests/integration/ambient/waypoint_test.go

    	kubetest "istio.io/istio/pkg/test/kube"
    	"istio.io/istio/pkg/test/scopes"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestWaypointStatus(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			client := t.Clusters().Default().GatewayAPI().GatewayV1beta1().GatewayClasses()
    
    			check := func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. tests/integration/security/sds_ingress/ingress_test.go

    // (4) verify that client using the newer CA cert is able to establish TLS connection
    // to deliver the HTTPS request.
    func TestSingleTlsGateway_SecretRotation(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			var (
    				credName = "testsingletlsgateway-secretrotation"
    				host     = "testsingletlsgateway-secretrotation.example.com"
    			)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  6. tests/integration/telemetry/api/wasmplugin_test.go

    			t.Fatal(err)
    		}
    		sendTraffic(t, check.ResponseHeader(injectedHeader, ""), retry.Converge(2))
    	})
    }
    
    func TestImagePullPolicy(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			tag := names.SimpleNameGenerator.GenerateName("test-tag-")
    			applyAndTestWasmWithOCI(t, wasmTestConfigs{
    				desc:            "initial creation with 0.0.1",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. tests/integration/telemetry/api/accesslogs_test.go

    			})
    		})
    }
    
    func TestAccessLogsFilter(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			runAccessLogFilterTests(t, false)
    			t.ConfigIstio().File(apps.Namespace.Name(), "./testdata/accesslog/filter.yaml").ApplyOrFail(t)
    			runAccessLogFilterTests(t, true)
    		})
    }
    
    func TestAccessLogsMode(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. tests/integration/README.md

        framework.
            NewSuite("mysuite", m).
            Run()
    }
    ```
    
    Next, define your tests in the same package:
    
    ```go
    func TestMyLogic(t *testing.T) {
        framework.
            NewTest(t).
            Run(func(ctx framework.TestContext) {
                // Create a component
                p := pilot.NewOrFail(ctx, ctx, cfg)
    
                // Use the component.
                // Apply Kubernetes Config
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. tests/integration/telemetry/api/stats_test.go

    // of metrics, which should be covered by integration test in proxy repo.
    func TestStatsFilter(t *testing.T) {
    	expectedBuckets := DefaultBucketCount
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			// Enable strict mTLS. This is needed for mock secured prometheus scraping test.
    			t.ConfigIstio().YAML(ist.Settings().SystemNamespace, PeerAuthenticationConfig).ApplyOrFail(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  10. pkg/test/framework/test.go

    	minIstioVersion           string
    	minKubernetesMinorVersion uint
    	topLevel                  bool
    
    	ctx *testContext
    	tc  context2.Context
    	ts  traceapi.Span
    }
    
    // NewTest returns a new test wrapper for running a single test.
    func NewTest(t *testing.T) Test {
    	rtMu.Lock()
    	defer rtMu.Unlock()
    
    	if rt == nil {
    		panic("call to scope without running the test framework")
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top