Skip to content

Commit a376e1d

Browse files
committed
ci: use hashivault_read to get certificate
1 parent 10841ee commit a376e1d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_vault_raft_migration.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,10 @@
163163
success_msg: "Vault is using raft storage backend"
164164

165165
- name: Read CA certificate from vault
166-
community.hashi_vault.vault_read:
166+
hashivault_read:
167167
url: http://127.0.0.1:8200
168-
path: OS-TLS-ROOT/cert/ca
168+
mount_point: OS-TLS-ROOT
169+
secret: cert/ca
169170
token: "{{ vault_keys.root_token }}"
170171
register: vault_ca_cert
171172

@@ -177,6 +178,6 @@
177178
- name: Validate ROOT CA
178179
ansible.builtin.assert:
179180
that:
180-
- vault_ca_cert.data.data.certificate == (ca_chain.content | b64decode).rstrip('\n')
181+
- vault_ca_cert.value.certificate == (ca_chain.content | b64decode).rstrip('\n')
181182
fail_msg: "ROOT CA certificate do not match"
182183
success_msg: "ROOT CA certificate do match"

0 commit comments

Comments
 (0)