|
|
@@ -16,15 +16,12 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
"before": "sleep 3s", |
|
|
|
"comment": "check email inbox, expect network keys request", |
|
|
|
"request": { |
|
|
|
"uri": "debug/inbox/email/<<rootEmail>>?type=request&action=password&target=network" |
|
|
|
}, |
|
|
|
"comment": "await and get network keys request in email inbox", |
|
|
|
"before": "await_url debug/inbox/email/<<rootEmail>>?type=request&action=password&target=network 3m 5s len(await_json) > 0", |
|
|
|
"request": { "uri": "debug/inbox/email/<<rootEmail>>?type=request&action=password&target=network" }, |
|
|
|
"response": { |
|
|
|
"store": "emailInbox", |
|
|
|
"check": [ |
|
|
|
{"condition": "json.length >= 1"}, |
|
|
|
{"condition": "'{{json.[0].ctx.message.messageType}}' == 'request'"}, |
|
|
|
{"condition": "'{{json.[0].ctx.message.action}}' == 'password'"}, |
|
|
|
{"condition": "'{{json.[0].ctx.message.target}}' == 'network'"} |
|
|
@@ -41,15 +38,12 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
"before": "sleep 3s", |
|
|
|
"comment": "check email inbox for key request confirmation", |
|
|
|
"request": { |
|
|
|
"uri": "debug/inbox/email/<<rootEmail>>?type=confirmation&action=password&target=network" |
|
|
|
}, |
|
|
|
"comment": "await and get key request confirmation from email inbox", |
|
|
|
"before": "await_url debug/inbox/email/<<rootEmail>>?type=confirmation&action=password&target=network 3m 5s len(await_json) > 0", |
|
|
|
"request": { "uri": "debug/inbox/email/<<rootEmail>>?type=confirmation&action=password&target=network" }, |
|
|
|
"response": { |
|
|
|
"store": "emailInbox", |
|
|
|
"check": [ |
|
|
|
{"condition": "json.length >= 1"}, |
|
|
|
{"condition": "'{{json.[0].ctx.message.messageType}}' == 'confirmation'"}, |
|
|
|
{"condition": "'{{json.[0].ctx.message.action}}' == 'password'"}, |
|
|
|
{"condition": "'{{json.[0].ctx.message.target}}' == 'network'"} |
|
|
|