Browse Source

Use grace period in await_url for new bubbles

pull/16/head
Kristijan Mitrovic 4 years ago
parent
commit
439cc2bcf4
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      bubble-server/src/test/resources/models/include/new_bubble.json
  2. +4
    -4
      bubble-server/src/test/resources/models/tests/live/backup_and_restore.json

+ 1
- 1
bubble-server/src/test/resources/models/include/new_bubble.json View File

@@ -166,7 +166,7 @@


{ {
"comment": "call API of deployed node after some grace period, ensure it is running", "comment": "call API of deployed node after some grace period, ensure it is running",
"before": "await_url .bubble 20m:40m 20s",
"before": "await_url .bubble 20m:20m 20s",
"connection": { "connection": {
"name": "<<bubbleConnectionVar>>", "name": "<<bubbleConnectionVar>>",
"baseUri": "https://{{<<networkVar>>.host}}.<<network>>.<<domain>>:{{serverConfig.nginxPort}}/api" "baseUri": "https://{{<<networkVar>>.host}}.<<network>>.<<domain>>:{{serverConfig.nginxPort}}/api"


+ 4
- 4
bubble-server/src/test/resources/models/tests/live/backup_and_restore.json View File

@@ -172,12 +172,12 @@
}, },


{ {
"before": "await_url .bubble 40m 20s",
"comment": "restore node using restoreKey",
"before": "await_url .bubble 20m:20m 20s",
"connection": { "connection": {
"name": "restoredBubbleConnection", "name": "restoredBubbleConnection",
"baseUri": "https://{{restoreNN.fqdn}}:{{serverConfig.nginxPort}}/api" "baseUri": "https://{{restoreNN.fqdn}}:{{serverConfig.nginxPort}}/api"
}, },
"comment": "restore node using restoreKey",
"request": { "request": {
"uri": "auth/restore/{{restoreNN.restoreKey}}", "uri": "auth/restore/{{restoreNN.restoreKey}}",
"entity": { "entity": {
@@ -185,11 +185,11 @@
"password": "Passw0rd!!" "password": "Passw0rd!!"
}, },
"method": "put" "method": "put"
}
},
"after": "await_url .bubble 4m:10m 20s" // give the restore some time to stop the server, restore and restart
}, },


{ {
"before": "await_url .bubble 4m:10m 20s",
"comment": "login to restored bubble", "comment": "login to restored bubble",
"request": { "request": {
"session": "new", "session": "new",


Loading…
Cancel
Save