Commit 2ebfdcc5 authored by piscione's avatar piscione
Browse files

Added TPs for MEC028.

parent 1e2a5840
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ Package MEC_MEC028_SRV_WAI {

		
		Test Purpose {
			TP Id "MEC_MEC028_SRV_WAI_001_NF"
			TP Id "MEC_MEC028_SRV_WAI_007_NF"
			Test objective
				"Check that the IUT responds with an error when a request for existing subscription with incorrect parameters is sent"
			Reference "ETSI GS MEC 028 2.1.1, clause 7.6.3.1"
@@ -270,7 +270,7 @@ Package MEC_MEC028_SRV_WAI {
		}
		
		Test Purpose {
			TP Id "MEC_MEC028_SRV_WAI_002_NF"
			TP Id "MEC_MEC028_SRV_WAI_008_NF"
			Test objective
				"Check that the IUT responds with an error when an not existing subscription cannot be deleted"
			Reference "ETSI GS MEC 028 2.1.1, clause 7.6.3.5"
+71 −1
Original line number Diff line number Diff line
@@ -96,6 +96,41 @@ Package MEC_MEC028_SRV_WAI {
		}
		

		Test Purpose {
			TP Id "MEC_MEC028_SRV_WAI_001_NF"
			Test objective
				"Check that the IUT responds with an error when
				a request with not existing parameters is sent"
			Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.1"
   
			Config Id Config_MEC_4
   
			PICS Selection PIC_SERVICES

			Initial conditions  with {
				the IUT entity being_in idle_state
  			}
			//MEC 028, clause 5.2.4.1
			Expected behaviour
				ensure that {
				when {
					the IUT entity receives
						a vGET containing
							uri indicating value "/wai/v1/subscriptions/INVALID_URI"
						;
					from the Dev_App entity
				}
				then {
					// MEC 028, clause 7.5.3.1
					the IUT entity sends
						a HTTP_RESPONSE containing
							status_code set to "404 Not Found"
						;
					to the Dev_App entity
				}
         	}
		}
		

		Test Purpose {
			TP Id "MEC_MEC028_SRV_WAI_004_OK"
@@ -192,5 +227,40 @@ Package MEC_MEC028_SRV_WAI {
				}
         	}
		}	
}


		Test Purpose {
			TP Id "MEC_MEC028_SRV_WAI_002_NF"
			Test objective
				"Check that the IUT responds with an error when
				a request with not existing parameters is sent"
			Reference "ETSI GS MEC 028 2.1.1, clause 7.5.3.1"
   
			Config Id Config_MEC_4
   
			PICS Selection PIC_SERVICES

			Initial conditions  with {
				the IUT entity being_in idle_state
  			}
			//MEC 028, clause 5.2.4.1
			Expected behaviour
				ensure that {
				when {
					the IUT entity receives
						a vPOST containing
							uri indicating value "/wai/v1/subscriptions/INVALID_URI"
						;
					from the Dev_App entity
				}
				then {
					// MEC 028, clause 7.5.3.1
					the IUT entity sends
						a HTTP_RESPONSE containing
							status_code set to "404 Not Found"
						;
					to the Dev_App entity
				}
         	}
		}
}
 No newline at end of file