CBG-4336: add updated at field for persisted configs #12535
ci.yml
on: pull_request
build
1m 31s
addlicense
17s
lint
1m 51s
test-race
5m 29s
test-default-collection
4m 5s
test-no-xattrs
4m 13s
python-format
7s
python-lint
7s
Matrix: test-sgcollect
Matrix: test-stats-definition-exporter
Matrix: test
Annotations
20 errors and 11 warnings
test (macos)
Process completed with exit code 1.
|
test (macos):
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
---
|
test (macos):
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
|
test-default-collection
Process completed with exit code 1.
|
test-default-collection:
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, 21, 855927301, time.Local), cas:0x1818606954720000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x47, 0x2f, 0x6d, 0x59, 0x46, 0x44, 0x6d, 0x38, 0x76, 0x6e, 0x33, 0x37, 0x71, 0x37, 0x65, 0x74, 0x51, 0x36, 0x4d, 0x6d, 0x76, 0x65, 0x6a, 0x39, 0x36, 0x48, 0x42, 0x33, 0x56, 0x2e, 0x77, 0x56, 0x34, 0x54, 0x41, 0x4a, 0x49, 0x54, 0x4c, 0x4b, 0x41, 0x65, 0x46, 0x62, 0x64, 0x4d, 0x4c, 0x4d, 0x71, 0x4b, 0x6b, 0x4e, 0x4f}, 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_:"e7709cb4-7725-483e-b367-9a2fb240e37b", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc00044a000), 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, 21, 855927301, time.UTC), cas:0x1818606954720000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x47, 0x2f, 0x6d, 0x59, 0x46, 0x44, 0x6d, 0x38, 0x76, 0x6e, 0x33, 0x37, 0x71, 0x37, 0x65, 0x74, 0x51, 0x36, 0x4d, 0x6d, 0x76, 0x65, 0x6a, 0x39, 0x36, 0x48, 0x42, 0x33, 0x56, 0x2e, 0x77, 0x56, 0x34, 0x54, 0x41, 0x4a, 0x49, 0x54, 0x4c, 0x4b, 0x41, 0x65, 0x46, 0x62, 0x64, 0x4d, 0x4c, 0x4d, 0x71, 0x4b, 0x6b, 0x4e, 0x4f}, 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_:"e7709cb4-7725-483e-b367-9a2fb240e37b", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc00044a000), 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) 13967734282794592773,
- ext: (int64) 1688048280,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- name
|
test-default-collection:
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, 22, 638524203, time.Local), cas:0x1818606983180000, 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, 22, 638524203, time.UTC), cas:0x1818606983180000, docID:"_sync:role:testRole"}
Diff:
--- Expected
+++ Actual
@@ -24,30 +24,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734283650931499,
- ext: (int64) 2470645182,
- 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) 638524203,
+ ext: (int64) 63871840462,
+ loc: (*time.Location)(<nil>)
},
Test: TestSaveRoles
---
|
test-default-collection:
config_test.go#L3159
config_test.go:3159:
Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/config_test.go:3159
Error: Received unexpected error:
key "_sync:user:db1:user1" missing
Test: TestUserUpdatedAtField
---
|
test-default-collection:
config_test.go#L3196
config_test.go:3196:
Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/config_test.go:3196
Error: Received unexpected error:
key "_sync:role:db1:role1" missing
Test: TestRoleUpdatedAtField
---
|
test-no-xattrs:
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, 28, 607689722, time.Local), cas:0x1818606ae6e20000, 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, 28, 607689722, time.UTC), cas:0x1818606ae6e20000, docID:"_sync:role:testRole"}
Diff:
--- Expected
+++ Actual
@@ -24,30 +24,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734290062547962,
- ext: (int64) 3052921930,
- 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) 607689722,
+ ext: (int64) 63871840468,
+ loc: (*time.Location)(<nil>)
},
Test: TestSaveRoles
---
|
test-no-xattrs:
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, 29, 127420992, time.Local), cas:0x1818606b05dd0000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x33, 0x4f, 0x6c, 0x56, 0x7a, 0x64, 0x6d, 0x52, 0x52, 0x39, 0x62, 0x55, 0x4a, 0x79, 0x5a, 0x37, 0x33, 0x69, 0x41, 0x7a, 0x72, 0x2e, 0x7a, 0x39, 0x70, 0x5a, 0x79, 0x76, 0x57, 0x2f, 0x64, 0x7a, 0x31, 0x73, 0x2f, 0x41, 0x41, 0x4d, 0x50, 0x33, 0x7a, 0x50, 0x39, 0x68, 0x30, 0x33, 0x6f, 0x37, 0x4f, 0x65, 0x6a, 0x64, 0x71}, 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_:"f476e5d0-c7b1-45e0-af1f-68d56024d297", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc000434690), 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, 29, 127420992, time.UTC), cas:0x1818606b05dd0000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x33, 0x4f, 0x6c, 0x56, 0x7a, 0x64, 0x6d, 0x52, 0x52, 0x39, 0x62, 0x55, 0x4a, 0x79, 0x5a, 0x37, 0x33, 0x69, 0x41, 0x7a, 0x72, 0x2e, 0x7a, 0x39, 0x70, 0x5a, 0x79, 0x76, 0x57, 0x2f, 0x64, 0x7a, 0x31, 0x73, 0x2f, 0x41, 0x41, 0x4d, 0x50, 0x33, 0x7a, 0x50, 0x39, 0x68, 0x30, 0x33, 0x6f, 0x37, 0x4f, 0x65, 0x6a, 0x64, 0x71}, 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_:"f476e5d0-c7b1-45e0-af1f-68d56024d297", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc000434690), 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) 13967734290656021056,
- ext: (int64) 3572653230,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- name
|
test-no-xattrs
Process completed with exit code 1.
|
test (ubuntu)
Process completed with exit code 1.
|
test (ubuntu):
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
---
|
test (ubuntu):
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
|
test-race
Process completed with exit code 1.
|
test-race:
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, 29, 541993550, time.Local), cas:0x1818606b1e930000, 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, 29, 541993550, time.UTC), cas:0x1818606b1e930000, docID:"_sync:role:testRole"}
Diff:
--- Expected
+++ Actual
@@ -24,30 +24,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734291070593614,
- ext: (int64) 3611019568,
- 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) 541993550,
+ ext: (int64) 63871840469,
+ loc: (*time.Location)(<nil>)
},
Test: TestSaveRoles
---
|
test-race:
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, 39, 735458714, time.Local), cas:0x1818606d7e290000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x50, 0x4b, 0x71, 0x72, 0x70, 0x32, 0x56, 0x73, 0x4e, 0x4f, 0x37, 0x72, 0x58, 0x4e, 0x43, 0x44, 0x68, 0x4a, 0x62, 0x4d, 0x55, 0x2e, 0x53, 0x31, 0x77, 0x4d, 0x76, 0x4f, 0x38, 0x48, 0x44, 0x54, 0x37, 0x65, 0x55, 0x6e, 0x42, 0x79, 0x6d, 0x32, 0x47, 0x47, 0x76, 0x79, 0x48, 0x33, 0x41, 0x48, 0x76, 0x35, 0x35, 0x2e, 0x65}, 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_:"4ebba5fb-5c63-436c-ba1b-af724462ab4e", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc00015e000), 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, 39, 735458714, time.UTC), cas:0x1818606d7e290000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x50, 0x4b, 0x71, 0x72, 0x70, 0x32, 0x56, 0x73, 0x4e, 0x4f, 0x37, 0x72, 0x58, 0x4e, 0x43, 0x44, 0x68, 0x4a, 0x62, 0x4d, 0x55, 0x2e, 0x53, 0x31, 0x77, 0x4d, 0x76, 0x4f, 0x38, 0x48, 0x44, 0x54, 0x37, 0x65, 0x55, 0x6e, 0x42, 0x79, 0x6d, 0x32, 0x47, 0x47, 0x76, 0x79, 0x48, 0x33, 0x41, 0x48, 0x76, 0x35, 0x35, 0x2e, 0x65}, 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_:"4ebba5fb-5c63-436c-ba1b-af724462ab4e", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc00015e000), 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) 13967734302001477018,
- ext: (int64) 13804484752,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- nam
|
test (windows):
auth_test.go#L313
auth_test.go:313:
Error Trace: D:/a/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, 55, 19, 891876900, time.Local), cas:0x18186076d7a80000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x66, 0x77, 0x55, 0x38, 0x4f, 0x4b, 0x6a, 0x5a, 0x65, 0x69, 0x73, 0x57, 0x43, 0x48, 0x30, 0x76, 0x49, 0x42, 0x33, 0x66, 0x75, 0x4f, 0x63, 0x4a, 0x4e, 0x51, 0x4c, 0x77, 0x6c, 0x73, 0x35, 0x38, 0x68, 0x59, 0x35, 0x6c, 0x73, 0x50, 0x68, 0x4c, 0x76, 0x35, 0x54, 0x50, 0x55, 0x73, 0x47, 0x76, 0x67, 0x41, 0x45, 0x42, 0x6d}, 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_:"1f825401-2ed5-44e1-a936-1bc87a06fbc8", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc00038e1c0), 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, 55, 19, 891876900, time.UTC), cas:0x18186076d7a80000, docID:"_sync:user:testUser"}, userImplBody:auth.userImplBody{Email_:"", Disabled_:false, PasswordHash_:[]uint8{0x24, 0x32, 0x61, 0x24, 0x30, 0x34, 0x24, 0x66, 0x77, 0x55, 0x38, 0x4f, 0x4b, 0x6a, 0x5a, 0x65, 0x69, 0x73, 0x57, 0x43, 0x48, 0x30, 0x76, 0x49, 0x42, 0x33, 0x66, 0x75, 0x4f, 0x63, 0x4a, 0x4e, 0x51, 0x4c, 0x77, 0x6c, 0x73, 0x35, 0x38, 0x68, 0x59, 0x35, 0x6c, 0x73, 0x50, 0x68, 0x4c, 0x76, 0x35, 0x54, 0x50, 0x55, 0x73, 0x47, 0x76, 0x67, 0x41, 0x45, 0x42, 0x6d}, 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_:"1f825401-2ed5-44e1-a936-1bc87a06fbc8", OldExplicitRoles_:[]string(nil)}, auth:(*auth.Authenticator)(0xc00038e1c0), 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) 13967734345107568164,
- ext: (int64) 2099988401,
- loc: (*time.Location)({
- name: (string) (len=5) "Local",
- zone: ([]time.zone) (len=1) {
- (time.zone) {
- name: (string) (l
|
test (windows):
auth_test.go#L329
auth_test.go:329:
Error Trace: D:/a/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, 55, 20, 404664900, time.Local), cas:0x18186076f6390000, 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, 55, 20, 404664900, time.UTC), cas:0x18186076f6390000, docID:"_sync:role:testRole"}
Diff:
--- Expected
+++ Actual
@@ -24,30 +24,5 @@
UpdatedAt: (time.Time) {
- wall: (uint64) 13967734345694097988,
- ext: (int64) 2612774501,
- 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) "",
- cacheStart: (int64) -9223372036854775808,
- cacheEnd: (int64) 9223372036854775807,
- cacheZone: (*time.zone)({
- name: (string) (len=3) "UTC",
- offset: (int) 0,
- isDST: (bool) false
- })
- })
+ wall: (uint64) 404664900,
+ ext: (int64) 63871840520,
+ loc: (*time.Location)(<nil>)
},
Test: TestSaveRoles
---
|
test (windows)
Process completed with exit code 1.
|
python-format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
python-lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
addlicense
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-sgcollect (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-stats-definition-exporter (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-default-collection
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-no-xattrs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test (ubuntu)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-race
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|