Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 176 for NewTest (0.11 sec)

  1. 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)
  2. tests/integration/ambient/untaint/untaint_test.go

    	"testing"
    	"time"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/pkg/test/framework"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestTaintsRemoved(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(ctx framework.TestContext) {
    			// make cni not deploy to one of the nodes
    			taintNodes(ctx)
    
    			// make sure all nodes were untainted
    			retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. tests/integration/security/external_ca/reachability_test.go

    )
    
    // TestReachability verifies:
    // (a) Different workloads after getting their certificates signed by the K8s CA are successfully able to communicate with each other
    func TestReachability(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			istioCfg := istio.DefaultConfigOrFail(t, t)
    			namespace.ClaimOrFail(t, t, istioCfg.SystemNamespace)
    
    			from := apps.EchoNamespace.A
    			to := apps.EchoNamespace.B
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. tests/integration/security/filebased_tls_origination/destination_rule_tls_test.go

    // This sets up a client and server with appropriate cert config and ensures we can successfully send a message.
    func TestDestinationRuleTls(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			ns := appNS
    
    			// Setup our destination rule, enforcing TLS to "server". These certs will be created/mounted below.
    			t.ConfigIstio().YAML(ns.Name(), `
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. tests/integration/pilot/localwatcher/localsecretwatcher_test.go

    values:
      pilot:
        env:
          LOCAL_CLUSTER_SECRET_WATCHER: "true"`
    		})).
    		Setup(deployment.SetupSingleNamespace(&apps, deployment.Config{})).
    		Run()
    }
    
    func TestTraffic(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			common.RunAllTrafficTests(t, i, apps)
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. tests/integration/pilot/label_test.go

    	"istio.io/istio/pkg/test/framework/components/echo"
    	"istio.io/istio/pkg/test/framework/components/echo/check"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestLabelChanges(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			cfg := `apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: {{.Destination}}
    spec:
      hosts:
      - {{.Destination}}
      http:
      - route:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. tests/integration/telemetry/tracing/zipkin/client_tracing_test.go

    // are generated and that they are all a part of the same distributed trace with correct hierarchy and name.
    func TestClientTracing(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			appNsInst := tracing.GetAppNamespace()
    			for _, cluster := range t.Clusters().ByNetwork()[t.Clusters().Default().NetworkName()] {
    				cluster := cluster
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top