From 5fe1350923f3ad8257062f78df07f9fa0164d68e Mon Sep 17 00:00:00 2001 From: nannan00 <17491932+nannan00@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:21:33 +0800 Subject: [PATCH] fix: unit test --- .github/workflows/bk-login.yml | 3 ++- src/bk-login/bklogin/settings.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bk-login.yml b/.github/workflows/bk-login.yml index acbbbeb56..663e0ba89 100644 --- a/.github/workflows/bk-login.yml +++ b/.github/workflows/bk-login.yml @@ -69,9 +69,10 @@ jobs: run: | # random secret export BK_APP_SECRET="fod6MKVTVi_3M5HgGoj-qI7b3l0dgCzTBwGypnDz4vg=" + export BK_USER_APP_SECRET="Vi_3M5HgGogCzTBwGypnDz4vgfod6MKVTj-qI7b3l0d=" # random secret key export BKKRILL_ENCRYPT_SECRET_KEY="tttHSBLiVdQPItrfy7n9dV7AxAUMZpYVkD6IHMbL0VE=" - export BK_USER_URL="" + export BK_DOMAIN="example.com" export BK_COMPONENT_API_URL="" export MYSQL_PASSWORD=root_pwd export MYSQL_HOST="127.0.0.1" diff --git a/src/bk-login/bklogin/settings.py b/src/bk-login/bklogin/settings.py index 378b95046..6371eb1fd 100644 --- a/src/bk-login/bklogin/settings.py +++ b/src/bk-login/bklogin/settings.py @@ -81,7 +81,7 @@ DATABASES = { "default": { "ENGINE": "django.db.backends.mysql", - "NAME": env.str("MYSQL_NAME", "bk-user"), + "NAME": env.str("MYSQL_NAME", "bk-login"), "USER": env.str("MYSQL_USER", "root"), "PASSWORD": env.str("MYSQL_PASSWORD", ""), "HOST": env.str("MYSQL_HOST", "localhost"),