From c0b8865575b7ae54a25e0902f3c96d20b4d2dff2 Mon Sep 17 00:00:00 2001
From: Jorge Moratinos Salcines <jorge.moratinossalcines@telefonica.com>
Date: Mon, 10 Mar 2025 11:34:44 +0100
Subject: [PATCH] Updated events api test plan

---
 .../testplan/api_events_service/README.md     |   7 +-
 doc/testing/testplan/event_filter/README.md   | 127 ++++++++++++++++++
 2 files changed, 131 insertions(+), 3 deletions(-)

diff --git a/doc/testing/testplan/api_events_service/README.md b/doc/testing/testplan/api_events_service/README.md
index ee86bc3..c6b37db 100644
--- a/doc/testing/testplan/api_events_service/README.md
+++ b/doc/testing/testplan/api_events_service/README.md
@@ -453,6 +453,7 @@ At this documentation you will have all information and related files and exampl
      2. body [event subscription request body] with:
         1. events: **['SERVICE_API_UPDATE']**
         2. supportedFeatures: binary 0100 -> string **4**
+        3. **eventFilter** set to apiId from published API.
      3. Use **Invoker Certificate**
 
   7. Update published API at CCF:
@@ -850,7 +851,7 @@ At this documentation you will have all information and related files and exampl
      1. Send **POST** to **https://{CAPIF_HOSTNAME}/capif-events/v1/{subscriberId}/subscriptions**
      2. body [event subscription request body] with:
         1. events: **['SERVICE_API_INVOCATION_SUCCESS','SERVICE_API_INVOCATION_FAILURE']**
-        2. eventFilter: only receive events from provider's aefId.
+        2. eventFilter: Not present.
         3. supportedFeatures: binary 0000 -> string **0**
      3. Use **Invoker Certificate**
 
@@ -925,7 +926,7 @@ At this documentation you will have all information and related files and exampl
      1. Send **POST** to **https://{CAPIF_HOSTNAME}/capif-events/v1/{subscriberId}/subscriptions**
      2. body [event subscription request body] with:
         1. events: **['SERVICE_API_AVAILABLE','SERVICE_API_UNAVAILABLE']**
-        2. eventFilter: only receive events from provider's aefId.
+        2. eventFilter: Not present.
         3. supportedFeatures: binary 0000 -> string **0**
      3. Use **Invoker Certificate**
 
@@ -1001,7 +1002,7 @@ At this documentation you will have all information and related files and exampl
      1. Send **POST** to **https://{CAPIF_HOSTNAME}/capif-events/v1/{subscriberId}/subscriptions**
      2. body [event subscription request body] with:
         1. events: **['SERVICE_API_UPDATE']**
-        2. eventFilter: only receive events from provider's aefId.
+        2. eventFilter: Not present.
         3. supportedFeatures: binary 0000 -> string **0**
      3. Use **Invoker Certificate**
 
diff --git a/doc/testing/testplan/event_filter/README.md b/doc/testing/testplan/event_filter/README.md
index f70d605..a7651fa 100644
--- a/doc/testing/testplan/event_filter/README.md
+++ b/doc/testing/testplan/event_filter/README.md
@@ -2,6 +2,133 @@
 At this documentation you will have all information and related files and examples of test plan for this feature.
 
 
+## Test Case 1: Invoker subscrived to SERVICE_API_AVAILABLE, SERVICE_API_UNAVAILABLE and SERVICE_API_UPDATE events filtered by apiIds
+
+**Test ID**: ***event_filter-1***
+**Additional Tags**: ***mockserver***
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+## Test Case 2: Invoker subscribed to SERVICE_API_AVAILABLE, SERVICE_API_UNAVAILABLE and SERVICE_API_UPDATE events filtered by not valid filters
+
+**Test ID**: ***event_filter-2***
+**Additional Tags**: ***smoke***
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+## Test Case 3: Provider subscribed to API_INVOKER_ONBOARDED, API_INVOKER_OFFBOARDED and API_INVOKER_UPDATED events filtered by invokerIds
+
+**Test ID**: ***event_filter-3***
+**Additional Tags**: ***mockserver***
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+## Test Case 4: Provider subscribed to API_INVOKER_ONBOARDED, API_INVOKER_OFFBOARDED and API_INVOKER_UPDATED events filtered by not valid filters
+
+**Test ID**: ***event_filter-4***
+**Additional Tags**: 
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+## Test Case 5: Provider subscribed to ACCESS_CONTROL_POLICY_UPDATE event filtered by only apiId, only invokerId and both
+
+**Test ID**: ***event_filter-5***
+**Additional Tags**: ***smoke***, ***mockserver***
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+## Test Case 6: Provider subscribed to ACCESS_CONTROL_POLICY_UPDATE event filtered by aefId
+
+**Test ID**: ***event_filter-6***
+**Additional Tags**:
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+## Test Case 7: Provider subscribed to SERVICE_API_INVOCATION_SUCCESS and SERVICE_API_INVOCATION_FAILURE filtered by apiId, invokerId, aefId and all of them
+
+**Test ID**: ***event_filter-7***
+**Additional Tags**: **smoke**, **mockserver**
+
+**Description**:
+
+
+**Pre-Conditions**:
+
+
+**Execution Steps**:
+
+
+**Expected Results**:
+
+
+---
+
 **UNDER DEVELOPMENT**
 ---
 ## Test Case 1: Service API Available filtered by apiIds
-- 
GitLab