Przeglądaj źródła

Add activation key for new bubble's first login in test

pull/14/head
Kristijan Mitrovic 4 lat temu
rodzic
commit
ae975334e9
2 zmienionych plików z 10 dodań i 4 usunięć
  1. +9
    -2
      bubble-server/src/test/resources/models/include/new_bubble.json
  2. +1
    -2
      bubble-server/src/test/resources/models/tests/live/backup_and_restore.json

+ 9
- 2
bubble-server/src/test/resources/models/include/new_bubble.json Wyświetl plik

@@ -183,11 +183,18 @@
},

{
"comment": "login to deployed node",
"comment": "check unauthorized access to debug mailbox required for this test (BUBBLE_TEST_MODE has to be true)",
"connection": { "name": "<<bubbleConnectionVar>>" },
"request": { "uri": "debug/inbox/email/<<email>>?type=request&action=verify&target=network" },
"response": { "status": 200 }, // confirming status is not 401 here
"after": "await_url debug/inbox/email/<<email>>?type=request&action=verify&target=network 10m 10s len(await_json) > 0"
},

{
"comment": "activate and login to deployed node",
"request": {
"session": "new",
"uri" : "auth/login",
"uri" : "auth/login?k={{await_json.[0].ctx.message.data}}",
"entity": {
"name": "<<username>>",
"password": "<<password>>"


+ 1
- 2
bubble-server/src/test/resources/models/tests/live/backup_and_restore.json Wyświetl plik

@@ -54,8 +54,7 @@
},

{
"comment": "add file to storage",
"before": "await_url .bubble 40m 20s",
"comment": "add test file to storage",
"connection": { "name": "bubbleConnection" },
"request": {
"session": "bubbleUserSession",


Ładowanie…
Anuluj
Zapisz