|
2 | 2 | - name: Check if there are sc_token and sc_endpoint variables
|
3 | 3 | no_log: true
|
4 | 4 | fail:
|
5 |
| - msg: 'You need to define sc_token and sc_endpoint variables in tests/integration/integration_config.yml' |
| 5 | + msg: "You need to define sc_token and sc_endpoint variables in tests/integration/integration_config.yml" |
6 | 6 | when: not sc_endpoint or not sc_token
|
7 | 7 |
|
8 | 8 | - name: Test invalid token
|
9 | 9 | sc_cloud_computing_openstack_credentials:
|
10 | 10 | token: invalid
|
11 |
| - endpoint: '{{ sc_endpoint }}' |
| 11 | + endpoint: "{{ sc_endpoint }}" |
12 | 12 | region_id: 424242
|
13 | 13 | register: test1
|
14 | 14 | failed_when:
|
|
18 | 18 |
|
19 | 19 | - name: Test2, List for non-existing region
|
20 | 20 | sc_cloud_computing_openstack_credentials:
|
21 |
| - token: '{{ sc_token }}' |
22 |
| - endpoint: '{{ sc_endpoint }}' |
| 21 | + token: "{{ sc_token }}" |
| 22 | + endpoint: "{{ sc_endpoint }}" |
23 | 23 | region_id: 424242
|
24 | 24 | register: test2
|
25 | 25 | failed_when: test2.status_code!=404
|
|
33 | 33 |
|
34 | 34 | - name: Test3 prep, get regions
|
35 | 35 | sc_cloud_computing_regions_info:
|
36 |
| - token: '{{ sc_token }}' |
37 |
| - endpoint: '{{ sc_endpoint }}' |
| 36 | + token: "{{ sc_token }}" |
| 37 | + endpoint: "{{ sc_endpoint }}" |
38 | 38 | register: regions
|
39 | 39 |
|
40 | 40 | - name: Test3, Get creds for region1
|
41 | 41 | sc_cloud_computing_openstack_credentials:
|
42 |
| - token: '{{ sc_token }}' |
43 |
| - endpoint: '{{ sc_endpoint }}' |
44 |
| - region_id: '{{ regions.regions[0].id }}' |
| 42 | + token: "{{ sc_token }}" |
| 43 | + endpoint: "{{ sc_endpoint }}" |
| 44 | + region_id: "{{ regions.regions[0].id }}" |
45 | 45 | register: creds
|
46 | 46 |
|
47 | 47 | - name: Check Test3
|
|
54 | 54 | - creds.password
|
55 | 55 |
|
56 | 56 | - name: Validate creds
|
57 |
| - os_auth: |
| 57 | + openstack.cloud.auth: |
58 | 58 | auth:
|
59 |
| - auth_url: '{{ creds.url }}' |
60 |
| - username: '{{ creds.username }}' |
61 |
| - password: '{{ creds.password }}' |
62 |
| - project_name: '{{ creds.tenant_name }}' |
| 59 | + auth_url: "{{ creds.url }}" |
| 60 | + username: "{{ creds.username }}" |
| 61 | + password: "{{ creds.password }}" |
| 62 | + project_name: "{{ creds.tenant_name }}" |
63 | 63 | os_user_domain_name: default
|
64 | 64 | os_project_domain_name: default
|
65 | 65 | register: os
|
0 commit comments