Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for FromMatch (0.12 sec)

  1. tests/integration/security/reachability_test.go

    						}
    						t.NewSubTestf("%s%s", schemeStr, opts.HTTP.Path).Run(func(t framework.TestContext) {
    							// Run the test cases.
    							echotest.New(t, allServices.Instances()).
    								FromMatch(match.And(c.fromMatch, match.NotProxylessGRPC)).
    								ToMatch(match.And(c.toMatch, match.NotProxylessGRPC)).
    								WithDefaultFilters(1, 1).
    								ConditionallyTo(echotest.NoSelfCalls).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. tests/integration/security/authz_test.go

    			denied := apps.Ns2.A
    
    			from := allowed.Append(denied)
    			fromMatch := match.AnyServiceName(from.NamespacedNames())
    			toMatch := match.Not(fromMatch)
    			to := toMatch.GetServiceMatches(apps.Ns1.All)
    			fromAndTo := to.Instances().Append(from)
    
    			newTrafficTest(t, fromAndTo).
    				FromMatch(fromMatch).
    				ToMatch(toMatch).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  3. tests/integration/security/external_ca/reachability_test.go

    			from := apps.EchoNamespace.A
    			to := apps.EchoNamespace.B
    			fromAndTo := from.Append(to)
    
    			echotest.New(t, fromAndTo).
    				WithDefaultFilters(1, 1).
    				FromMatch(match.ServiceName(from.NamespacedName())).
    				ToMatch(match.ServiceName(to.NamespacedName())).
    				Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    					// Verify mTLS works between a and 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. pkg/test/framework/components/echo/echotest/echotest.go

    	copy(s, instances)
    	copy(d, instances)
    	t := &T{
    		rootCtx:      ctx,
    		cfg:          config.New(ctx),
    		sources:      s,
    		destinations: d,
    	}
    	if ctx.Settings().Skip(echo.VM) {
    		t = t.FromMatch(match.NotVM).ToMatch(match.NotVM)
    	}
    	return t
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 23:26:33 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. tests/integration/security/https_jwt/https_jwt_test.go

    							args := map[string]string{
    								"Namespace": ns.Name(),
    								"dst":       to.Config().Service,
    							}
    							return t.ConfigIstio().EvalFile(ns.Name(), args, c.policyFile).Apply(apply.Wait)
    						}).
    						FromMatch(
    							// TODO(JimmyCYJ): enable VM for all test cases.
    							util.SourceMatcher(ns, true)).
    						ConditionallyTo(echotest.ReachableDestinations).
    						ToMatch(util.DestMatcher(ns, true)).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. tests/integration/security/cacert_rotation/main_test.go

    			if err != nil {
    				t.Errorf("failed to get workload cert last update time: %v", err)
    			}
    
    			// Verify traffic works between a and b
    			echotest.New(t, fromAndTo).
    				WithDefaultFilters(1, 1).
    				FromMatch(match.ServiceName(from.NamespacedName())).
    				ToMatch(match.ServiceName(to.NamespacedName())).
    				Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    					// Verify mTLS works between a and b
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. tests/integration/security/remote_jwks/remote_jwks_test.go

    								"dst":       to.Config().Service,
    								"delay":     c.delay,
    								"timeout":   c.timeout,
    							}
    							return t.ConfigIstio().EvalFile(ns.Name(), args, c.policyFile).Apply(apply.Wait)
    						}).
    						FromMatch(
    							// TODO(JimmyCYJ): enable VM for all test cases.
    							util.SourceMatcher(ns, true)).
    						ConditionallyTo(echotest.ReachableDestinations).
    						ToMatch(util.DestMatcher(ns, true)).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. tests/integration/security/normalization_test.go

    					istio.GetOrFail(t, t).PatchMeshConfigOrFail(t, t, fmt.Sprintf(`
    pathNormalization:
      normalization: %v`, tt.ntype.String()))
    
    					newTrafficTest(t, apps.Ns1.All.Instances()).
    						FromMatch(match.ServiceName(apps.Ns1.A.NamespacedName())).
    						Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    							for _, expected := range tt.expectations {
    								expected := expected
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. tests/integration/security/pass_through_filter_chain_test.go

      trafficPolicy:
        tls:
          mode: ISTIO_MUTUAL
    ---`)).
    						BuildAll(nil, apps.Ns1.All).
    						Apply()
    
    					echotest.New(t, apps.Ns1.All.Instances()).
    						WithDefaultFilters(1, 1).
    						FromMatch(match.NotProxylessGRPC).
    						ToMatch(match.And(
    							// TODO(nmittler): Why not headless/multiversion?
    							match.NotHeadless,
    							match.NotMultiVersion,
    							match.NotNaked,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/echotest/filters.go

    //	  Run()
    func (t *T) From(filters ...Filter) *T {
    	for _, filter := range filters {
    		t.sources = filter(t.sources)
    	}
    	return t
    }
    
    func (t *T) FromMatch(m match.Matcher) *T {
    	return t.From(FilterMatch(m))
    }
    
    // To applies each of the filter functions in order to allow removing workloads from the set of destinations.
    // Example:
    //
    //	echotest.New(t, apps).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 29 23:48:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top