Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NamespacedNames (0.35 sec)

  1. pkg/test/framework/components/echo/instances.go

    		app := app
    		g.Go(app.Restart)
    	}
    	return g.Wait().ErrorOrNil()
    }
    
    func (i Instances) Len() int {
    	return len(i)
    }
    
    func (i Instances) NamespacedNames() NamespacedNames {
    	out := make(NamespacedNames, 0, i.Len())
    	for _, ii := range i {
    		out = append(out, ii.NamespacedName())
    	}
    
    	sort.Stable(out)
    	return out
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 18:26:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. tests/integration/security/authz_test.go

    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			allowed := apps.Ns1.A
    			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)
    
    			config.New(t).
    				Source(config.File("testdata/authz/mtls.yaml.tmpl")).
    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/filebased_tls_origination/main_test.go

    	for index, namespacedName := range apps.Ns1.All.NamespacedNames() {
    		switch {
    		case namespacedName.Name == "client":
    			client = apps.Ns1.All[index]
    		case namespacedName.Name == "server":
    			server = apps.Ns1.All[index]
    		case namespacedName.Name == "internal-client":
    			internalClient = apps.Ns1.All[index]
    		}
    	}
    	for index, namespacedName := range apps.Ns2.All.NamespacedNames() {
    		switch {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/echotest/filters_test.go

    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{
    			{
    				Name:      "a",
    				Namespace: echo1NS,
    			},
    			{
    				Name:      "a",
    				Namespace: echo2NS,
    			},
    			{
    				Name:      "b",
    				Namespace: echo1NS,
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. pkg/test/framework/components/echo/match/matchers.go

    		return n == i.NamespacedName()
    	}
    }
    
    // AnyServiceName matches instances if they have the same Service and Namespace as any of the provided instances.
    func AnyServiceName(expected echo.NamespacedNames) Matcher {
    	return func(instance echo.Instance) bool {
    		serviceName := instance.NamespacedName()
    		for _, expectedName := range expected {
    			if serviceName == expectedName {
    				return true
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. tests/integration/security/ca_custom_root/main_test.go

    `, map[string]string{"pem": rootPEM})
    	cfg.ControlPlaneValues = cfgYaml
    }
    
    func createCustomInstances(apps *deployment.SingleNamespaceView) error {
    	for index, namespacedName := range apps.EchoNamespace.All.NamespacedNames() {
    		switch {
    		case namespacedName.Name == "client":
    			client = apps.EchoNamespace.All[index]
    		case namespacedName.Name == "server":
    			server = apps.EchoNamespace.All[index]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/echotest/filters.go

    	return func(instances echo.Instances) echo.Instances {
    		// Apply the filters.
    		regularPods := match.And(
    			match.RegularPod,
    			match.Not(match.AnyServiceName(exclude.NamespacedNames()))).GetMatches(instances)
    
    		if len(regularPods) == 0 {
    			return regularPods
    		}
    
    		// Pick regular pods per namespace, up to needed
    		namespaces := map[string]int{}
    		var outServices echo.Services
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 29 23:48:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. tests/integration/security/file_mounted_certs/main_test.go

    	*customCfg = customConfig
    	return nil
    }
    
    func createCustomInstances(apps *deployment.SingleNamespaceView) error {
    	for index, namespacedName := range apps.EchoNamespace.All.NamespacedNames() {
    		switch {
    		case namespacedName.Name == "client":
    			client = apps.EchoNamespace.All[index]
    		case namespacedName.Name == "server":
    			server = apps.EchoNamespace.All[index]
    		}
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. tests/integration/pilot/common/routing.go

    							return fmt.Errorf("split configured for %d destinations, but framework gives %d", len(split), len(dests))
    						}
    						splitPerHost := map[echo.NamespacedName]int{}
    						destNames := dests.NamespacedNames()
    						for i, pct := range split {
    							splitPerHost[destNames[i]] = pct
    						}
    						for serviceName, exp := range splitPerHost {
    							hostResponses := result.Responses.Match(func(r echoClient.Response) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
Back to top