Loading Test Purposes/MEC011/mec-011-domain.tplan2 +22 −2 Original line number Diff line number Diff line Package MEC_011_Domain { import all from MEC_011_DATA; Domain { pics: - PIC_MEC_PLAT // FUT is a MEC Platform // Any PICS in this list shall reference a PICS item in MEC 025 clause 7 - PIC_MEC_PLAT // FUT is a MEC Platform (MEC025, Table 7.4.2-1 item 1) - PIC_SERVICES // Implements services - PIC_NOTIFICATIONS // Implements notifications ; entities: - MEC_APP // MEC Application using the MEC Platform Application Enablement API - MEC_APP_Registrant - MEC_APP_Subscriber - IUT // MEC Platform - TestSystem ; events: - services_running // services available in the IUT Loading @@ -24,4 +28,20 @@ Package MEC_011_Domain { ; } Configuration { Interface Type myPort accepts string; Component Type MecAppComponent with gate p of type myPort; Component Type MecPlatformComponent with gate p of type myPort; Test Configuration myConfig containing Tester component MEC_App of type MecAppComponent SUT component MEC_Plat of type MecPlatformComponent connection between MEC_App.p and MEC_Plat.p ; } } No newline at end of file Test Purposes/MEC011/mec-011.tplan2 +33 −13 Original line number Diff line number Diff line Loading @@ -66,14 +66,18 @@ Package MEC_011_mp1 { Test objective "Check that the IUT notifies the authorised relevant application instances when a new service is registered or updated when they are subscribed" when a new service is registered when they are subscribed" Reference "ETSI GS MEC 011 V2.0.3, clause 7.4.3.4" Config Id myConfig PICS Selection PIC_MEC_PLAT PIC_SERVICES PIC_NOTIFICATIONS Initial conditions with { the IUT entity being_in idle_state and the TestSystem entity subscribed_to the MP1_Notifications the MEC_APP_Registrant entity being_in idle_state and the MEC_APP_Subscriber entity subscribed_to the MP1_subscription_a } Expected behaviour Loading @@ -82,20 +86,36 @@ Package MEC_011_mp1 { the IUT entity receives a POST containing Uri indicating value "/mp1/v1/services", Host indicating value IUT_HOSTNAME, Content_type indicating value "application/json;charset=utf-8" // Q: is the content type defined anywhere? // Q: how to ensure HTTPS, OAuth 2.0 with bearer tokens (clause 7.2) Token indicating value VALID_TOKEN, Content_type indicating value CONTENT_JSON body containing serviceInfo set to SERVICE_INFO_SAMPLE_1 ; ; //; } then { the IUT entity sends a httpResponse containing // Q: should the status code be in the MEC-025 tables? Status_Code indicating value "200 OK", version indicating value "1.0", // Q: do we only accept a specific version? Content_type indicating value "application/json;charset=utf-8", // MEC 011 7.4.3.4 the IUT entity sends a httpResponse containing Status_Code indicating value "201 CREATED", Content_type indicating value CONTENT_JSON, Location indicating value LOCATION, body containing service indicating value SERVICE_INFO_SAMPLE_1 ; ; to the MEC_APP_Registrant entity and // MEC 011 6.4.2 the IUT entity sends a notification_message containing body containing something indicating value lol ;; notificationType set to "SerAvailabilityNotification", services indicating value SERVICE_INFO_SAMPLE_1, _links containing subscription set to MP1_subscription_a; ; ; to the MEC_APP_Subscriber entity } } } Loading Test Purposes/MEC011/~$c-011.tplan2.docxdeleted 100644 → 0 −162 B File deleted. View file Loading
Test Purposes/MEC011/mec-011-domain.tplan2 +22 −2 Original line number Diff line number Diff line Package MEC_011_Domain { import all from MEC_011_DATA; Domain { pics: - PIC_MEC_PLAT // FUT is a MEC Platform // Any PICS in this list shall reference a PICS item in MEC 025 clause 7 - PIC_MEC_PLAT // FUT is a MEC Platform (MEC025, Table 7.4.2-1 item 1) - PIC_SERVICES // Implements services - PIC_NOTIFICATIONS // Implements notifications ; entities: - MEC_APP // MEC Application using the MEC Platform Application Enablement API - MEC_APP_Registrant - MEC_APP_Subscriber - IUT // MEC Platform - TestSystem ; events: - services_running // services available in the IUT Loading @@ -24,4 +28,20 @@ Package MEC_011_Domain { ; } Configuration { Interface Type myPort accepts string; Component Type MecAppComponent with gate p of type myPort; Component Type MecPlatformComponent with gate p of type myPort; Test Configuration myConfig containing Tester component MEC_App of type MecAppComponent SUT component MEC_Plat of type MecPlatformComponent connection between MEC_App.p and MEC_Plat.p ; } } No newline at end of file
Test Purposes/MEC011/mec-011.tplan2 +33 −13 Original line number Diff line number Diff line Loading @@ -66,14 +66,18 @@ Package MEC_011_mp1 { Test objective "Check that the IUT notifies the authorised relevant application instances when a new service is registered or updated when they are subscribed" when a new service is registered when they are subscribed" Reference "ETSI GS MEC 011 V2.0.3, clause 7.4.3.4" Config Id myConfig PICS Selection PIC_MEC_PLAT PIC_SERVICES PIC_NOTIFICATIONS Initial conditions with { the IUT entity being_in idle_state and the TestSystem entity subscribed_to the MP1_Notifications the MEC_APP_Registrant entity being_in idle_state and the MEC_APP_Subscriber entity subscribed_to the MP1_subscription_a } Expected behaviour Loading @@ -82,20 +86,36 @@ Package MEC_011_mp1 { the IUT entity receives a POST containing Uri indicating value "/mp1/v1/services", Host indicating value IUT_HOSTNAME, Content_type indicating value "application/json;charset=utf-8" // Q: is the content type defined anywhere? // Q: how to ensure HTTPS, OAuth 2.0 with bearer tokens (clause 7.2) Token indicating value VALID_TOKEN, Content_type indicating value CONTENT_JSON body containing serviceInfo set to SERVICE_INFO_SAMPLE_1 ; ; //; } then { the IUT entity sends a httpResponse containing // Q: should the status code be in the MEC-025 tables? Status_Code indicating value "200 OK", version indicating value "1.0", // Q: do we only accept a specific version? Content_type indicating value "application/json;charset=utf-8", // MEC 011 7.4.3.4 the IUT entity sends a httpResponse containing Status_Code indicating value "201 CREATED", Content_type indicating value CONTENT_JSON, Location indicating value LOCATION, body containing service indicating value SERVICE_INFO_SAMPLE_1 ; ; to the MEC_APP_Registrant entity and // MEC 011 6.4.2 the IUT entity sends a notification_message containing body containing something indicating value lol ;; notificationType set to "SerAvailabilityNotification", services indicating value SERVICE_INFO_SAMPLE_1, _links containing subscription set to MP1_subscription_a; ; ; to the MEC_APP_Subscriber entity } } } Loading