Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for testregex (0.15 sec)

  1. pkg/config/validation/virtualservice.go

    				errs = appendErrors(errs, ValidateHTTPHeaderNameOrJwtClaimRoute(name))
    				// `*` is NOT a RE2 style regex, it will be translated as present_match.
    				if header != nil && header.GetRegex() != "*" {
    					errs = appendErrors(errs, validateStringMatch(header, "withoutHeaders"))
    				}
    			}
    
    			// uri allows empty prefix match:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. src/internal/zstd/zstd_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			gotstr := string(got)
    			if gotstr != test.uncompressed {
    				t.Errorf("got %q want %q", gotstr, test.uncompressed)
    			}
    		})
    	}
    }
    
    func TestReset(t *testing.T) {
    	input := strings.NewReader("")
    	r := NewReader(input)
    	for _, test := range tests {
    		test := test
    		t.Run(test.name, func(t *testing.T) {
    			input.Reset(test.compressed)
    			r.Reset(input)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:39:21 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

            assertUrlLink("smb:/home/taro/%E3%81%82.txt", //
                    "file://home/taro/%E3%81%82.txt");
    
            PathMapping pathMapping = new PathMapping();
            pathMapping.setRegex("ftp:");
            pathMapping.setReplacement("file:");
            ComponentUtil.getPathMappingHelper().cachedPathMappingList.add(pathMapping);
            // ftp->file
            assertUrlLink("ftp:/home/taro/test.txt", //
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/route/route_test.go

    			serviceRegistry, nil, 8080, gatewayNames, route.RouteOptions{})
    		xdstest.ValidateRoutes(t, routes)
    		g.Expect(err).NotTo(HaveOccurred())
    		g.Expect(len(routes)).To(Equal(1))
    		g.Expect(routes[0].GetMatch().GetSafeRegex().GetRegex()).To(Equal("\\/(.?)\\/status"))
    	})
    
    	t.Run("for virtual service with stat_prefix set for a match on URI", func(t *testing.T) {
    		g := NewWithT(t)
    		cg := core.NewConfigGenTest(t, core.TestOptions{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  5. pkg/bootstrap/instance_test.go

    		case "suffix":
    			pat = pattern.GetSuffix()
    		case "regexp":
    			// Migration tracked in https://github.com/istio/istio/issues/17127
    			//nolint: staticcheck
    			pat = pattern.GetSafeRegex().GetRegex()
    		}
    
    		if pat != "" {
    			patterns = append(patterns, pat)
    		}
    	}
    	gotPattern := strings.Join(patterns, ",")
    	if want != gotPattern {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/route/route.go

    		switch ps.(type) {
    		case *route.RouteMatch_Prefix:
    			path = m.GetPrefix() + "*"
    		case *route.RouteMatch_Path:
    			path = m.GetPath()
    		case *route.RouteMatch_SafeRegex:
    			path = m.GetSafeRegex().GetRegex()
    		}
    	}
    
    	// If there is only one destination cluster in route, return host:port/uri as description of route.
    	// Otherwise there are multiple destination clusters and destination host is not clear. For that case
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  7. src/os/signal/signal_test.go

    	Notify(c1, syscall.SIGWINCH)
    	Notify(c2, syscall.SIGHUP)
    	quiesce()
    }
    
    // Test that Reset cancels registration for listed signals on all channels.
    func TestReset(t *testing.T) {
    	testCancel(t, false)
    }
    
    // Test that Ignore cancels registration for listed signals on all channels.
    func TestIgnore(t *testing.T) {
    	testCancel(t, true)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  8. pkg/config/validation/validation.go

    }
    
    func validateStringMatchRegexp(sm *networking.StringMatch, where string) error {
    	switch sm.GetMatchType().(type) {
    	case *networking.StringMatch_Regex:
    	default:
    		return nil
    	}
    	re := sm.GetRegex()
    	if re == "" {
    		return fmt.Errorf("%q: regex string match should not be empty", where)
    	}
    	return validateStringRegexp(re, where)
    }
    
    func validateStringRegexp(re string, where string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/conversion.go

    	case *istio.StringMatch_Prefix:
    		return len(match.Uri.GetPrefix())
    	case *istio.StringMatch_Exact:
    		return len(match.Uri.GetExact())
    	case *istio.StringMatch_Regex:
    		return len(match.Uri.GetRegex())
    	}
    	// should not happen
    	return -1
    }
    
    func parentMeta(obj config.Config, sectionName *k8s.SectionName) map[string]string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  10. cmd/testdata/decryptObjectInfo.json.zst

    33wptHGcqGw/ijCVswlHZubrXLPR6MuW+A0mC0///nWcx+TY1vAVBxlV1TOzvQ==","X-Minio-Internal-Server-Side-Encryption-Seal-Algorithm":"DAREv2-HMAC-SHA256","content-type":"application/octet-stream"}},{"Bucket":"buck1","Name":"go_113/src/cmd/go/testdata/src/testregexp/z_test.go","UserDef":{"X-Minio-Internal-Server-Side-Encryption-Iv":"4IGcMdwV2ef90Tuxtaxh=","X-Minio-Internal-Server-Side-Encryption-S3-Kms-Key-Id":"my-minio-key","X-Minio-Internal-Server-Side-Encryption-S3-Kms-Sealed-Key":"IAAfAO7Vah7nkRCGIDSd=...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Oct 29 16:34:20 UTC 2020
    - 164K bytes
    - Viewed (0)
Back to top