diff --git a/changelogs/fragments/fix_eks_tests.yml b/changelogs/fragments/fix_eks_tests.yml new file mode 100644 index 00000000..80d2b231 --- /dev/null +++ b/changelogs/fragments/fix_eks_tests.yml @@ -0,0 +1,3 @@ +--- +bugfixes: +- "Fix bugs in the eks integration tests." diff --git a/tests/integration/targets/eks/tasks/cleanup.yml b/tests/integration/targets/eks/tasks/cleanup.yml index b9fbca9b..6956d1a8 100644 --- a/tests/integration/targets/eks/tasks/cleanup.yml +++ b/tests/integration/targets/eks/tasks/cleanup.yml @@ -1,13 +1,13 @@ - include_tasks: set_facts.yml - name: Delete IAM role amazon.aws.iam_role: - name: "{{ _result_create_iam_role.role_name }}" + name: "{{ _result_create_iam_role.iam_role.role_name }}" state: absent ignore_errors: true - name: Delete IAM role amazon.aws.iam_role: - name: "{{ _result_create_iam_role_fp.role_name }}" + name: "{{ _result_create_iam_role_fp.iam_role.role_name }}" state: absent ignore_errors: true diff --git a/tests/integration/targets/eks/tasks/eks_cluster.yml b/tests/integration/targets/eks/tasks/eks_cluster.yml index 4d72a9d1..6480db01 100644 --- a/tests/integration/targets/eks/tasks/eks_cluster.yml +++ b/tests/integration/targets/eks/tasks/eks_cluster.yml @@ -95,7 +95,7 @@ endpoint_private_access: false public_access_cidrs: - 0.0.0.0/0 - role_arn: "{{ _result_create_iam_role.arn }}" + role_arn: "{{ _result_create_iam_role.iam_role.arn }}" tags: Name: "{{ _resource_prefix }}-eks-cluster" wait_timeout: 900 diff --git a/tests/integration/targets/eks/tasks/eks_fargate_profile.yml b/tests/integration/targets/eks/tasks/eks_fargate_profile.yml index cc604b9b..f2eff4d6 100644 --- a/tests/integration/targets/eks/tasks/eks_fargate_profile.yml +++ b/tests/integration/targets/eks/tasks/eks_fargate_profile.yml @@ -45,7 +45,7 @@ fargate_profile_name: '{{ eks_fargate_profile_name_a }}' state: present cluster_name: fake_cluster - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results | selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -64,7 +64,7 @@ fargate_profile_name: fake_profile cluster_name: '{{ eks_cluster_name }}' state: absent - pod_execution_role_arn: '{{ _result_create_iam_role_fp.arn }}' + pod_execution_role_arn: '{{ _result_create_iam_role_fp.iam_role.arn }}' subnets: >- {{_result_create_subnets.results | selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -81,7 +81,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ _result_create_cluster.result.identifier }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results | selectattr('subnet.tags.Name', 'contains', 'public') | map(attribute='subnet.id') }} @@ -101,7 +101,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -120,7 +120,7 @@ amazon.cloud.eks_fargate_profile: fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -134,7 +134,7 @@ amazon.cloud.eks_fargate_profile: identifier: "{{ eks_cluster_name }}|{{ eks_fargate_profile_name_b }}" state: present - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -149,7 +149,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -170,7 +170,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -191,7 +191,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -218,7 +218,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -241,7 +241,7 @@ amazon.cloud.eks_fargate_profile: identifier: "{{ eks_cluster_name }}|{{ eks_fargate_profile_name_a }}" state: present - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -263,7 +263,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results | selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -285,7 +285,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results | selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -308,7 +308,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -330,7 +330,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -351,7 +351,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_a }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -372,7 +372,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_b }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} @@ -391,7 +391,7 @@ fargate_profile_name: "{{ eks_fargate_profile_name_b }}" state: present cluster_name: "{{ eks_cluster_name }}" - pod_execution_role_arn: "{{ _result_create_iam_role_fp.arn }}" + pod_execution_role_arn: "{{ _result_create_iam_role_fp.iam_role.arn }}" subnets: >- {{_result_create_subnets.results|selectattr('subnet.tags.Name', 'contains', 'private') | map(attribute='subnet.id') }} diff --git a/tests/integration/targets/memorydb/aliases b/tests/integration/targets/memorydb/aliases index 4ef4b206..e30a1801 100644 --- a/tests/integration/targets/memorydb/aliases +++ b/tests/integration/targets/memorydb/aliases @@ -1 +1,3 @@ +slow + cloud/aws