Skip to content

Commit

Permalink
Tests - Replace use of db.t2 instance class
Browse files Browse the repository at this point in the history
Amazon's dropping support for M4/R4/T2 RDS DB instances, replace their use in tests before something suddenly fails.
  • Loading branch information
tremble committed Jun 25, 2024
1 parent 2797a22 commit c7a0690
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
amazon.aws.rds_instance:
state: present
engine: "{{ instance_engine }}"
db_instance_class: db.t2.micro
db_instance_class: db.t3.micro
allocated_storage: 20
instance_id: "{{ instance_id }}"
master_username: ansibletestuser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- name: assert the hostvars are defined with prefix and/or suffix
ansible.builtin.assert:
that:
- hostvars[instance_id][vars_prefix+"db_instance_class"+vars_suffix] == 'db.t2.micro'
- hostvars[instance_id][vars_prefix+"db_instance_class"+vars_suffix] == 'db.t3.micro'
- hostvars[instance_id][vars_prefix+"engine"+vars_suffix] == instance_engine
- hostvars[instance_id][vars_prefix+"db_instance_status"+vars_suffix] in ('available', 'creating')
- "'db_instance_class' not in hostvars[instance_id]"
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/targets/rds_option_group/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ option_group_description: "{{ resource_prefix }}rds-option-group test"
instance_id: "{{ resource_prefix }}"
username: test
password: test12345678
db_instance_class: db.t2.small
storage_encrypted_db_instance_class: db.t2.small
db_instance_class: db.t3.small
storage_encrypted_db_instance_class: db.t3.small
allocated_storage: 20
vpc_name: "{{ resource_prefix }}-vpc"
vpc_seed: "{{ resource_prefix }}"
Expand Down

0 comments on commit c7a0690

Please sign in to comment.