forked from ansible-collections/community.aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrail: import the test-suite (ansible-collections#1035)
cloudtrail: import the test-suite Import the test-suite from community.aws with some adjustments: no cloud/aws in the aliases file, we assume we run the test-suite using user's own credentials. runme.sh to simplify the execution with local credentials. adjust the cloudtrail module FQCN. Reviewed-by: GomathiselviS <None> Reviewed-by: Gonéri Le Bouder <[email protected]>
- Loading branch information
Showing
8 changed files
with
1,638 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
trivial: | ||
- cloudtrail - Import the functional tests (https://github.com/ansible-collections/amazon.aws/pull/1035). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
# reason: missing-policy | ||
unsupported | ||
|
||
cloud/aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cloudtrail_name: '{{ resource_prefix }}-cloudtrail' | ||
s3_bucket_name: '{{ resource_prefix }}-cloudtrail-bucket' | ||
kms_alias: '{{ resource_prefix }}-cloudtrail' | ||
sns_topic: '{{ resource_prefix }}-cloudtrail-notifications' | ||
cloudtrail_prefix: 'ansible-test-prefix' | ||
cloudwatch_log_group: '{{ resource_prefix }}-cloudtrail' | ||
cloudwatch_role: '{{ resource_prefix }}-cloudtrail' | ||
cloudwatch_no_kms_role: '{{ resource_prefix }}-cloudtrail2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- hosts: localhost | ||
gather_facts: no | ||
#serial: 10 | ||
roles: | ||
- cloudtrail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dependencies: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Beware: most of our tests here are run in parallel. | ||
# To add new tests you'll need to add a new host to the inventory and a matching | ||
# '{{ inventory_hostname }}'.yml file in roles/ec2_instance/tasks/ | ||
|
||
|
||
set -eux | ||
|
||
export ANSIBLE_ROLES_PATH=../ | ||
tiny_prefix="$(uuidgen -r|cut -d- -f1)" | ||
|
||
# shellcheck disable=SC2016,SC2086 | ||
echo ' | ||
{ | ||
"ansible_test": { | ||
"environment": { | ||
"ANSIBLE_DEBUG_BOTOCORE_LOGS": "True" | ||
}, | ||
"module_defaults": null | ||
}, | ||
"resource_prefix": "'${tiny_prefix}'", | ||
"tiny_prefix": "'${tiny_prefix}'", | ||
"aws_region": "us-east-2" | ||
}' > _config-file.json | ||
|
||
ansible-playbook main.yml -i inventory "$@" -e @_config-file.json |
Oops, something went wrong.