CBG-4336: add updated at field for persisted configs #12535
Annotations
3 errors and 1 warning
Run Tests
Process completed with exit code 1.
|
Annotate Failures:
auth_test.go#L329
auth_test.go:329:
Error Trace: /home/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, 54, 38, 481375813, time.Local), cas:0x1818606d33660000, 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, 54, 38, 481375813, time.UTC), cas:0x1818606d33660000, docID:"_sync:role:testRole"}
Diff:
--- Expected
+++ Actual
@@ -24,30 +24,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734300673652293,
- ext: (int64) 141096397,
- 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) 481375813,
+ ext: (int64) 63871840478,
+ loc: (*time.Location)(<nil>)
},
Test: TestSaveRoles
---
|
Annotate Failures:
auth_test.go#L313
auth_test.go:313:
Error Trace: /home/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, 54, 40, 209114040, time.Local), cas:0x1818606d9a620000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x51, 0x4a, 0x67, 0x57, 0x44, 0x71, 0x44, 0x35, 0x6b, 0x34, 0x39, 0x37, 0x73, 0x70, 0x39, 0x6d, 0x6b, 0x77, 0x46, 0x46, 0x5a, 0x65, 0x71, 0x39, 0x35, 0x37, 0x74, 0x7a, 0x73, 0x34, 0x48, 0x5a, 0x30, 0x62, 0x37, 0x39, 0x4f, 0x66, 0x66, 0x31, 0x49, 0x50, 0x61, 0x56, 0x42, 0x6a, 0x41, 0x6b, 0x49, 0x4e, 0x32, 0x44, 0x79}, 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_:"a47ea12a-f6e4-498e-9c81-f7952caf9867", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc0003ac7e0), 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, 54, 40, 209114040, time.UTC), cas:0x1818606d9a620000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x51, 0x4a, 0x67, 0x57, 0x44, 0x71, 0x44, 0x35, 0x6b, 0x34, 0x39, 0x37, 0x73, 0x70, 0x39, 0x6d, 0x6b, 0x77, 0x46, 0x46, 0x5a, 0x65, 0x71, 0x39, 0x35, 0x37, 0x74, 0x7a, 0x73, 0x34, 0x48, 0x5a, 0x30, 0x62, 0x37, 0x39, 0x4f, 0x66, 0x66, 0x31, 0x49, 0x50, 0x61, 0x56, 0x42, 0x6a, 0x41, 0x6b, 0x49, 0x4e, 0x32, 0x44, 0x79}, 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_:"a47ea12a-f6e4-498e-9c81-f7952caf9867", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc0003ac7e0), 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) 13967734302548874168,
- ext: (int64) 1868834643,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- name
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading