Skip to content

Commit

Permalink
fix: ensure correct required params for event streams (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <[email protected]>
  • Loading branch information
Alex-Izquierdo authored Sep 16, 2024
1 parent f4cc848 commit 642898d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/event_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def main() -> None:
(
"state",
"present",
("name", "credential_name"),
("name", "credential_name", "organization_name", "event_stream_type"),
)
]

Expand Down
1 change: 1 addition & 0 deletions tests/integration/targets/activation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
name: "{{ event_stream_name }}"
credential_name: "{{ credential_name_basic }}"
organization_name: Default
event_stream_type: Basic Event Stream
register: _result

- name: Get information about a rulebook
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/targets/event_stream/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
name: "{{ event_stream_name }}"
credential_name: "{{ credential_name }}"
organization_name: Default
event_stream_type: Basic Event Stream
check_mode: true
register: _result

Expand All @@ -60,6 +61,7 @@
name: "{{ event_stream_name }}"
credential_name: "{{ credential_name }}"
organization_name: Default
event_stream_type: Basic Event Stream
register: _result

- name: Check event stream is not created again
Expand All @@ -73,6 +75,7 @@
name: "{{ event_stream_name }}"
credential_name: "{{ credential_name }}"
organization_name: Default
event_stream_type: Basic Event Stream
register: _result

# [WARNING]: The field eda_credential_id of unknown 2 has encrypted data and may
Expand Down

0 comments on commit 642898d

Please sign in to comment.