Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 71 for matchList (0.16 sec)

  1. src/path/filepath/match_test.go

    import (
    	"fmt"
    	"internal/testenv"
    	"os"
    	. "path/filepath"
    	"reflect"
    	"runtime"
    	"slices"
    	"strings"
    	"testing"
    )
    
    type MatchTest struct {
    	pattern, s string
    	match      bool
    	err        error
    }
    
    var matchTests = []MatchTest{
    	{"abc", "abc", true, nil},
    	{"*", "abc", true, nil},
    	{"*c", "abc", true, nil},
    	{"a*", "a", true, nil},
    	{"a*", "abc", true, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

    			scope.err(err, w, req)
    			return
    		}
    
    		metainternalversion.SetListOptionsDefaults(&listOptions, utilfeature.DefaultFeatureGate.Enabled(features.WatchList))
    		if errs := metainternalversionvalidation.ValidateListOptions(&listOptions, utilfeature.DefaultFeatureGate.Enabled(features.WatchList)); len(errs) > 0 {
    			err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "ListOptions"}, "", errs)
    			scope.err(err, w, req)
    			return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:32 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/cache/secretcache_test.go

    				t.Fatalf("expected: %v, got: %v", c.expErr, err)
    			}
    			t.Logf("file watch: %v\n", sc.certWatcher.WatchList())
    			if c.expErr == nil && len(sc.certWatcher.WatchList()) != 1 {
    				t.Fatalf("expected certWatcher to watch 1 file, but it is watching: %d files", len(sc.certWatcher.WatchList()))
    			}
    			for _, v := range sc.certWatcher.WatchList() {
    				if v != c.expFilePathToWatch {
    					t.Fatalf(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    	if resourceVersion > 0 {
    		return resourceVersion, nil
    	}
    	if !utilfeature.DefaultFeatureGate.Enabled(features.WatchList) {
    		return 0, nil
    	}
    	if opts.SendInitialEvents == nil || *opts.SendInitialEvents {
    		// note that when opts.SendInitialEvents=true
    		// we will be issuing a consistent LIST request
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go

    	}
    	return len(p), nil
    }
    
    var _ io.Writer = &websocketFramer{}
    
    func shouldRecordWatchListLatency(event watch.Event) bool {
    	if event.Type != watch.Bookmark || !utilfeature.DefaultFeatureGate.Enabled(features.WatchList) {
    		return false
    	}
    	// as of today the initial-events-end annotation is added only to a single event
    	// by the watch cache and only when certain conditions are met
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 16:37:25 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    	"LIST":             "list",
    	"PATCH":            "patch",
    	"POST":             "create",
    	"PROXY":            "proxy",
    	"PUT":              "update",
    	"WATCH":            "watch",
    	"WATCHLIST":        "watch",
    }
    
    // Install handlers for API resources.
    func (a *APIInstaller) Install() ([]metav1.APIResource, []*storageversion.ResourceInfo, *restful.WebService, []error) {
    	var apiResources []metav1.APIResource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. pkg/test/framework/testcontext.go

    	allLabels := s.suiteLabels.Merge(labels)
    	if !s.settings.Selector.Selects(allLabels) {
    		goTest.Skipf("Skipping: label mismatch: labels=%v, filter=%v", allLabels, s.settings.Selector)
    	}
    
    	if s.settings.SkipMatcher.MatchTest(goTest.Name()) {
    		goTest.Skipf("Skipping: test %v matched -istio.test.skip regex", goTest.Name())
    	}
    
    	scopes.Framework.Debugf("Creating New test context")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. src/regexp/all_test.go

    	for i := 0; i < len(goodRe); i++ {
    		compileTest(t, goodRe[i], "")
    	}
    }
    
    func TestBadCompile(t *testing.T) {
    	for i := 0; i < len(badRe); i++ {
    		compileTest(t, badRe[i].re, badRe[i].err)
    	}
    }
    
    func matchTest(t *testing.T, test *FindTest) {
    	re := compileTest(t, test.pat, "")
    	if re == nil {
    		return
    	}
    	m := re.MatchString(test.text)
    	if m != (len(test.matches) > 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/width_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    )
    
    func TestWorkEstimator(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchList, true)
    
    	defaultCfg := DefaultWorkEstimatorConfig()
    
    	tests := []struct {
    		name                      string
    		requestURI                string
    		requestInfo               *apirequest.RequestInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/artifacts/openapi/swagger-with-shared-parameters.json

              }
            },
            "schemes": [
              "https"
            ],
            "tags": [
              "core_v1"
            ],
            "x-kubernetes-action": "watchlist",
            "x-kubernetes-group-version-kind": {
              "group": "",
              "kind": "ConfigMap",
              "version": "v1"
            }
          },
          "parameters": [
            {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 2.3M bytes
    - Viewed (0)
Back to top