feat: add internal alpha frontend shell
This commit is contained in:
1 parent
eeb3c7634e
commit
b741fd799b
10 files changed
+1982
-15
No files matched your search
@@ -149,7 +149,7 @@ echo "Checking the unauthenticated login gate..."
|
||||
setup_status="$(curl --fail --silent "${base_url}/api/auth/setup-status")"
|
||||
[[ "${setup_status}" == *'"setup_required":true'* ]]
|
||||
[[ "$(status_for "" GET /login)" == "200" ]]
|
||||
for path in dashboard repairs locations system-health accounts; do
|
||||
for path in dashboard repairs locations system-health accounts monitoring/map operations/repairs assets/miners; do
|
||||
[[ "$(status_for "" GET "/${path}")" == "303" ]]
|
||||
done
|
||||
[[ "$(status_for "" GET /api/scanner/status)" == "401" ]]
|
||||
@@ -162,6 +162,11 @@ setup_response="$(curl --fail --silent -c "${admin_cookie}" \
|
||||
[[ "${setup_response}" == *'"role":"Admin"'* ]]
|
||||
[[ "$(status_for "${admin_cookie}" GET /dashboard)" == "200" ]]
|
||||
[[ "$(status_for "${admin_cookie}" GET /accounts)" == "200" ]]
|
||||
for path in monitoring/map operations/repairs assets/miners; do
|
||||
[[ "$(status_for "${admin_cookie}" GET "/${path}")" == "200" ]]
|
||||
done
|
||||
[[ "$(status_for "" GET /assets/minerops-app.css)" == "200" ]]
|
||||
[[ "$(status_for "" GET /assets/minerops-app.js)" == "200" ]]
|
||||
|
||||
for account in \
|
||||
'manager|Operations Manager|Manager|manager@example.com' \
|
||||
@@ -196,6 +201,9 @@ for login in \
|
||||
"${base_url}/api/auth/login")"
|
||||
[[ "${login_response}" == *"\"role\":\"${role}\""* ]]
|
||||
[[ "$(status_for "${cookie_jar}" GET /dashboard)" == "200" ]]
|
||||
[[ "$(status_for "${cookie_jar}" GET /monitoring/map)" == "200" ]]
|
||||
[[ "$(status_for "${cookie_jar}" GET /operations/repairs)" == "200" ]]
|
||||
[[ "$(status_for "${cookie_jar}" GET /assets/miners)" == "200" ]]
|
||||
done
|
||||
|
||||
[[ "$(status_for "${manager_cookie}" GET /system-health)" == "200" ]]
|
||||
|
||||
Reference in new issue
Block a user