Commit 84fc8544 authored by YannGarcia's avatar YannGarcia
Browse files

Merge branch 'TTF_T027' of https://forge.etsi.org/rep/mec/gs032p2-test-purposes into TTF_T027

parents 66576910 3c9573df
Loading
Loading
Loading
Loading
+187 −23
Original line number Diff line number Diff line
@@ -9,11 +9,10 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {


   Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_01"
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_01_001"

      Test objective
        "Check that the IUT responds with the list of registered IoT devices
         when queried by a Service Consumer"
        "Check that the IUT responds with the list of registered IoT devices when queried by a Service Consumer"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.3.3.1"

@@ -26,6 +25,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
         the MEC_PROVIDER entity having a DeviceInfo containing
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
            SUPI indicating value SUPI_DEVICE,
            IMSI indicating value IMSI_DEVICE,
            enabled set to false
         ;
@@ -50,6 +50,64 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
				            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
				            IMSI indicating value IMSI_DEVICE,
				            SUPI indicating value SUPI_DEVICE,
				            enabled set to false 
                  			;
               			;
               		;
               ;
               to the MEC_CONSUMER entity
            }
         }
   }




   Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_01_002"

      Test objective
        "Check that the IUT responds with the list of registered IoT devices when queried using a filter by a Service Consumer"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.3.3.1"

      Config Id Config_MEC_6

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the MEC_PROVIDER entity having a DeviceInfo containing
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
            IMSI indicating value IMSI_DEVICE,
            SUPI indicating value SUPI_DEVICE,
            enabled set to false
         ;
      }

      // MEC 033 V3.1.1 Clause 6.2.2 Type: DeviceInfo
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vGET containing
               
                  uri indicating value "/iots/v1/registered_devices?filter=(eq,enabled,false)"
               ;
               from the MEC_CONSUMER entity
            }
            then {
               // MEC 033 Clause 7.3.3.1
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "200 OK"
                  body containing
                     arrayOfDeviceInfo containing
	                     DeviceInfo containing
				            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
				            IMSI indicating value IMSI_DEVICE,
				            SUPI indicating value SUPI_DEVICE,
				            enabled set to false 
                  			;
               			;
@@ -60,12 +118,112 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
         }
   }

   Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_01_003"

      Test objective
        "Check that the IUT responds with the list of registered IoT devices when queried by a Service Consumer filtering one field"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.3.3.1"

      Config Id Config_MEC_6

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the MEC_PROVIDER entity having a DeviceInfo containing
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
            IMSI indicating value IMSI_DEVICE,
            SUPI indicating value SUPI_DEVICE,
            enabled set to false
         ;
      }

      // MEC 033 V3.1.1 Clause 6.2.2 Type: DeviceInfo
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vGET containing
                  uri indicating value "/iots/v1/registered_devices?fields=deviceId"
               ;
               from the MEC_CONSUMER entity
            }
            then {
               // MEC 033 Clause 7.3.3.1
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "200 OK"
                  body containing
                     arrayOfDeviceInfo containing
	                     DeviceInfo containing
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER
				            ;
               			;
               		;
               ;
               to the MEC_CONSUMER entity
            }
         }
   }


 Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_01_004"

      Test objective
        "Check that the IUT responds with the list of registered IoT devices when queried by a Service Consumer filtering the number of fields and applying a 
		filter to a specific field"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.3.3.1"

      Config Id Config_MEC_6

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the MEC_PROVIDER entity having a DeviceInfo containing
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
            IMSI indicating value IMSI_DEVICE,
            SUPI indicating value SUPI_DEVICE,
            enabled set to false
         ;
      }

      // MEC 033 V3.1.1 Clause 6.2.2 Type: DeviceInfo
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vGET containing
                  uri indicating value "/iots/v1/registered_devices?fields=deviceId&filter=(eq,enabled,false)"
               ;
               from the MEC_CONSUMER entity
            }
            then {
               // MEC 033 Clause 7.3.3.1
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "200 OK"
                  body containing
                     arrayOfDeviceInfo containing
	                     DeviceInfo containing
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER
				            ;
               			;
               		;
               ;
               to the MEC_CONSUMER entity
            }
         }
   }


   Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_02"

      Test objective
        "Check that the IUT registers the information of an IoT device
        when requested by a Service Consumer"
        "Check that the IUT registers the information of an IoT device when requested by a Service Consumer"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.3.3.4"

