Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for volerr (0.07 sec)

  1. operator/pkg/validate/validate_values_test.go

    			if err != nil {
    				t.Fatalf("yaml.Unmarshal(%s): got error %s", tt.desc, err)
    			}
    			errs := CheckValues(util.MustStruct(root))
    			if gotErr, wantErr := errs, tt.wantErrs; !util.EqualErrors(gotErr, wantErr) {
    				t.Errorf("CheckValues(%s)(%v): gotErr:%s, wantErr:%s", tt.desc, tt.yamlStr, gotErr, wantErr)
    			}
    		})
    	}
    }
    
    func TestValidateValuesFromProfile(t *testing.T) {
    	tests := []struct {
    		profile  string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. security/pkg/server/ca/authenticate/oidc_test.go

    			}
    			ctx = metadata.NewIncomingContext(ctx, md)
    
    			actualCaller, err := authenticator.Authenticate(security.AuthContext{GrpcContext: ctx})
    			gotErr := err != nil
    			if gotErr != tc.expectErr {
    				t.Errorf("gotErr (%v) whereas expectErr (%v)", gotErr, tc.expectErr)
    			}
    			if gotErr {
    				return
    			}
    			expectedCaller := &security.Caller{
    				AuthSource: security.AuthSourceIDToken,
    				Identities: []string{tc.expectedID},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt_test.go

    		u, err := url.Parse(testCase.reqURL)
    		if err != nil {
    			t.Fatal(err)
    		}
    		d, err := GetDefaultExpiration(u.Query().Get("DurationSeconds"))
    		gotErr := (err != nil)
    		if testCase.expectErr != gotErr {
    			t.Errorf("Test %d: Expected %v, got %v with error %s", i+1, testCase.expectErr, gotErr, err)
    		}
    		if d != testCase.duration {
    			t.Errorf("Test %d: Expected duration %d, got %d", i+1, testCase.duration, d)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/log/slog/value_test.go

    	v = AnyValue(panickingLogValue{})
    	got = v.Resolve().Any()
    	gotErr, ok := got.(error)
    	if !ok {
    		t.Errorf("expected error, got %T", got)
    	}
    	// The error should provide some context information.
    	// We'll just check that this function name appears in it.
    	if got, want := gotErr.Error(), "TestLogValue"; !strings.Contains(got, want) {
    		t.Errorf("got %q, want substring %q", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top