mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
b152515fcb
Comments out uses of rds_instance in the integration tests and replace with AWS CLI until rds_instance has been merged
35 lines
1.4 KiB
Bash
Executable file
35 lines
1.4 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# ensure test config is empty
|
|
ansible-playbook playbooks/empty_inventory_config.yml "$@"
|
|
|
|
export ANSIBLE_INVENTORY_ENABLED=aws_rds
|
|
|
|
# test with default inventory file
|
|
ansible-playbook playbooks/test_invalid_aws_rds_inventory_config.yml "$@"
|
|
|
|
export ANSIBLE_INVENTORY=test.aws_rds.yml
|
|
|
|
# test empty inventory config
|
|
ansible-playbook playbooks/test_invalid_aws_rds_inventory_config.yml "$@"
|
|
|
|
# generate inventory config and test using it
|
|
ansible-playbook playbooks/create_inventory_config.yml -e @../../integration_config.yml "$@"
|
|
ansible-playbook playbooks/test_populating_inventory.yml -e @../../integration_config.yml "$@"
|
|
|
|
# generate inventory config with caching and test using it
|
|
ansible-playbook playbooks/create_inventory_config.yml -e "template='inventory_with_cache.yml' @../../integration_config.yml" "$@"
|
|
ansible-playbook playbooks/populate_cache.yml -e @../../integration_config.yml "$@"
|
|
ansible-playbook playbooks/test_inventory_cache.yml "$@"
|
|
|
|
# remove inventory cache
|
|
rm -r aws_rds_cache_dir/
|
|
|
|
# generate inventory config with constructed features and test using it
|
|
ansible-playbook playbooks/create_inventory_config.yml -e "template='inventory_with_constructed.yml' @../../integration_config.yml" "$@"
|
|
ansible-playbook playbooks/test_populating_inventory_with_constructed.yml -e @../../integration_config.yml "$@"
|
|
|
|
# cleanup inventory config
|
|
ansible-playbook playbooks/empty_inventory_config.yml "$@"
|