@@ -304,7 +304,7 @@ func TestService_handleGetAuthorization(t *testing.T) {
304304 },
305305 },
306306 },
307- HashedToken : "hello" ,
307+ Token : "hello" ,
308308 }, nil
309309 }
310310
@@ -461,15 +461,15 @@ func TestService_handleGetAuthorizations(t *testing.T) {
461461 return []* influxdb.Authorization {
462462 {
463463 ID : itesting .MustIDBase16 ("0d0a657820696e74" ),
464- HashedToken : "hello" ,
464+ Token : "hello" ,
465465 UserID : itesting .MustIDBase16 ("2070616e656d2076" ),
466466 OrgID : itesting .MustIDBase16 ("3070616e656d2076" ),
467467 Description : "t1" ,
468468 Permissions : influxdb .OperPermissions (),
469469 },
470470 {
471471 ID : itesting .MustIDBase16 ("6669646573207375" ),
472- HashedToken : "example" ,
472+ Token : "example" ,
473473 UserID : itesting .MustIDBase16 ("6c7574652c206f6e" ),
474474 OrgID : itesting .MustIDBase16 ("9d70616e656d2076" ),
475475 Description : "t2" ,
@@ -553,15 +553,15 @@ func TestService_handleGetAuthorizations(t *testing.T) {
553553 return []* influxdb.Authorization {
554554 {
555555 ID : itesting .MustIDBase16 ("0d0a657820696e74" ),
556- HashedToken : "hello" ,
556+ Token : "hello" ,
557557 UserID : itesting .MustIDBase16 ("2070616e656d2076" ),
558558 OrgID : itesting .MustIDBase16 ("3070616e656d2076" ),
559559 Description : "t1" ,
560560 Permissions : influxdb .OperPermissions (),
561561 },
562562 {
563563 ID : itesting .MustIDBase16 ("6669646573207375" ),
564- HashedToken : "example" ,
564+ Token : "example" ,
565565 UserID : itesting .MustIDBase16 ("6c7574652c206f6e" ),
566566 OrgID : itesting .MustIDBase16 ("9d70616e656d2076" ),
567567 Description : "t2" ,
@@ -629,15 +629,15 @@ func TestService_handleGetAuthorizations(t *testing.T) {
629629 return []* influxdb.Authorization {
630630 {
631631 ID : itesting .MustIDBase16 ("0d0a657820696e74" ),
632- HashedToken : "hello" ,
632+ Token : "hello" ,
633633 UserID : itesting .MustIDBase16 ("2070616e656d2076" ),
634634 OrgID : itesting .MustIDBase16 ("3070616e656d2076" ),
635635 Description : "t1" ,
636636 Permissions : influxdb .OperPermissions (),
637637 },
638638 {
639639 ID : itesting .MustIDBase16 ("6669646573207375" ),
640- HashedToken : "example" ,
640+ Token : "example" ,
641641 UserID : itesting .MustIDBase16 ("6c7574652c206f6e" ),
642642 OrgID : itesting .MustIDBase16 ("9d70616e656d2076" ),
643643 Description : "t2" ,
@@ -928,7 +928,7 @@ func jsonDiffErr(s1, s2 string) (diff string, err error) {
928928
929929var authorizationCmpOptions = cmp.Options {
930930 cmpopts .EquateEmpty (),
931- cmpopts .IgnoreFields (influxdb.Authorization {}, "ID" , "Token" , "HashedToken" , " CreatedAt" , "UpdatedAt" ),
931+ cmpopts .IgnoreFields (influxdb.Authorization {}, "ID" , "Token" , "CreatedAt" , "UpdatedAt" ),
932932 cmp .Comparer (func (x , y []byte ) bool {
933933 return bytes .Equal (x , y )
934934 }),
0 commit comments