Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for TestOptions (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    		t.Fatalf("Failed to apply etcd options error: %v", err)
    	}
    	restOptions, err := serverConfig.RESTOptionsGetter.GetRESTOptions(schema.GroupResource{Group: "", Resource: ""})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if restOptions.StorageConfig.StorageObjectCountTracker != serverConfig.StorageObjectCountTracker {
    		t.Errorf("There are different StorageObjectCountTracker in restOptions and serverConfig")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener_builder_test.go

    	test.SetForTest(t, &features.EnableAdditionalIpv4OutboundListenerForIpv6Only, true)
    	cg := NewConfigGenTest(t, TestOptions{Services: testServices})
    	proxy := cg.SetupProxy(&model.Proxy{IPAddresses: []string{"1111:2222::1"}})
    
    	listeners := buildListeners(t, TestOptions{Services: testServices}, proxy)
    	vo := xdstest.ExtractListener(model.VirtualOutboundListenerName, listeners)
    	if vo == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/networkfilter_test.go

    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			m := mesh.DefaultMeshConfig()
    			m.InboundClusterStatName = tt.statPattern
    			cg := NewConfigGenTest(t, TestOptions{
    				Services:   services,
    				MeshConfig: m,
    			})
    
    			fcc := inboundChainConfig{
    				telemetryMetadata: telemetry.FilterChainMetadata{InstanceHostname: "v0.default.example.org"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/fake.go

    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/retry"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/wellknown"
    )
    
    type TestOptions struct {
    	// If provided, these configs will be used directly
    	Configs        []config.Config
    	ConfigPointers []*config.Config
    
    	// If provided, the yaml string will be parsed and used as configs
    	ConfigString string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. pilot/pkg/xds/proxy_dependencies_test.go

    				want: false,
    			})
    		}
    	}
    
    	// test for gateway proxy dependencies.
    	cg := core.NewConfigGenTest(t, core.TestOptions{
    		Services: []*model.Service{
    			{
    				Hostname: svcName,
    				Attributes: model.ServiceAttributes{
    					ExportTo:  sets.New(visibility.Public),
    					Namespace: nsName,
    				},
    			},
    			{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/accesslog_test.go

    			// Update MeshConfig
    			m := mesh.DefaultMeshConfig()
    			m.AccessLogFile = "foo"
    			m.AccessLogEncoding = tc.encoding
    			m.AccessLogFormat = tc.format
    			listeners := buildListeners(t, TestOptions{MeshConfig: m}, nil)
    			if len(listeners) != 2 {
    				t.Errorf("expected to have 2 listeners, but got %v", len(listeners))
    			}
    			// Validate that access log filter uses the new format.
    			for _, l := range listeners {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/conversion_test.go

    				}, &model.ServiceInstance{
    					Service:     svc,
    					ServicePort: ports[2],
    					Endpoint:    &model.IstioEndpoint{},
    				})
    			}
    			cg := core.NewConfigGenTest(t, core.TestOptions{
    				Services:  services,
    				Instances: instances,
    			})
    			kr := splitInput(t, input)
    			kr.Context = NewGatewayContext(cg.PushContext(), "Kubernetes")
    			output := convertResources(kr)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 20:24:52 UTC 2024
    - 34.9K bytes
    - Viewed (0)
  8. pkg/kubeapiserver/options/authentication_test.go

    			}
    			if len(errs) == 0 && len(testcase.expectErr) != 0 {
    				t.Errorf("Got err nil, Expected err: %s", testcase.expectErr)
    			}
    		})
    	}
    }
    
    func TestToAuthenticationConfig(t *testing.T) {
    	testOptions := &BuiltInAuthenticationOptions{
    		Anonymous: &AnonymousAuthenticationOptions{
    			Allow: false,
    		},
    		ClientCert: &apiserveroptions.ClientCertAuthenticationOptions{
    			ClientCA: "testdata/root.pem",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  9. pkg/bootstrap/option/instances_test.go

    	meshAPI "istio.io/api/mesh/v1alpha1"
    	networkingAPI "istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pkg/bootstrap/option"
    	"istio.io/istio/pkg/model"
    )
    
    // nolint: lll
    func TestOptions(t *testing.T) {
    	cases := []struct {
    		testName    string
    		key         string
    		option      option.Instance
    		expectError bool
    		expected    any
    	}{
    		{
    			testName: "proxy config",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  10. pilot/test/xds/fake.go

    		DomainSuffix: "cluster.local",
    	})
    	defaultKubeClient.RunAndWait(stop)
    
    	var gwc *gateway.Controller
    	cg := core.NewConfigGenTest(t, core.TestOptions{
    		Configs:             opts.Configs,
    		ConfigString:        opts.ConfigString,
    		ConfigTemplateInput: opts.ConfigTemplateInput,
    		ConfigController:    configController,
    		MeshConfig:          m,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top