From 642898de9b407758374847be1ef45e0be391fd38 Mon Sep 17 00:00:00 2001 From: Alex <aizquier@redhat.com> Date: Mon, 16 Sep 2024 20:16:22 +0200 Subject: [PATCH] fix: ensure correct required params for event streams (#325) Signed-off-by: Alex <aizquier@redhat.com> --- plugins/modules/event_stream.py | 2 +- tests/integration/targets/activation/tasks/main.yml | 1 + tests/integration/targets/event_stream/tasks/main.yml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/modules/event_stream.py b/plugins/modules/event_stream.py index 1e40e4b8..5c45d661 100644 --- a/plugins/modules/event_stream.py +++ b/plugins/modules/event_stream.py @@ -145,7 +145,7 @@ def main() -> None: ( "state", "present", - ("name", "credential_name"), + ("name", "credential_name", "organization_name", "event_stream_type"), ) ] diff --git a/tests/integration/targets/activation/tasks/main.yml b/tests/integration/targets/activation/tasks/main.yml index d0725f72..00f67f4c 100644 --- a/tests/integration/targets/activation/tasks/main.yml +++ b/tests/integration/targets/activation/tasks/main.yml @@ -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 diff --git a/tests/integration/targets/event_stream/tasks/main.yml b/tests/integration/targets/event_stream/tasks/main.yml index 15db0ec9..8f208997 100644 --- a/tests/integration/targets/event_stream/tasks/main.yml +++ b/tests/integration/targets/event_stream/tasks/main.yml @@ -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 @@ -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 @@ -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