Skip to content

Commit

Permalink
CI test fixups - Ansible milestone update (#1863) (#1864)
Browse files Browse the repository at this point in the history
[PR #1863/7f05515c backport][stable-5] CI test fixups - Ansible milestone update

This is a backport of PR #1863 as merged into main (7f05515).
SUMMARY
Fixups failures exposed by #1852
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
dynamodb
sts_assume_role
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
  • Loading branch information
patchback[bot] authored Jul 3, 2023
1 parent 26f6557 commit 59dd8c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/20230701-ci-fixup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- CI test fixups
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
hash_key_name: "{{ table_index }}"
hash_key_type: "{{ table_index_type }}"
billing_mode: PAY_PER_REQUEST
wait_timeout: 450
register: create_table

- name: Check results - Create table
Expand Down
27 changes: 0 additions & 27 deletions tests/integration/targets/sts_assume_role/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,33 +51,6 @@
- 'result.failed'
- "'missing required arguments:' in result.msg"

# ============================================================
- name: test with empty parameters
sts_assume_role:
role_arn:
role_session_name:
policy:
duration_seconds:
external_id:
mfa_token:
mfa_serial_number:
register: result
ignore_errors: true

- name: assert with empty parameters
assert:
that:
- 'result.failed'
- "'Missing required parameter in input:' in result.msg"
when: result.module_stderr is not defined

- name: assert with empty parameters
assert:
that:
- 'result.failed'
- "'Member must have length greater than or equal to 20' in result.module_stderr"
when: result.module_stderr is defined

# ============================================================
- name: test with only 'role_arn' parameter
sts_assume_role:
Expand Down

0 comments on commit 59dd8c8

Please sign in to comment.