Skip to content

Commit 5b67f98

Browse files
committed
molecule: verify update for size -> total_number_of_entries renamed property
1 parent b2e9cab commit 5b67f98

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exclude_paths:
66
- .ansible-lint
77
- .yamllint
88
- playbooks/roles/
9+
- meta/
910

1011
rulesdir:
1112
- ../../ansible-lint-custom-rules/rules/

molecule/default/verify.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,35 @@
2222
url_password: "remembertochangeme"
2323
status_code:
2424
- 200
25+
- name: "Check configuration: static test cache (xml) status"
26+
ansible.builtin.uri:
27+
url: http://localhost:11222/rest/v2/caches/teststaticcachexml
28+
url_username: "supervisor"
29+
url_password: "remembertochangeme"
30+
register: test_cache_status
31+
- assert:
32+
that:
33+
- test_cache_status.status == 200
34+
- test_cache_status.json.total_number_of_entries == 0
35+
fail_msg: "infinispan config error: static test cache via XML error"
2536
- name: "Check service operational: add entry to test cache via rest"
2637
ansible.builtin.uri:
27-
url: http://localhost:11222/rest/v2/caches/test_cache/test_entry
38+
url: http://localhost:11222/rest/v2/caches/teststaticcachexml/test_entry
2839
method: POST
2940
url_username: "supervisor"
3041
url_password: "remembertochangeme"
3142
status_code:
3243
- 204
3344
- name: "Check service operational: test cache status via rest"
34-
ansible.builtin.uri:
35-
url: http://localhost:11222/rest/v2/caches/test_cache
36-
url_username: "supervisor"
37-
url_password: "remembertochangeme"
38-
register: test_cache_status
39-
- assert:
40-
that:
41-
- test_cache_status.json.size == 1
42-
fail_msg: "infinispan operational error: test cache error"
43-
- name: "Check configuration: static test cache (xml) status"
4445
ansible.builtin.uri:
4546
url: http://localhost:11222/rest/v2/caches/teststaticcachexml
4647
url_username: "supervisor"
4748
url_password: "remembertochangeme"
4849
register: test_cache_status
4950
- assert:
5051
that:
51-
- test_cache_status.status == 200
52-
- test_cache_status.json.size == 0
53-
fail_msg: "infinispan config error: static test cache via XML error"
52+
- test_cache_status.json.total_number_of_entries == 1
53+
fail_msg: "infinispan operational error: test cache error"
5454
- name: "Check configuration: static test cache (yml) status"
5555
ansible.builtin.uri:
5656
url: http://localhost:11222/rest/v2/caches/configuredstaticcache
@@ -60,7 +60,7 @@
6060
- assert:
6161
that:
6262
- test_cache_status.status == 200
63-
- test_cache_status.json.size == 0
63+
- test_cache_status.json.total_number_of_entries == 0
6464
fail_msg: "infinispan config error: static test cache via YML error"
6565
- name: "Check _cache role: test cache (xml) status"
6666
ansible.builtin.uri:
@@ -71,7 +71,7 @@
7171
- assert:
7272
that:
7373
- test_cache_status.status == 200
74-
- test_cache_status.json.size == 0
74+
- test_cache_status.json.total_number_of_entries == 0
7575
fail_msg: "infinispan_cache error: test cache via XML error"
7676
- name: "Check _cache role: test cache (yml) status"
7777
ansible.builtin.uri:
@@ -82,7 +82,7 @@
8282
- assert:
8383
that:
8484
- test_cache_status.status == 200
85-
- test_cache_status.json.size == 0
85+
- test_cache_status.json.total_number_of_entries == 0
8686
fail_msg: "infinispan_cache error: test cache via YML error"
8787
- name: "Check _cache role: test cache (yml) status"
8888
ansible.builtin.uri:
@@ -93,5 +93,5 @@
9393
- assert:
9494
that:
9595
- test_cache_status.status == 200
96-
- test_cache_status.json.size == 0
96+
- test_cache_status.json.total_number_of_entries == 0
9797
fail_msg: "infinispan_cache error: test cache via YML error"

0 commit comments

Comments
 (0)