Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
FogDong
2022-04-12 14:30:34 +08:00
parent 1b3768ca73
commit e54fc776b0
@@ -184,7 +184,7 @@ var _ = Describe("Test authentication usecase functions", func() {
It("Test get dex config", func() {
_, err := authUsecase.GetDexConfig(context.Background())
Expect(err).Should(Equal(bcode.ErrInvalidDexConfig))
err = ds.Add(context.Background(), &model.User{Name: "test", Email: "test@test.com"})
err = ds.Add(context.Background(), &model.User{Name: "admin", Email: "test@test.com"})
Expect(err).Should(BeNil())
_, err = sysUsecase.UpdateSystemInfo(context.Background(), apisv1.SystemInfoRequest{
LoginType: model.LoginTypeDex,