Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_kms - stabilize integration tests #1112

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions tests/integration/targets/aws_kms/defaults/main.yml

This file was deleted.

10 changes: 10 additions & 0 deletions tests/integration/targets/aws_kms/inventory
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 }}"
10 changes: 10 additions & 0 deletions tests/integration/targets/aws_kms/main.yml
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
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 tests/integration/targets/aws_kms/roles/aws_kms/tasks/main.yml
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'
Loading