Commit c0b88655 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Updated events api test plan

parent 4440ea6a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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**

+127 −0
Original line number Diff line number Diff line
@@ -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