CBG-4336: add updated at field for persisted configs #12535
Annotations
3 errors
Run Tests
Process completed with exit code 1.
|
Annotate Failures:
auth_test.go#L329
auth_test.go:329:
Error Trace: /Users/runner/work/sync_gateway/sync_gateway/auth/auth_test.go:329
Error: Not equal:
expected: &auth.roleImpl{Name_:"testRole", ExplicitChannels_:channels.TimedSet{"test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Channels_:channels.TimedSet{"!":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}, "test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Sequence_:0x0, ChannelHistory_:auth.TimedSetHistory(nil), ChannelInvalSeq:0x0, Deleted:false, CollectionsAccess:map[string]map[string]*auth.CollectionAccess(nil), UpdatedAt:time.Date(2025, time.January, 7, 9, 53, 37, 559460000, time.Local), cas:0x1818605f042b0000, docID:"_sync:role:testRole"}
actual : &auth.roleImpl{Name_:"testRole", ExplicitChannels_:channels.TimedSet{"test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Channels_:channels.TimedSet{"!":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}, "test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Sequence_:0x0, ChannelHistory_:auth.TimedSetHistory(nil), ChannelInvalSeq:0x0, Deleted:false, CollectionsAccess:map[string]map[string]*auth.CollectionAccess(nil), UpdatedAt:time.Date(2025, time.January, 7, 9, 53, 37, 559460000, time.UTC), cas:0x1818605f042b0000, docID:"_sync:role:testRole"}
Diff:
--- Expected
+++ Actual
@@ -24,30 +24,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734235253485216,
- ext: (int64) 44852042,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- name: (string) (len=3) "UTC",
- offset: (int) 0,
- isDST: (bool) false
- }
- },
- tx: ([]time.zoneTrans) (len=1) {
- (time.zoneTrans) {
- when: (int64) -9223372036854775808,
- index: (uint8) 0,
- isstd: (bool) false,
- isutc: (bool) false
- }
- },
- extend: (string) (len=4) "UTC0",
- cacheStart: (int64) -9223372036854775808,
- cacheEnd: (int64) 9223372036854775807,
- cacheZone: (*time.zone)({
- name: (string) (len=3) "UTC",
- offset: (int) 0,
- isDST: (bool) false
- })
- })
+ wall: (uint64) 559460000,
+ ext: (int64) 63871840417,
+ loc: (*time.Location)(<nil>)
},
Test: TestSaveRoles
---
|
Annotate Failures:
auth_test.go#L313
auth_test.go:313:
Error Trace: /Users/runner/work/sync_gateway/sync_gateway/auth/auth_test.go:313
Error: Not equal:
expected: &auth.userImpl{roleImpl:auth.roleImpl{Name_:"testUser", ExplicitChannels_:channels.TimedSet{"test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Channels_:channels.TimedSet{"!":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}, "test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Sequence_:0x0, ChannelHistory_:auth.TimedSetHistory(nil), ChannelInvalSeq:0x0, Deleted:false, CollectionsAccess:map[string]map[string]*auth.CollectionAccess(nil), UpdatedAt:time.Date(2025, time.January, 7, 9, 53, 37, 764011000, time.Local), cas:0x1818605f105d0000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x54, 0x2f, 0x4a, 0x42, 0x36, 0x2f, 0x58, 0x2e, 0x6c, 0x76, 0x49, 0x54, 0x4c, 0x30, 0x43, 0x7a, 0x2f, 0x35, 0x31, 0x67, 0x6a, 0x75, 0x69, 0x4b, 0x67, 0x6f, 0x72, 0x62, 0x72, 0x73, 0x33, 0x51, 0x6a, 0x78, 0x37, 0x4e, 0x79, 0x38, 0x30, 0x70, 0x61, 0x4c, 0x65, 0x53, 0x53, 0x56, 0x69, 0x32, 0x6c, 0x4d, 0x43, 0x35, 0x61}, OldPasswordHash_:interface {}(nil), ExplicitRoles_:channels.TimedSet(nil), JWTRoles_:channels.TimedSet(nil), JWTChannels_:channels.TimedSet(nil), JWTIssuer_:"", JWTLastUpdated_:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), RolesSince_:channels.TimedSet{}, RoleInvalSeq:0x0, RoleHistory_:auth.TimedSetHistory(nil), SessionUUID_:"02777886-7707-40a0-aa30-fdb560b29e59", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0x1400003c3f0), roles:[]auth.Role(nil), deletedRoles:[]auth.Role(nil), warnChanThresholdOnce:sync.Once{done:atomic.Uint32{_:atomic.noCopy{}, v:0x0}, m:sync.Mutex{state:0, sema:0x0}}}
actual : &auth.userImpl{roleImpl:auth.roleImpl{Name_:"testUser", ExplicitChannels_:channels.TimedSet{"test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Channels_:channels.TimedSet{"!":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}, "test":channels.VbSequence{VbNo:(*uint16)(nil), Sequence:0x1}}, Sequence_:0x0, ChannelHistory_:auth.TimedSetHistory(nil), ChannelInvalSeq:0x0, Deleted:false, CollectionsAccess:map[string]map[string]*auth.CollectionAccess(nil), UpdatedAt:time.Date(2025, time.January, 7, 9, 53, 37, 764011000, time.UTC), cas:0x1818605f105d0000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x54, 0x2f, 0x4a, 0x42, 0x36, 0x2f, 0x58, 0x2e, 0x6c, 0x76, 0x49, 0x54, 0x4c, 0x30, 0x43, 0x7a, 0x2f, 0x35, 0x31, 0x67, 0x6a, 0x75, 0x69, 0x4b, 0x67, 0x6f, 0x72, 0x62, 0x72, 0x73, 0x33, 0x51, 0x6a, 0x78, 0x37, 0x4e, 0x79, 0x38, 0x30, 0x70, 0x61, 0x4c, 0x65, 0x53, 0x53, 0x56, 0x69, 0x32, 0x6c, 0x4d, 0x43, 0x35, 0x61}, OldPasswordHash_:interface {}(nil), ExplicitRoles_:channels.TimedSet(nil), JWTRoles_:channels.TimedSet(nil), JWTChannels_:channels.TimedSet(nil), JWTIssuer_:"", JWTLastUpdated_:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), RolesSince_:channels.TimedSet{}, RoleInvalSeq:0x0, RoleHistory_:auth.TimedSetHistory(nil), SessionUUID_:"02777886-7707-40a0-aa30-fdb560b29e59", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0x1400003c3f0), roles:[]auth.Role(nil), deletedRoles:[]auth.Role(nil), warnChanThresholdOnce:sync.Once{done:atomic.Uint32{_:atomic.noCopy{}, v:0x0}, m:sync.Mutex{state:0, sema:0x0}}}
Diff:
--- Expected
+++ Actual
@@ -25,30 +25,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734235458036216,
- ext: (int64) 249300542,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- na
|
Loading