fix(ci): repair integration repository tests
This commit is contained in:
@@ -38,6 +38,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
|
|||||||
|
|
||||||
TRUNCATE TABLE
|
TRUNCATE TABLE
|
||||||
auth_identity_channels,
|
auth_identity_channels,
|
||||||
|
identity_adoption_decisions,
|
||||||
auth_identities,
|
auth_identities,
|
||||||
auth_identity_migration_reports,
|
auth_identity_migration_reports,
|
||||||
user_external_identities,
|
user_external_identities,
|
||||||
@@ -235,6 +236,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
|
|||||||
|
|
||||||
TRUNCATE TABLE
|
TRUNCATE TABLE
|
||||||
auth_identity_channels,
|
auth_identity_channels,
|
||||||
|
identity_adoption_decisions,
|
||||||
auth_identities,
|
auth_identities,
|
||||||
auth_identity_migration_reports,
|
auth_identity_migration_reports,
|
||||||
user_external_identities,
|
user_external_identities,
|
||||||
@@ -424,6 +426,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
|
|||||||
|
|
||||||
TRUNCATE TABLE
|
TRUNCATE TABLE
|
||||||
auth_identity_channels,
|
auth_identity_channels,
|
||||||
|
identity_adoption_decisions,
|
||||||
auth_identities,
|
auth_identities,
|
||||||
auth_identity_migration_reports,
|
auth_identity_migration_reports,
|
||||||
user_external_identities,
|
user_external_identities,
|
||||||
|
|||||||
@@ -61,14 +61,14 @@ func (s *UserRepoSuite) TestCreateAndRead_PreservesSignupSourceAndActivityTimest
|
|||||||
|
|
||||||
created := s.mustCreateUser(&service.User{
|
created := s.mustCreateUser(&service.User{
|
||||||
Email: "identity-meta@example.com",
|
Email: "identity-meta@example.com",
|
||||||
SignupSource: "github",
|
SignupSource: "linuxdo",
|
||||||
LastLoginAt: &lastLoginAt,
|
LastLoginAt: &lastLoginAt,
|
||||||
LastActiveAt: &lastActiveAt,
|
LastActiveAt: &lastActiveAt,
|
||||||
})
|
})
|
||||||
|
|
||||||
got, err := s.repo.GetByID(s.ctx, created.ID)
|
got, err := s.repo.GetByID(s.ctx, created.ID)
|
||||||
s.Require().NoError(err)
|
s.Require().NoError(err)
|
||||||
s.Require().Equal("github", got.SignupSource)
|
s.Require().Equal("linuxdo", got.SignupSource)
|
||||||
s.Require().NotNil(got.LastLoginAt)
|
s.Require().NotNil(got.LastLoginAt)
|
||||||
s.Require().NotNil(got.LastActiveAt)
|
s.Require().NotNil(got.LastActiveAt)
|
||||||
s.Require().True(got.LastLoginAt.Equal(lastLoginAt))
|
s.Require().True(got.LastLoginAt.Equal(lastLoginAt))
|
||||||
|
|||||||
Reference in New Issue
Block a user