Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wildcardAsRequired (0.18 sec)

  1. pilot/pkg/security/authz/matcher/string_test.go

    type testCase struct {
    	name   string
    	v      string
    	prefix string
    	want   *matcher.StringMatcher
    }
    
    func TestStringMatcherWithPrefix(t *testing.T) {
    	testCases := []testCase{
    		{
    			name:   "wildcardAsRequired",
    			v:      "*",
    			prefix: "abc",
    			want:   StringMatcherRegex(".+"),
    		},
    		{
    			name:   "prefix",
    			v:      "-prefix-*",
    			prefix: "abc",
    			want: &matcher.StringMatcher{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 17 22:42:11 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top