2018-08-17 13:32:09 +00:00
|
|
|
---
|
|
|
|
- name: Validate that account wasn't there
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- not account_not_created.exists
|
|
|
|
- account_not_created.account_uri is none
|
|
|
|
- "'account' not in account_not_created"
|
|
|
|
|
|
|
|
- name: Validate that account was created
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- account_created.exists
|
|
|
|
- account_created.account_uri is not none
|
|
|
|
- "'account' in account_created"
|
|
|
|
- "'contact' in account_created.account"
|
2018-12-02 17:40:14 +00:00
|
|
|
- "'public_account_key' in account_created.account"
|
2018-08-17 13:32:09 +00:00
|
|
|
- account_created.account.contact | length == 1
|
|
|
|
- "account_created.account.contact[0] == 'mailto:example@example.org'"
|
|
|
|
|
|
|
|
- name: Validate that account email was removed
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- account_modified.exists
|
|
|
|
- account_modified.account_uri is not none
|
|
|
|
- "'account' in account_modified"
|
|
|
|
- "'contact' in account_modified.account"
|
2018-12-02 17:40:14 +00:00
|
|
|
- "'public_account_key' in account_modified.account"
|
2018-08-17 13:32:09 +00:00
|
|
|
- account_modified.account.contact | length == 0
|
|
|
|
|
|
|
|
- name: Validate that account does not exist with wrong account URI
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- not account_not_exist.exists
|
|
|
|
- account_not_exist.account_uri is none
|
|
|
|
- "'account' not in account_not_exist"
|
|
|
|
|
|
|
|
- name: Validate that account cannot be accessed with wrong key
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- account_wrong_key is failed
|