mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
Update MongoDB user insertion to use upsert for idempotency
This commit is contained in:
parent
1d7b2ec7b2
commit
f331f75e12
1 changed files with 12 additions and 6 deletions
18
.github/workflows/e2e-testing.yml
vendored
18
.github/workflows/e2e-testing.yml
vendored
|
|
@ -94,12 +94,18 @@ jobs:
|
|||
key: ${{ secrets.EC2_SSH_KEY }}
|
||||
script: |
|
||||
sudo docker exec wekan-db mongosh wekan --eval '
|
||||
db.users.insertOne({
|
||||
username: "omriza5",
|
||||
password: "123456",
|
||||
email: "omriza5@gmail.com",
|
||||
isAdmin: false
|
||||
})
|
||||
db.users.updateOne(
|
||||
{ username: "omriza5" },
|
||||
{
|
||||
$setOnInsert: {
|
||||
username: "omriza5",
|
||||
password: "123456",
|
||||
email: "omriza5@gmail.com",
|
||||
isAdmin: false
|
||||
}
|
||||
},
|
||||
{ upsert: true }
|
||||
)
|
||||
'
|
||||
|
||||
- name: Run API tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue