修复Docker测试环境初始化状态
为持久化测试库补充幂等管理员种子,并在功能测试中校验前端初始化状态,避免登录页被初始化提示拦截。
This commit is contained in:
1 parent
2f20a54f30
commit
9dcbe1e308
4 files changed
+62
-8
No files matched your search
@@ -7,6 +7,7 @@ test_instance() {
|
||||
cookie_file="/tmp/${name}.cookies"
|
||||
|
||||
curl -fsS "${base_url}/health" | grep -q '"status":"ok"'
|
||||
curl -fsS "${base_url}/verify" | grep -q '"initialized":true'
|
||||
curl -fsS -c "$cookie_file" -H 'Content-Type: application/json' \
|
||||
-d '{"username":"docker_fixture","password":"docker_fixture_password"}' \
|
||||
"${base_url}/login" | grep -q '"success":true'
|
||||
|
||||
Reference in new issue
Block a user