Artem Goncharov 43ab59d8b3 Implement acceptance test job
Implement acceptance tests. Those jobs will run in the post-review
pipeline requiring access to secrets containing credentials of friendly
public clouds to test sdk with them.
Base job is generating a token from the given credentials and writes
clouds.yaml file with the token inside instead of password. As a post
step the token is physically revoked. This is done to prevent potential
leakage of real credentials from the test jobs/logs.

Since devstack is not a real cloud we do not use zuul secrets.

Change-Id: I95af9b81e6abd51af2a7dd91cae14b56926a869c
2023-03-15 14:49:27 +01:00

12 lines
266 B
YAML

- name: Create OpenStack config dir
ansible.builtin.file:
dest: ~/.config/openstack
state: directory
recurse: true
- name: Deploy clouds.yaml
ansible.builtin.template:
src: clouds.yaml.j2
dest: ~/.config/openstack/clouds.yaml
mode: 0440