# NFV API Conformance Test Specification (NFV-TST 010)
This repository hosts the NFV API Conformance test specification for
the APIs defined in ETSI NFV GS [SOL002](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/02.04.01_60/gs_NFV-SOL002v020401p.pdf), [SOL003](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.04.01_60/gs_NFV-SOL003v020401p.pdf), [SOL005](http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.04.01_60/gs_NFV-SOL005v020401p.pdf), in their versions v2.6.1.
the APIs defined in ETSI NFV GS [SOL002](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/02.06.01_60/gs_NFV-SOL002v020601p.pdf), [SOL003](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.06.01_60/gs_NFV-SOL003v020601p.pdf), [SOL005](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.06.01_60/gs_NFV-SOL005v020601p.pdf), in their versions v2.6.1.
More information and download is available at [DGS/NFV-TST010ed261](https://portal.etsi.org/webapp/WorkProgram/Report_WorkItem.asp?WKI_ID=58428).
**{- Disclaimer: The content of this repository is related to a DRAFT, i.e. a working document, of ETSI ISG NFV.-}**
{-It is provided for information only and is still under development. The content may be updated, replaced, or removed at any time. Do not use as reference material.-}
The latest draft may be downloaded at the [ISG NFV open area](https://docbox.etsi.org/isg/nfv/open/Drafts/).
# ... Applicability: the VNFM does not allow creation of a subscription resource if another subscription resource with the same filter and callbackUri already exists
# ... Post-Conditions: duplicated subscription is created
# Post Create subscription - DUPLICATION
# Check HTTP Response Status Code Is 201
# Check HTTP Response Body Json Schema Is FmSubscription
# Create a new Subscription - NO-DUPLICATION
# [Documentation] Test ID: 6.3.4.4.3
# ... Test title: Create a new Subscription - NO-DUPLICATION
# ... Test objective: The objective is to create a subscription in case of not allowed DUPLICATION.
# ... Pre-conditions: subscription with the same filter and callbackUri exists
# ... Applicability: the VNFM does not allow creation of a duplicate subscription resource
# ... Post-Conditions: duplicated subscription is not created
# Post Create subscription - DUPLICATION
# Check HTTP Response Status Code Is 303
Create a duplicated Subscription
[Documentation]Test ID: 6.3.4.4.2a
...Test title: Create a duplicated Subscription
...Test objective: The objective is to create a duplicate subscription.
...Pre-conditions: subscription with the same filter and callbackUri exists
...Reference: Clause 7.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability: the VNFM does not allow creation of a subscription resource if another subscription resource with the same filter and callbackUri already exists
...Post-Conditions: duplicated subscription is created
Post Create subscription - DUPLICATION
Check HTTP Response Status Code Is201
Check HTTP Response Body Json Schema IsFmSubscription
Create a new Subscription - NO-DUPLICATION
[Documentation]Test ID: 6.3.4.4.3
...Test title: Create a new Subscription - NO-DUPLICATION
...Test objective: The objective is to create a subscription in case of not allowed DUPLICATION.
...Pre-conditions: subscription with the same filter and callbackUri exists
...Reference: Clause 7.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability: the VNFM does not allow creation of a duplicate subscription resource
...Post-Conditions: duplicated subscription is not created
Post Create subscription - DUPLICATION
Check HTTP Response Status Code Is303
...Applicability:
...Post-Conditions: duplicated subscription is created if the IUT allows duplications, otherwise the duplicated subscription is not created
Post Create subscription
Check Response for duplicated subscription
GET Subscriptions
[Documentation]Test ID: 6.3.4.4.4
@@ -297,7 +309,7 @@ Post Create subscription
Set Global Variable${response}${outputResponse}
Post Create subscription - DUPLICATION
LogTrying to create a subscription with an already created content
Pass Execution If${VNFM_ALLOWS_DUPLICATE_SUBS}== 0NVFO is not permitting duplication. Skipping the test
Pass Execution If${VNFM_ALLOWS_DUPLICATE_SUBS}== 0VNFM is not permitting duplication. Skipping the test
Set Headers{"Accept": "${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
@@ -305,9 +317,10 @@ Post Create subscription - DUPLICATION