summaryrefslogtreecommitdiff
path: root/test/integration/targets/acme_account/tests/validate.yml
blob: 70bba0d6954a8abfe61466795d39526164701f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
- name: Validate that account wasn't created in the first step
  assert:
    that:
      - account_not_created is failed

- name: Validate that account was created in the second step
  assert:
    that:
      - account_created is changed
      - account_created.account_uri is not none

- name: Validate that email address was changed
  assert:
    that:
      - account_modified is changed
      - account_modified.account_uri is not none

- name: Validate that email address was not changed a second time (idempotency)
  assert:
    that:
      - account_modified_idempotent is not changed
      - account_modified_idempotent.account_uri is not none

# Note that pebble has no change key endpoint implemented yet!
# When it has (and the container was updated), uncomment the
# following validations, and delete the ones below the
# out-commented ones:

#- name: Validate that the account key was changed
#  assert:
#    that:
#      - account_change_key is changed
#      - account_change_key.account_uri is not none
#
#- name: Validate that the account was deactivated
#  assert:
#    that:
#      - account_deactivate is changed
#      - account_deactivate.account_uri is not none
#
#- name: Validate that the account was really deactivated (idempotency)
#  assert:
#    that:
#      - account_deactivate_idempotent is not changed
#      - account_deactivate_idempotent.account_uri is not none
#
#- name: Validate that the account is gone (new account key)
#  assert:
#    that:
#      - account_not_created_2 is failed
#
#- name: Validate that the account is gone (old account key)
#  assert:
#    that:
#      - account_not_created_3 is failed

- name: Validate that the account was deactivated
  assert:
    that:
      - account_deactivate is changed
      - account_deactivate.account_uri is not none

- name: Validate that the account was really deactivated (idempotency)
  assert:
    that:
      - account_deactivate_idempotent is not changed
      - account_deactivate_idempotent.account_uri is not none

- name: Validate that the account is gone
  assert:
    that:
      - account_not_created_2 is failed