- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 49 for SetForTest (0.15 sec)
-
pkg/bootstrap/config_test.go
g.Expect(node.RawMetadata["WORKLOAD_NAME"]).To(Equal(expectWorkloadName)) g.Expect(node.Metadata.Labels[model.LocalityLabel]).To(Equal("region/zone/subzone")) } func TestSetIstioVersion(t *testing.T) { test.SetForTest(t, &version.Info.Version, "binary") testCases := []struct { name string meta *model.BootstrapNodeMetadata binaryVersion string expectedVersion string }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 9.1K bytes - Viewed (0) -
pilot/pkg/xds/bench_test.go
}, } func configureBenchmark(t test.Failer) { for _, s := range istiolog.Scopes() { if s.Name() == benchmarkScope.Name() { continue } s.SetOutputLevel(istiolog.NoneLevel) } test.SetForTest(t, &features.EnableXDSCaching, false) } func BenchmarkInitPushContext(b *testing.B) { configureBenchmark(b) for _, tt := range testCases { b.Run(tt.Name, func(b *testing.B) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0) -
pkg/config/gateway/gateway_test.go
}, enableQUICListeners: true, expected: true, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { test.SetForTest(t, &features.EnableQUICListeners, tc.enableQUICListeners) actual := IsEligibleForHTTP3Upgrade(tc.server) if actual != tc.expected { t.Errorf("IsEligibleForHTTP3Upgrade(%s) => %t, want %t",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 26 05:53:25 UTC 2022 - 10.5K bytes - Viewed (0) -
pkg/kube/controllers/example_test.go
}) // When the test is done, terminate the client. This ensures all informers are closed. // This usually doesn't matter, but can be useful when mutating global state with test.SetForTest, etc. defer c.Shutdown() // Normally: t.Cleanup(c.Shutdown) // Build our controller controller := NewController(c) // Ensure our queue finished processing events defer func() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 7K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
expNewCert: false, expCert: []byte{}, expKey: []byte{}, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { test.SetForTest(t, &features.PilotCertProvider, c.certProvider) test.SetForTest(t, &features.EnableCAServer, c.enableCA) // check if we have some tls assets to write for test if c.FSCertsPaths != (TLSFSLoadPaths{}) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_serviceentry_test.go
ClusterId: testC, }, }, }, }}) } func TestAmbientIndex_ServiceEntry_DisableK8SServiceSelectWorkloadEntries(t *testing.T) { test.SetForTest(t, &features.EnableK8SServiceSelectWorkloadEntries, false) s := newAmbientTestServer(t, testC, testNW) s.addPods(t, "140.140.0.10", "pod1", "sa1", map[string]string{"app": "a"}, nil, true, corev1.PodRunning)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 03:01:04 UTC 2024 - 12.9K bytes - Viewed (0) -
security/pkg/server/ca/server_test.go
remoteClusterPods: []pod{ztunnelPodRemote, podSameNodeRemote}, code: codes.OK, }, } for _, c := range testCases { t.Run(c.name, func(t *testing.T) { test.SetForTest(t, &features.CATrustedNodeAccounts, c.trustedNodeAccounts) multiClusterController := multicluster.NewFakeController() server, _ := New(c.ca, time.Duration(1), c.authenticators, multiClusterController)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 15.8K bytes - Viewed (0) -
pilot/pkg/networking/core/listener_test.go
test.SetForTest(t, &features.EnableSidecarServiceInboundListenerMerge, true) testInboundListenerConfigWithSidecarIngressPortMergeServicePort(t, getProxy(), buildServiceWithPort("test1.com", 80, protocol.HTTP, tnow.Add(1*time.Second))) }) t.Run("merge sidecar ingress and service ports, same port in both sidecar and service", func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 93.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/serviceimportcache_test.go
updatedVIPs := []string{"1.1.1.1", "1.1.1.2"} ic.setServiceImportVIPs(t, updatedVIPs) } func newTestServiceImportCache(t test.Failer) (*FakeController, *serviceImportCacheImpl) { test.SetForTest(t, &features.EnableMCSHost, true) c, _ := NewFakeControllerWithOptions(t, FakeControllerOptions{ ClusterID: serviceImportCluster, CRDs: []schema.GroupVersionResource{mcs.ServiceImportGVR}, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 14 18:50:38 UTC 2023 - 15.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceregistry_test.go
Address: workloadEntry.Spec.(*networking.WorkloadEntry).Address, Port: 80, }} expectServiceEndpoints(t, fx, expectedSvc, 80, instances) }) istiotest.SetForTest(t, &features.EnableSidecarHBONEListening, true) istiotest.SetForTest(t, &features.EnableAmbient, true) for _, ambient := range []bool{false, true} { name := "disabled" if ambient { name = "enabled" } m := mesh.DefaultMeshConfig()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 51.2K bytes - Viewed (0)