@@ -88,7 +246,8 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
                     DeviceInfo containing
				            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
				            IMSI indicating value IMSI_DEVICE
				            IMSI indicating value IMSI_DEVICE,
				            SUPI indicating value SUPI_DEVICE
                  			;
               		;
               ;
@@ -104,6 +263,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
				            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
				            IMSI indicating value IMSI_DEVICE,
				            SUPI indicating value SUPI_DEVICE,
				            enabled indicating value false 
                  			;
               			;
@@ -117,8 +277,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_BR_02"

      Test objective
        "Check that the IUT returns an error
         when Service Consumer request to register an IoT device with incorrect parameters"
        "Check that the IUT returns an error when Service Consumer request to register an IoT device with incorrect parameters"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.3.3.4"

@@ -142,6 +301,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
				            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
				            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
				            IMSI indicating value IMSI_DEVICE,
				            SUPI indicating value SUPI_DEVICE,
				            enabled indicating value false // According to Note 3 of 6.2.2-1 table, it cannot be set directly by the service consumer.
                  			;
               		;
@@ -152,7 +312,6 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
               // MEC 033 Clause 7.3.3.4
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "400 Bad Request",
                  Location set to LOCATION,
                  body containing
                     ProblemDetails containing 
                        		details indicating value ERROR_DETAILS
@@ -168,8 +327,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_03"

      Test objective
        "Check that the IUT returns the IoT device information
         when requested by Service Consumer specifying the device identifier"
        "Check that the IUT returns the IoT device information when requested by Service Consumer specifying the device identifier"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.1"

@@ -183,6 +341,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId set to registeredDeviceId,
            IMSI indicating value IMSI_DEVICE,
            SUPI indicating value SUPI_DEVICE,
            enabled indicating value false
         ;
         
