Commit 70d2bcca authored by Giada Landi's avatar Giada Landi
Browse files

Update to 10.2 TPs

parent a48a5500
Loading
Loading
Loading
Loading
+645 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*/
Package app_pkg_mgt {
	
	import all from MEC_Common;
	import all from MEC_010_2_Domain;
	
	//All APP packages

	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_001"
		
		Test objective 
			"Check that MEO creates a new App Package when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1",		//OnboardedAppPkgInfo
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1",		//AppPkg
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/OnboardedAppPkgInfo",
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkg"
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPOST containing 
					uri indicating value "/apmi/v1/app_packages",
					body containing
						AppPkg containing
							appPkgName set to APP_PKG_NAME,
							appPkgVersion set to APP_PKG_VERSION,
							appProvider set to APP_PROVIDER,
							checksum set to CHECKSUM,
							appPkgPath set to APP_PKG_PATH
						;
					;
				; from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
				 	status set to HTTP_200_OK,		//TODO: it should return 201 - specification to be updated
				  	body containing 
				  		OnboardedAppPkgInfoList containing
							OnboardedAppPkgInfo containing
						   		appPkgName set to APP_PKG_NAME,
                     			appPkgVersion set to APP_PKG_VERSION,
                     			appProvider set to APP_PROVIDER,
                     			checksum set to CHECKSUM,
                     			appPkgPath set to APP_PKG_PATH,
                     			operationalState set to "ENABLED",
								usageState set to "NOT_IN_USE"
							;
				  		;
					;
				; to the MEC_OSS entity
			}
		} 		
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_A"			//Negative case 400 Bad request
		
		Test objective 
			"Check that MEO responds with an error when it receives 
			a malformed request for creating a new App Package"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1",		//AppPkg
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkg"
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPOST containing 
					uri indicating value "/apmi/v1/app_packages",
					body containing
						AppPkg containing
							"not" appPkgName						//mandatory attribute
						;
					;
				; from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
				 	status set to HTTP_400_BAD_REQUEST
				; to the MEC_OSS entity
			}
		} 		
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_B"			//Negative case 401 Unauthorized - no token
		
		Test objective 
			"Check that MEO responds with an error when it receives 
			a request for creating a new App Package without credentials"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1",		//AppPkg
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkg"
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPOST containing 
					uri indicating value "/apmi/v1/app_packages",
					"not" authorization,					//Token is mandatory
					body containing
						AppPkg containing
							appPkgName set to any_value
						;
					;
				; from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
				 	status set to HTTP_401_UNAUTHORIZED
				; to the MEC_OSS entity
			}
		} 		
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_C"			//Negative case 401 Unauthorized - wrong token
		
		Test objective 
			"Check that MEO responds with an error when it receives 
			a request for creating a new App Package with wrong credentials"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1",		//AppPkg
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkg"
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a HttpMsg containing
					headers set to vHeadersInvalidToken,		//wrong token
					uri indicating value "/apmi/v1/app_packages",
					body containing
						AppPkg containing
							appPkgName set to any_value
						;
					;
				; from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
				 	status set to HTTP_401_UNAUTHORIZED
				; to the MEC_OSS entity
			}
		} 		
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_D"			//Negative case 404 Not found
		
		Test objective 
			"Check that MEO responds with an error when it receives 
			a request for creating a new App Package to a wrong URI"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1",		//AppPkg
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkg"
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPOST containing
					uri indicating value "/apmi/v1/appPackages",		//wrong URI
					body containing
						AppPkg containing
							appPkgName set to any_value
						;
					;
				; from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
				 	status set to HTTP_404_NOT_FOUND
				; to the MEC_OSS entity
			}
		} 		
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_002a"
		
		Test objective 
			"Check that MEO returns the list of App Packages when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.2",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1",		//OnboardedAppPkgInfo
				  //TODO: The following is just a placeholder; gs-010-2 not yet available; to be updated when available 
		          "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/OnboardedAppPkgInfoList"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID,
				appDId indicating value APPD_ID;
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vGET containing 
					uri indicating value "/apmi/v1/app_packages";
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK,
				  	body containing 
				  		OnboardedAppPkgInfoList containing
							OnboardedAppPkgInfo containing 
								appPkgId set to ON_BOARDED_APP_PKG_ID,
								appDId set to APPD_ID
								;
				  			;
						;
				  ; to the MEC_OSS entity
			}
		}
	}
	
	//Individual APP packages
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_002b"
		
		Test objective 
			"Check that MEO returns the an App Package when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.2",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1",		//OnboardedAppPkgInfo
				  //TODO: The following is just a placeholder; gs-010-2 not yet available; to be updated when available 
		          "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/OnboardedAppPkgInfoList"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID,
				appDId indicating value APPD_ID;
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vGET containing 
					uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}";
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK,
				  	body containing 
				  		OnboardedAppPkgInfo containing 
							appPkgId set to ON_BOARDED_APP_PKG_ID,
							appDId set to APPD_ID
							;
				  		;
				  ; to the MEC_OSS entity
			}
		}
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_003"
		
		Test objective 
			"Check that MEO deletes an App Package when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.4"
				  
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID;
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vDELETE containing 
					uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}";
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK		//TODO: it should return 204 - specification to be updated
				  ; to the MEC_OSS entity
			}
		}
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_004"
		
		Test objective 
			"Check that MEO enables an App Package when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID,
				operationalState set to "DISABLED";		//Ref. Table 6.2.3.3.2-1 MEC 010-2
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPUT containing 
					uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
					uri_parameter appPkgOperation indicating value "ENABLE";
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK;
				to the MEC_OSS entity
			}
		}
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_004_NEG_A"		//Negative case: 403 FORBIDDEN (operation not allowed due to the current status of the resource)
		
		Test objective
			"Check that MEO responds with an error when it receives 
			a request to enable an App Package that is already enabled"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID,
				operationalState set to "ENABLED";		//Ref. Table 6.2.3.3.2-1 MEC 010-2
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPUT containing 
					uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
					uri_parameter appPkgOperation indicating value "ENABLE";		//Wrong since the app package is already enabled 
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_403_FORBIDDEN;
				to the MEC_OSS entity
			}
		}
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PKGM_005"
		
		Test objective 
			"Check that MEO disables an App Package when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID,
				operationalState set to "ENABLED";		//Ref. Table 6.2.3.3.2-1 MEC 010-2
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPUT containing 
					uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
					uri_parameter appPkgOperation indicating value "DISABLE";
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK;
				to the MEC_OSS entity
			}
		}
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MEC25_MM1_PKGM_001"
		
		Test objective 
			"Check that MEO aborts an App Package deletion operation when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID,
				operationalState set to "DELETION_PENDING";		//Ref. Table 6.2.3.3.2-1 MEC 010-2
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPUT containing 
					uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
					uri_parameter appPkgOperation indicating value "ABORT";
					from the MEC_OSS entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK;
				to the MEC_OSS entity
			}
		}
	}

	//All Subscriptions

	Test Purpose {
		TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001a"
		
		Test objective 
			"Check that MEO creates a new subscription entry when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.3.3.1",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.9.2-1",		//AppPkgSubscription
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1",		//AppPkgSubscriptionInfo  
					//TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
					"https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkgSubscription",
					"https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkgSubscriptionInfo"
		Config Id Config_MEC_3
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPOST containing 
					uri indicating value "/apmi/v1/subscriptions",
					body containing
						AppPkgSubscription containing
							subscriptionType set to "ON_BOARDING",
							callbackUri set to CALLBACK_URI
						;
					;
				; from the MEC_SUB entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
				 	status set to HTTP_201_CREATED,
				  	body containing 
				  		AppPkgSubscriptionInfo containing
							subscriptionId set to any_value,
							subscriptionType set to "ON_BOARDING",
                     		callbackUri set to CALLBACK_URI
				  		;
					;
				; to the MEC_SUB entity
			}
		} 		
	}

	Test Purpose {
		TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001b"
		
		Test objective 
			"Check that MEO returns the list of App Package Management subscriptions when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.3.3.2",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.7.2-1",		//AppPkgSubscriptionLinkList
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkgSubscriptionLinkList"
		Config Id Config_MEC_3
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package_subscription containing
				subscriptionId set to SUBSCRIPTION_ID,
				subscriptionType set to "ON_BOARDING";
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vGET containing 
					uri indicating value "/apmi/v1/subscriptions";
					from the MEC_SUB entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK,
				  	body containing 
				  		AppPkgSubscriptionLinkList containing
							subscriptions containing 
								href set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}",
								rel set to "ON_BOARDING"
								;
				  			;
						;
				  ; to the MEC_SUB entity
			}
		}
	}

	//Individual Subscriptions
	Test Purpose {
		TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001c"
		
		Test objective 
			"Check that MEO returns the an App Package Management Subscription when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.2",
				  "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1",		//AppPkgSubscriptionInfo  
				  //TODO: The following is just a placeholder; OPEN API gs-010-2 not yet available; to be updated when available
				  "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/AppPkgSubscriptionInfo"
		          
		Config Id Config_MEC_3
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package_subscription containing
				subscriptionId set to SUBSCRIPTION_ID,
				subscriptionType set to "ON_BOARDING";
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vGET containing 
					uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}";
					from the MEC_SUB entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_200_OK,
				  	body containing 
				  		AppPkgSubscriptionInfo containing 
							subscriptionId set to SUBSCRIPTION_ID,
							subscriptionType set to "ON_BOARDING"
							;
				  		;
				  ; to the MEC_SUB entity
			}
		}
	}
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001d"
		
		Test objective 
			"Check that MEO deletes an App Package Management Subscription when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.4"
				  
		Config Id Config_MEC_3
 		PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT 

		Initial conditions  with {
			the IUT entity having a App_Package_subscription containing
				subscriptionId set to SUBSCRIPTION_ID;
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vDELETE containing 
					uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}";
					from the MEC_SUB entity
			}
			then {
				the IUT entity sends a HTTP_RESPONSE containing
					status set to HTTP_204_NO_CONTENT
				  ; to the MEC_SUB entity
			}
		}
	}
}
+0 −111
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*/
Package app_pkg_mgt {
	
	import all from MEC_Common;
	import all from MEC_010_2_Domain;
	
	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PMG_001"
		
		Test objective 
			"Check that MEO returns the list of App Packages when requested"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.2", 
		          "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml/#definitions/OnboardedAppPkgInfoList"
		          
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE PIC_APP_PACKAGE_MANAGEMENT // TODO add "and"/"or" operator 

		Initial conditions  with {
			the IUT entity having a App_Package containing
				appPkgId indicating value ON_BOARDED_APP_PKG_ID_VALUE,
				appDId indicating value APPD_ID;
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vGET containing 
					Uri indicating value "/apmi/v1/app_packages";
			}
			then {
				the IUT entity sends a httpResponse containing
				  Response_Status_Code set to "200 OK",
				  Message_Body containing 
				  	OnboardedAppPkgInfoList containing
						OnboardedAppPkgInfo containing 
							appPkgId set to ON_BOARDED_APP_PKG_ID_VALUE,
							appDId set to APPD_ID
							;
				  		;
					;
				  ;
			}
		} 		
	}

	Test Purpose {
		TP Id "TP_MEC_MEO_MM1_PMG_002"
		
		Test objective 
			"Check that a new App Package is created when 
			it is requested to the MEO from the OSS"
		
		Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1"
		Config Id Config_MEC_2
 		PICS Selection PIC_APP_PACKAGE PIC_APP_PACKAGE_MANAGEMENT

		Initial conditions  with {
			the IUT entity being_in idle_state
		}

 		Expected behaviour
		ensure that {
			when {
				the IUT entity receives a vPOST containing 
					Uri indicating value "/apmi/v1/app_packages",
					Message_Body containing
						appPkg containing
							appPkgName set to APP_PKG_NAME,
							appPkgVersion set to APP_PKG_VERSION,
							appProvider set to APP_PROVIDER,
							checksum set to CHECKSUM,
							appPkgPath set to APP_PKG_PATH
						;
					;
				;
			}
			then {
				the IUT entity sends a httpResponse containing
				  Response_Status_Code set to "200 OK",
				  Message_Body containing 
				  	OnboardedAppPkgInfoList containing
						OnboardedAppPkgInfo containing
						   appPkgName set to APP_PKG_NAME,
                     appPkgVersion set to APP_PKG_VERSION,
                     appProvider set to APP_PROVIDER,
                     checksum set to CHECKSUM,
                     appPkgPath set to APP_PKG_PATH,
                     operationalState set to "ENABLED",
							usageState set to "NOT_IN_USE"
							;
				  		;
					 ;
				  ;
			}
		} 		
	}
}
+20 −18

File changed.

Preview size limit exceeded, changes collapsed.

+27 −5

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Contains only whitespace changes.