-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[PR #1112/cda48303 backport][stable-3] aws_kms - stabilize integration tests This is a backport of PR #1112 as merged into main (cda4830). SUMMARY Integration tests for this test suite were failing occasionally due to timing issues when waiting for < 45 seconds after updates. Increased the wait times to 45 seconds and split into different tests to run in parallel. Fixes #433 ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_kms Reviewed-by: Alina Buzachis <None>
- Loading branch information
1 parent
1e1ee47
commit aa7aaf9
Showing
13 changed files
with
1,507 additions
and
941 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
# inventory names shortened down to fit resource name length limits | ||
[tests] | ||
states | ||
grants | ||
modify | ||
tagging | ||
|
||
[all:vars] | ||
ansible_connection=local | ||
ansible_python_interpreter="{{ ansible_playbook_python }}" |
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,10 @@ | ||
--- | ||
# 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/aws_kms/tasks/ | ||
|
||
- hosts: all | ||
gather_facts: no | ||
strategy: free | ||
roles: | ||
- aws_kms |
2 changes: 2 additions & 0 deletions
2
tests/integration/targets/aws_kms/roles/aws_kms/defaults/main.yml
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 @@ | ||
--- | ||
kms_key_alias: "ansible-test-{{ inventory_hostname | replace('_','-') }}{{ tiny_prefix }}" |
13 changes: 13 additions & 0 deletions
13
tests/integration/targets/aws_kms/roles/aws_kms/tasks/main.yml
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,13 @@ | ||
--- | ||
- name: 'aws_kms integration tests' | ||
collections: | ||
- amazon.aws | ||
- community.aws | ||
module_defaults: | ||
group/aws: | ||
aws_access_key: '{{ aws_access_key }}' | ||
aws_secret_key: '{{ aws_secret_key }}' | ||
security_token: '{{ security_token | default(omit) }}' | ||
region: '{{ aws_region }}' | ||
block: | ||
- include: './test_{{ inventory_hostname }}.yml' |
Oops, something went wrong.