Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for TestOptions (0.51 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/route/route_test.go

    		out.IstioVersion.Minor = 21
    		return out
    	}
    
    	gatewayNames := sets.New("some-gateway")
    
    	t.Run("for virtual service", func(t *testing.T) {
    		g := NewWithT(t)
    		cg := core.NewConfigGenTest(t, core.TestOptions{})
    
    		t.Setenv("ISTIO_DEFAULT_REQUEST_TIMEOUT", "0ms")
    
    		routes, err := route.BuildHTTPRoutesForVirtualService(node(cg), virtualServicePlain, serviceRegistry, nil, 8080, gatewayNames, route.RouteOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/fuzz_test.go

    	f.Fuzz(func(t *testing.T, patchCount int, hostname string, data []byte) {
    		defer fuzz.Finalize()
    		fg := fuzz.New(t, data)
    		proxy := fuzz.Struct[*model.Proxy](fg)
    		to := fuzz.Struct[TestOptions](fg)
    		lb := fuzz.Struct[*ListenerBuilder](fg)
    		cg := NewConfigGenTest(t, to)
    		lb.node = cg.SetupProxy(proxy)
    		lb.push = cg.PushContext()
    		cg.ConfigGen.buildGatewayListeners(lb)
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. 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)
  6. tests/fuzz/v1alpha3_fuzzer.go

    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/networking/core"
    	"istio.io/istio/tests/fuzz/utils"
    )
    
    func init() {
    	testing.Init()
    }
    
    func ValidateTestOptions(to core.TestOptions) error {
    	for _, csc := range to.ConfigStoreCaches {
    		if csc == nil {
    			return errors.New("a ConfigStoreController was nil")
    		}
    	}
    	for _, sr := range to.ServiceRegistries {
    		if sr == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. pkg/log/default_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package log
    
    import (
    	"encoding/json"
    	"regexp"
    	"strconv"
    	"testing"
    	"time"
    )
    
    func testOptions() *Options {
    	return DefaultOptions()
    }
    
    func TestDefault(t *testing.T) {
    	cases := []struct {
    		f          func()
    		pat        string
    		json       bool
    		caller     bool
    		wantExit   bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/listener_test.go

    	t.Helper()
    	listeners := buildListeners(t, TestOptions{Services: services}, proxy)
    	verifyFilterChainMatch(t, xdstest.ExtractListener(model.VirtualInboundListenerName, listeners))
    }
    
    func testInboundListenerConfigWithConflictPort(t *testing.T, proxy *model.Proxy, services ...*model.Service) {
    	t.Helper()
    	listeners := buildListeners(t, TestOptions{Services: services}, proxy)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top