Loading Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +286 −18 Original line number Diff line number Diff line Loading @@ -16,14 +16,15 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { import all from MEC_Common; //Not clear how the 400 could be generated for the GET, since the GET does not have any body or query parameters Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_A" // Negative test: 401 Unauthorized (No token) TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_B" // Negative test: 401 Unauthorized (No token) Test objective "Check that the RNIS service responds with error when a RNIS subscription is requested" "Check that the RNIS service responds with error when a given RNIS subscription is requested without credentials" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 Loading Loading @@ -57,12 +58,12 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_B" // Negative test: 401 Unauthorized (Invalid token) TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token) Test objective "Check that the RNIS service responds with error when a RNIS subscription is requested" "Check that the RNIS service responds with error when a given RNIS subscription is requested with wrong token" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 Loading Loading @@ -96,21 +97,19 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_C" // Negative test: 404 Not Found (Invalid token) TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_D" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when a RNIS subscription is requested" "Check that the RNIS service responds with error when a not existing RNIS subscription is requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; Loading @@ -120,7 +119,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { the IUT entity receives a vGET containing the IUT entity receives a GET containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } Loading @@ -133,6 +132,8 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } //Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered /* Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_D" // Negative test: 406 Not Acceptable (Content type format octet-stream requested by the client) Loading Loading @@ -170,4 +171,271 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } } } */ Test Purpose { // Negative test: 400 Bad request TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_A" Test objective "Check that the RNIS service sends an error when it receives a malformed modify request for a RNIS subscription" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing callbackRefer indicating value NEW_CALLBACK_URI, //wrong field, it should be callbackReference _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; ; ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad Request" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_B" // Negative test: 401 Unauthorized (No token) Test objective "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested without credentials" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", "not" authorization ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token) Test objective "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested with wrong token" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", headers set to vHeadersInvalidToken ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_D" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when a modification for a not existing RNIS subscription is requested" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" ; to the MEC_SUB entity } } } Test Purpose { // Negative test: 401 Unauthorized (No token) TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_B" Test objective "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription without token" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a DELETE containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", "not" authorization //missing token ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { // Negative test: 401 Unauthorized (Invalid token) TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_C" Test objective "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription with a wrong token" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a DELETE containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", headers set to vHeadersInvalidToken //wrong token ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_D" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when the deletion of a not existing RNIS subscription is requested" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a DELETE containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" ; to the MEC_SUB entity } } } } Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 +11 −14 Original line number Diff line number Diff line Loading @@ -18,12 +18,12 @@ Package MEC012_APP_MP1_RNI_SUB_BV { import all from MEC_Common; Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06" TP Id "TP_MEC_RNI_SUBSCRIPTION_03" Test objective "Check that the RNIS service sends a RNIS subscription when requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 Loading @@ -31,7 +31,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading Loading @@ -65,19 +65,19 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_03" TP Id "TP_MEC_RNI_SUBSCRIPTION_04" Test objective "Check that the RNIS service modifies a RNIS subscription when requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.2", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -89,10 +89,9 @@ Package MEC012_APP_MP1_RNI_SUB_BV { ensure that { when { the IUT entity receives a vPUT containing uri indicating value SUBSCRIPTION_HREF_VALUE, uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -106,7 +105,6 @@ Package MEC012_APP_MP1_RNI_SUB_BV { status set to "200 OK", body containing subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -121,19 +119,18 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_04" TP Id "TP_MEC_RNI_SUBSCRIPTION_05" Test objective "Check that the RNIS service deletes a RNIS subscription when requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.5", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -145,7 +142,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { ensure that { when { the IUT entity receives a vDELETE containing uri indicating value SUBSCRIPTION_HREF_VALUE uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { Loading Loading
Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +286 −18 Original line number Diff line number Diff line Loading @@ -16,14 +16,15 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { import all from MEC_Common; //Not clear how the 400 could be generated for the GET, since the GET does not have any body or query parameters Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_A" // Negative test: 401 Unauthorized (No token) TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_B" // Negative test: 401 Unauthorized (No token) Test objective "Check that the RNIS service responds with error when a RNIS subscription is requested" "Check that the RNIS service responds with error when a given RNIS subscription is requested without credentials" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 Loading Loading @@ -57,12 +58,12 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_B" // Negative test: 401 Unauthorized (Invalid token) TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token) Test objective "Check that the RNIS service responds with error when a RNIS subscription is requested" "Check that the RNIS service responds with error when a given RNIS subscription is requested with wrong token" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 Loading Loading @@ -96,21 +97,19 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_C" // Negative test: 404 Not Found (Invalid token) TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_D" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when a RNIS subscription is requested" "Check that the RNIS service responds with error when a not existing RNIS subscription is requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; Loading @@ -120,7 +119,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { the IUT entity receives a vGET containing the IUT entity receives a GET containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } Loading @@ -133,6 +132,8 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } //Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered /* Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_D" // Negative test: 406 Not Acceptable (Content type format octet-stream requested by the client) Loading Loading @@ -170,4 +171,271 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } } } */ Test Purpose { // Negative test: 400 Bad request TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_A" Test objective "Check that the RNIS service sends an error when it receives a malformed modify request for a RNIS subscription" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing callbackRefer indicating value NEW_CALLBACK_URI, //wrong field, it should be callbackReference _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; ; ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad Request" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_B" // Negative test: 401 Unauthorized (No token) Test objective "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested without credentials" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", "not" authorization ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token) Test objective "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested with wrong token" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", headers set to vHeadersInvalidToken ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_D" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when a modification for a not existing RNIS subscription is requested" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a PUT containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" ; to the MEC_SUB entity } } } Test Purpose { // Negative test: 401 Unauthorized (No token) TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_B" Test objective "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription without token" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a DELETE containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", "not" authorization //missing token ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { // Negative test: 401 Unauthorized (Invalid token) TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_C" Test objective "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription with a wrong token" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a DELETE containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", headers set to vHeadersInvalidToken //wrong token ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" ; to the MEC_SUB entity } } } Test Purpose { TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_D" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when the deletion of a not existing RNIS subscription is requested" Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; } Expected behaviour ensure that { when { the IUT entity receives a DELETE containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" ; to the MEC_SUB entity } } } }
Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 +11 −14 Original line number Diff line number Diff line Loading @@ -18,12 +18,12 @@ Package MEC012_APP_MP1_RNI_SUB_BV { import all from MEC_Common; Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_06" TP Id "TP_MEC_RNI_SUBSCRIPTION_03" Test objective "Check that the RNIS service sends a RNIS subscription when requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 Loading @@ -31,7 +31,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading Loading @@ -65,19 +65,19 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_03" TP Id "TP_MEC_RNI_SUBSCRIPTION_04" Test objective "Check that the RNIS service modifies a RNIS subscription when requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.2", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -89,10 +89,9 @@ Package MEC012_APP_MP1_RNI_SUB_BV { ensure that { when { the IUT entity receives a vPUT containing uri indicating value SUBSCRIPTION_HREF_VALUE, uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -106,7 +105,6 @@ Package MEC012_APP_MP1_RNI_SUB_BV { status set to "200 OK", body containing subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -121,19 +119,18 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { TP Id "TP_MEC025_RNI_SUBSCRIPTION_04" TP Id "TP_MEC_RNI_SUBSCRIPTION_05" Test objective "Check that the RNIS service deletes a RNIS subscription when requested" Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.5", Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" Loading @@ -145,7 +142,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { ensure that { when { the IUT entity receives a vDELETE containing uri indicating value SUBSCRIPTION_HREF_VALUE uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { Loading