Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for TestOptions (0.15 sec)

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

    	netutils "k8s.io/utils/net"
    )
    
    func TestServerRunOptionsValidate(t *testing.T) {
    	testCases := []struct {
    		name        string
    		testOptions *ServerRunOptions
    		expectErr   string
    	}{
    		{
    			name: "Test when MaxRequestsInFlight is negative value",
    			testOptions: &ServerRunOptions{
    				AdvertiseAddress:            netutils.ParseIPSloppy("192.168.10.10"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:49 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/log/scope_test.go

    			stackLevel: DebugLevel,
    		},
    	}
    
    	for i, c := range cases {
    		t.Run(strconv.Itoa(i), func(t *testing.T) {
    			var exitCalled bool
    			lines, err := captureStdout(func() {
    				o := testOptions()
    				o.JSONEncoding = c.json
    
    				if err := Configure(o); err != nil {
    					t.Errorf("Got err '%v', expecting success", err)
    				}
    
    				pt := funcs.Load().(patchTable)
    				pt.exitProcess = func(_ int) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top