- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for set_regex (0.21 sec)
-
pilot/pkg/security/authz/matcher/header_test.go
}, }, }, } for _, tc := range testCases { t.Run(tc.Name, func(t *testing.T) { actual := HostMatcherWithRegex(tc.K, tc.V) if re := actual.GetStringMatch().GetSafeRegex().GetRegex(); re != "" { _, err := regexp.Compile(re) if err != nil { t.Errorf("failed to compile regex %s: %v", re, err) } } if !cmp.Equal(tc.Expect, actual, protocmp.Transform()) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 6.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
} } companion object { private const val DEFAULT_DURATION_MILLIS = 1000L * 60 * 60 * 24 // 24 hours. } } companion object { private val PEM_REGEX = Regex("""-----BEGIN ([!-,.-~ ]*)-----([^-]*)-----END \1-----""") /** * Decodes a multiline string that contains both a [certificate][certificatePem] and a
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
pilot/pkg/simulation/traffic.go
} case *route.RouteMatch_Path: if input.Path != pt.Path { continue } case *route.RouteMatch_SafeRegex: r, err := regexp.Compile(pt.SafeRegex.GetRegex()) if err != nil { sim.t.Fatalf("invalid regex %v: %v", pt.SafeRegex.GetRegex(), err) } if !r.MatchString(input.Path) { continue } default: sim.t.Fatalf("unknown route path type %T", pt) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 19.4K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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)