feat: db users: admin -> windmill_admin, app -> windmill_user (#404)

* feat: db users: admin -> windmill_admin, app -> windmill_user

* clean up

* backend tests

* backend tests

* backend tests

* lock roles in first migration

* check if user is superuser too

* add init-db

* add init-db
This commit is contained in:
Ruben Fiszel
2022-08-14 18:20:27 +02:00
committed by GitHub
parent 95844d3e23
commit 08374e7984
13 changed files with 171 additions and 156 deletions
+1 -3
View File
@@ -24,7 +24,6 @@ jobs:
image: postgres
env:
POSTGRES_DB: windmill
POSTGRES_USER: admin
POSTGRES_PASSWORD: changeme
options: >-
@@ -37,7 +36,6 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: backend -> target
- run: psql postgres://admin:changeme@postgres:5432/windmill -c "CREATE ROLE app LOGIN PASSWORD 'changeme';"
- name: cargo test
timeout-minutes: 5
run: mkdir frontend/build && cd backend && DATABASE_URL=postgres://admin:changeme@postgres:5432/windmill cargo test
run: mkdir frontend/build && cd backend && DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill cargo test