Enable cloud tests for use with ansible-test.
This commit is contained in:
parent
ac72fd9d2c
commit
17e07a27b2
89 changed files with 66 additions and 3 deletions
|
@ -53,6 +53,9 @@ matrix:
|
|||
- env: TEST=linux/ubuntu1404/3
|
||||
- env: TEST=linux/ubuntu1604/3
|
||||
- env: TEST=linux/ubuntu1604py3/3
|
||||
|
||||
- env: TEST=cloud/ubuntu1604
|
||||
- env: TEST=cloud/ubuntu1604py3
|
||||
build:
|
||||
pre_ci:
|
||||
- docker images drydock/u16pytall
|
||||
|
|
1
test/integration/roles/setup_ec2
Symbolic link
1
test/integration/roles/setup_ec2
Symbolic link
|
@ -0,0 +1 @@
|
|||
../targets/setup_ec2
|
1
test/integration/roles/setup_sshkey
Symbolic link
1
test/integration/roles/setup_sshkey
Symbolic link
|
@ -0,0 +1 @@
|
|||
../targets/setup_sshkey
|
2
test/integration/targets/cs_account/aliases
Normal file
2
test/integration/targets/cs_account/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
2
test/integration/targets/cs_affinitygroup/aliases
Normal file
2
test/integration/targets/cs_affinitygroup/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
3
test/integration/targets/cs_cluster/aliases
Normal file
3
test/integration/targets/cs_cluster/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
||||
skip/python3
|
3
test/integration/targets/cs_domain/aliases
Normal file
3
test/integration/targets/cs_domain/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
||||
skip/python3
|
2
test/integration/targets/cs_instancegroup/aliases
Normal file
2
test/integration/targets/cs_instancegroup/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
3
test/integration/targets/cs_project/aliases
Normal file
3
test/integration/targets/cs_project/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
||||
skip/python3
|
3
test/integration/targets/cs_resourcelimit/aliases
Normal file
3
test/integration/targets/cs_resourcelimit/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
||||
skip/python3
|
2
test/integration/targets/cs_securitygroup/aliases
Normal file
2
test/integration/targets/cs_securitygroup/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
2
test/integration/targets/cs_securitygroup_rule/aliases
Normal file
2
test/integration/targets/cs_securitygroup_rule/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
3
test/integration/targets/cs_user/aliases
Normal file
3
test/integration/targets/cs_user/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
cloud/cs
|
||||
posix/ci/cloud/cs
|
||||
skip/python3
|
2
test/integration/targets/ec2_ami/aliases
Normal file
2
test/integration/targets/ec2_ami/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
2
test/integration/targets/ec2_elb_lb/aliases
Normal file
2
test/integration/targets/ec2_elb_lb/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
|
@ -239,7 +239,7 @@
|
|||
assert:
|
||||
that:
|
||||
- 'result.failed'
|
||||
- 'result.msg == "missing required arguments: name,state"'
|
||||
- 'result.msg.startswith("missing required arguments: ")'
|
||||
|
||||
|
||||
|
2
test/integration/targets/ec2_facts/aliases
Normal file
2
test/integration/targets/ec2_facts/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
2
test/integration/targets/ec2_group/aliases
Normal file
2
test/integration/targets/ec2_group/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
3
test/integration/targets/ec2_key/aliases
Normal file
3
test/integration/targets/ec2_key/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
||||
skip/python3
|
2
test/integration/targets/ec2_tag/aliases
Normal file
2
test/integration/targets/ec2_tag/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
2
test/integration/targets/ec2_vol/aliases
Normal file
2
test/integration/targets/ec2_vol/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
2
test/integration/targets/ec2_vpc/aliases
Normal file
2
test/integration/targets/ec2_vpc/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
2
test/integration/targets/ecs_ecr/aliases
Normal file
2
test/integration/targets/ecs_ecr/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
cloud/aws
|
||||
posix/ci/cloud/aws
|
1
test/integration/targets/test_cs_common/aliases
Normal file
1
test/integration/targets/test_cs_common/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
hidden
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
cs_resource_prefix: cloudstack
|
11
test/utils/shippable/cloud.sh
Executable file
11
test/utils/shippable/cloud.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash -eux
|
||||
|
||||
set -o pipefail
|
||||
|
||||
declare -a args
|
||||
IFS='/:' read -ra args <<< "${TEST}"
|
||||
|
||||
image="ansible/ansible:${args[1]}"
|
||||
target="posix/ci/cloud/"
|
||||
|
||||
ansible-test integration --color -v --retry-on-error "${target}" --docker "${image}"
|
|
@ -9,4 +9,4 @@ platform="${args[0]}"
|
|||
version="${args[1]}"
|
||||
target="posix/ci/"
|
||||
|
||||
ansible-test integration --color -v --retry-on-error "${target}" --remote "${platform}/${version}"
|
||||
ansible-test integration --color -v --retry-on-error "${target}" --remote "${platform}/${version}" --exclude "posix/ci/cloud/"
|
||||
|
|
|
@ -9,4 +9,4 @@ platform="${args[0]}"
|
|||
version="${args[1]}"
|
||||
target="posix/ci/"
|
||||
|
||||
ansible-test integration --color -v --retry-on-error "${target}" --remote "${platform}/${version}"
|
||||
ansible-test integration --color -v --retry-on-error "${target}" --remote "${platform}/${version}" --exclude "posix/ci/cloud/"
|
||||
|
|
Loading…
Reference in a new issue