- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for NamespacedNames (0.4 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)