@@ -206,6 +365,7 @@ Package MEC_MEC033_MEX_IOTS_IOTDEV {
				            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
				            deviceId set to registeredDeviceId,
				            IMSI indicating value IMSI_DEVICE,
				            SUPI indicating value SUPI_DEVICE,
				            enabled indicating value false 
                  			;
               			;
@@ -219,8 +379,7 @@ Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_NF_03"

      Test objective
        "Check that the IUT returns error
         when Service Consumer request to retrieve a not registered IoT device"
        "Check that the IUT returns error when Service Consumer request to retrieve a not registered IoT device"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.1"

@@ -234,6 +393,7 @@ Test Purpose {
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId set to registeredDeviceId,
            IMSI indicating value IMSI_DEVICE,
            SUPI indicating value SUPI_DEVICE,
            enabled indicating value false
         ;
         
@@ -262,8 +422,7 @@ Test Purpose {
	 TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_04"
	
	      Test objective
	        "Check that the IUT updates the information about a registered IoT device
	        when requested by a Service Consumer"
	        "Check that the IUT updates the information about a registered IoT device when requested by a Service Consumer"
	
	      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.2"
	
@@ -277,6 +436,7 @@ Test Purpose {
	            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
	            deviceId set to registeredDeviceId,
	            IMSI indicating value IMSI_DEVICE,
	            SUPI indicating value SUPI_DEVICE,
	            enabled indicating value false
	         ;
	      }
@@ -292,6 +452,7 @@ Test Purpose {
						            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
						            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
						            IMSI indicating value IMSI_DEVICE,
						            SUPI indicating value SUPI_DEVICE,
						            requestedIotPlatformId indicating value REQ_IOT_PLATFORM,
						            requestedMecTrafficRule containing
						                TrafficRuleDescriptor containing
@@ -317,6 +478,7 @@ Test Purpose {
						            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
						            deviceId indicating value HUMAN_READABLE_IDENTIFIER,
						            IMSI indicating value IMSI_DEVICE,
						            SUPI indicating value SUPI_DEVICE,
						            requestedIotPlatformId indicating value REQ_IOT_PLATFORM,
						            requestedMecTrafficRule containing
						                TrafficRuleDescriptor containing
@@ -341,8 +503,7 @@ Test Purpose {
	 TP Id "TP_MEC_MEC033_IOTS_IOTDEV_NF_04"
	
	      Test objective
	        "Check that the IUT returns an error
	        when a Service Consumer requests to update a not registered IoT device"
	        "Check that the IUT returns an error when a Service Consumer requests to update a not registered IoT device"
	
	      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.2"
	
@@ -356,6 +517,7 @@ Test Purpose {
	            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
	            deviceId set to registeredDeviceId,
	            IMSI indicating value IMSI_DEVICE,
	            SUPI indicating value SUPI_DEVICE,
	            enabled indicating value false
	         ;
	      }
@@ -371,6 +533,7 @@ Test Purpose {
						            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
						            deviceId set to registeredDeviceId,
						            IMSI indicating value IMSI_DEVICE,
						            SUPI indicating value SUPI_DEVICE,
						            requestedIotPlatformId indicating value REQ_IOT_PLATFORM,
						            requestedMecTrafficRule containing
						                TrafficRuleDescriptor containing
@@ -400,8 +563,7 @@ Test Purpose {
	 TP Id "TP_MEC_MEC033_IOTS_IOTDEV_BR_04"
	
	      Test objective
	        "Check that the IUT returns an error
	        when a Service Consumer requests to update an existing IoT device with incorrect parameters"
	        "Check that the IUT returns an error when a Service Consumer requests to update an existing IoT device with incorrect parameters"
	
	      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.2"
	
@@ -415,6 +577,7 @@ Test Purpose {
	            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
	            deviceId set to registeredDeviceId,
	            IMSI indicating value IMSI_DEVICE,
	            SUPI indicating value SUPI_DEVICE,
	            enabled indicating value false
	         ;
	      }
@@ -430,6 +593,7 @@ Test Purpose {
						            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
						            deviceId set to registeredDeviceId,
						            IMSI indicating value IMSI_DEVICE,
						            SUPI indicating value SUPI_DEVICE,
						            enabled set to TRUE, // According to Note 3 of 6.2.2-1 table, it cannot be set directly by the service consumer.
						            requestedMecTrafficRule containing
						                TrafficRuleDescriptor containing
@@ -465,8 +629,7 @@ Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_OK_05"

      Test objective
        "Check that the IUT deregisters an IoT device information
         when requested by a Service Consumer specifying the IoT registered device identifier"
        "Check that the IUT deregisters an IoT device information when requested by a Service Consumer specifying the IoT registered device identifier"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.5"

@@ -480,6 +643,7 @@ Test Purpose {
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId set to registeredDeviceId,
            IMSI indicating value IMSI_DEVICE,
            SUPI indicating value SUPI_DEVICE,
            enabled indicating value false
         ;
         
@@ -508,8 +672,7 @@ Test Purpose {
      TP Id "TP_MEC_MEC033_IOTS_IOTDEV_NF_05"

      Test objective
        "Check that the IUT returns an error
        when a Service Consumer requests to deregisters an IoT device using incorrect parameters"
        "Check that the IUT returns an error when a Service Consumer requests to deregisters an IoT device using incorrect parameters"

      Reference "ETSI GS MEC 033 V3.1.1, clause 7.4.3.5"

@@ -522,6 +685,7 @@ Test Purpose {
         the MEC_PROVIDER entity not having a DeviceInfo containing
            deviceAuthenticationInfo indicating value SOME_CUSTOM_VALUES,
            deviceId indicating value registeredDeviceId,
            SUPI indicating value SUPI_DEVICE,
            IMSI indicating value IMSI_DEVICE,
            enabled indicating value false
         ;