Commit 4cd2f5ab authored by piscione's avatar piscione
Browse files

Added draft notification Test Purposes for MEC048v3.1.1

parent e4817d38
Loading
Loading
Loading
Loading
+193 −31
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ Package MEC_MEC048_MEO_CSE {
	TP Id "TP_MEC_MEC048_MEO_CSE_002_OK"

        Test objective
              "Check that the IUT creates a new tenantInfo when requested by a MEC Orchestrator"
              "Check that the IUT creates a new tenantInfo when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2"
@@ -287,7 +287,7 @@ Package MEC_MEC048_MEO_CSE {
    TP Id "TP_MEC_MEC048_MEO_CSE_003_OK"

        Test objective
            "Check that the IUT responds with a specific tenantInfo when requested by a MEC Consumer"
            "Check that the IUT responds with a specific tenantInfo when requested to a MEC Consumer"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2"
@@ -336,7 +336,7 @@ Package MEC_MEC048_MEO_CSE {
    TP Id "TP_MEC_MEC048_MEO_CSE_003_NF"

        Test objective
            "Check that the IUT returns an error when requesting a not existing tenantInfo by a MEC Consumer"
            "Check that the IUT returns an error when requesting a not existing tenantInfo to a MEC Consumer"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2"
@@ -377,7 +377,7 @@ Package MEC_MEC048_MEO_CSE {
	TP Id "TP_MEC_MEC048_MEO_CSE_004_OK"

        Test objective
              "Check that the IUT updates an existing tenantInfo when requested by a MEC Orchestrator"
              "Check that the IUT updates an existing tenantInfo when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.4.3.2, clause 6.2.2"
@@ -432,7 +432,7 @@ Package MEC_MEC048_MEO_CSE {
	TP Id "TP_MEC_MEC048_MEO_CSE_004_NF"

        Test objective
              "Check that the IUT returns an error on updating a not existing tenantInfo requested by a MEC Orchestrator"
              "Check that the IUT returns an error on updating a not existing tenantInfo requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.4.3.2, clause 6.2.2"
@@ -481,7 +481,7 @@ Package MEC_MEC048_MEO_CSE {
	TP Id "TP_MEC_MEC048_MEO_CSE_004_BR"

        Test objective
              "Check that the IUT returns an error on updating with invalid values tenantInfo requested by a MEC Orchestrator"
              "Check that the IUT returns an error on updating with invalid values tenantInfo requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.4.3.2, clause 6.2.2"
@@ -532,7 +532,7 @@ Package MEC_MEC048_MEO_CSE {
	TP Id "TP_MEC_MEC048_MEO_CSE_005_OK"

        Test objective
              "Check that the IUT removes a tenantInfo when requested by a MEC Orchestrator"
              "Check that the IUT removes a tenantInfo when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.4.3.5"
@@ -571,7 +571,7 @@ Package MEC_MEC048_MEO_CSE {
	TP Id "TP_MEC_MEC048_MEO_CSE_005_NF"

        Test objective
              "Check that the IUT returns an error on deleting a not existing tenantInfo when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on deleting a not existing tenantInfo when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.4.3.5"
@@ -610,7 +610,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_006_OK"

        Test objective
              "Check that the IUT returns a resourceQuotaInfo for a specific tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns a resourceQuotaInfo for a specific tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.5.3.1, clause 6.2.3"
@@ -657,7 +657,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_006_NF"

        Test objective
              "Check that the IUT returns an error on retrieving resourceQuotaInfo for a not existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on retrieving resourceQuotaInfo for a not existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.5.3.1, clause 6.2.3"
@@ -697,7 +697,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_007_OK"

        Test objective
              "Check that the IUT updates the resourceQuotaInfo for an existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT updates the resourceQuotaInfo for an existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.5.3.2, clause 6.2.3"
@@ -751,7 +751,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_007_NF"

        Test objective
              "Check that the IUT returns an error on updating the resourceQuotaInfo for a not existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on updating the resourceQuotaInfo for a not existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.5.3.2, clause 6.2.3"
@@ -798,7 +798,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_008_OK"

        Test objective
              "Check that the IUT creates the resourceQuotaInfo for an existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT creates the resourceQuotaInfo for an existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.5.3.4, clause 6.2.3"
@@ -853,7 +853,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_008_NF"

        Test objective
              "Check that the IUT returns an error on creating the resourceQuotaInfo for a not existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on creating the resourceQuotaInfo for a not existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.5.3.4, clause 6.2.3"
@@ -900,7 +900,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_009_OK"

        Test objective
              "Check that the IUT returns the list of per site resource quota for a specific tenant when requested by a MEC Orchestrator - No filter"
              "Check that the IUT returns the list of per site resource quota for a specific tenant when requested to a MEC Orchestrator - No filter"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.6.3.1, clause 6.2.4"
@@ -967,7 +967,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_009_OK_01"

        Test objective
              "Check that the IUT returns the list of per site resource quota for a specific tenant when requested by a MEC Orchestrator - siteId filter"
              "Check that the IUT returns the list of per site resource quota for a specific tenant when requested to a MEC Orchestrator - siteId filter"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.6.3.1, clause 6.2.4"
@@ -1027,7 +1027,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_009_NF"

        Test objective
              "Check that the IUT returns an error on requesting site resource quota info on a not existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on requesting site resource quota info on a not existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.6.3.1, clause 6.2.4"
@@ -1066,7 +1066,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_010_OK"

        Test objective
              "Check that the IUT creates a site resource quota info for a existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT creates a site resource quota info for a existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.6.3.4, clause 6.2.4"
@@ -1175,7 +1175,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_011_OK"

        Test objective
              "Check that the IUT returns the site resource quota for a specific tenant and site identifier when requested by a MEC Orchestrator"
              "Check that the IUT returns the site resource quota for a specific tenant and site identifier when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.7.3.1, clause 6.2.4"
@@ -1223,7 +1223,8 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_011_NF"

        Test objective
              "Check that the IUT returns an error on requesting the site resource quota for a specific tenant and a not existing site identifier when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on requesting the site resource quota for a specific tenant and a not existing site identifier 
					when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.7.3.1, clause 6.2.4"
@@ -1265,7 +1266,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_012_OK"

        Test objective
              "Check that the IUT updates a site resource quota info for a existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT updates a site resource quota info for a existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.7.3.2, clause 6.2.4"
@@ -1323,7 +1324,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_012_BR"

        Test objective
              "Check that the IUT returns an error updating a site resource quota info for a existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns an error updating a site resource quota info for a existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.7.3.2, clause 6.2.4"
@@ -1372,7 +1373,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_012_NF"

        Test objective
              "Check that the IUT returns an error updating a site resource quota info for a not existing tenant when requested by a MEC Orchestrator"
              "Check that the IUT returns an error updating a site resource quota info for a not existing tenant when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.7.3.2, clause 6.2.4"
@@ -1422,7 +1423,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_013_OK"

        Test objective
              "Check that the IUT returns the list of subscriptions when requested by a MEC Orchestrator - no filter"
              "Check that the IUT returns the list of subscriptions when requested to a MEC Orchestrator - no filter"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.1, clause 6.3.4"
@@ -1484,7 +1485,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_013_OK_02"

        Test objective
              "Check that the IUT returns the list of subscriptions when requested by a MEC Orchestrator - subscription_type filter"
              "Check that the IUT returns the list of subscriptions when requested to a MEC Orchestrator - subscription_type filter"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.1, clause 6.3.4"
@@ -1543,7 +1544,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_014_OK"

        Test objective
              "Check that the IUT creates a new subscription when requested by a MEC Orchestrator"
              "Check that the IUT creates a new subscription when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"
@@ -1614,7 +1615,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_014_OK_02"

        Test objective
              "Check that the IUT creates a new subscription when requested by a MEC Orchestrator"
              "Check that the IUT creates a new subscription when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"
@@ -1689,7 +1690,7 @@ Test Purpose {
	TP Id "TP_MEC_MEC048_MEO_CSE_014_BR"

        Test objective
              "Check that the IUT returns an error on creating a new subscription when requested by a MEC Orchestrator"
              "Check that the IUT returns an error on creating a new subscription when requested to a MEC Orchestrator"

        Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"
@@ -2115,5 +2116,166 @@ Test Purpose {
    } // End of TP_MEC_MEC048_MEO_CSE_017_NF     
      
    
  Test Purpose {
      TP Id "TP_MEC_MEC048_MEO_CSE_018_OK" 
      
      Test objective 
         "Check that the CSE sends a site resource usage notification
         if the CSE has an associated subscription and the event is generated"
      
     Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.4, clause 6.4.3"

        Config Id Config_MEC_6

        PICS Selection PIC_SERVICES

	  Initial conditions  with {
         the IUT entity having a SiteResourceUsageSubscription containing 
            subscriptionType indicating value SiteResourceUsageSubscription, 
            callbackReference indicating value "some/uri",
            _links indicating value LINK_TO_THE_RESOURCE,
            customerId indicating value CUSTOMER_ID,
            tenantId indicating value TENANT_ID,
	        siteList indicating value SITE_LIST     
	        notificationTrigger containing
		    	triggerType indicating value 10, //10 = Notification triggered based on the number of used CPUs.
		        threshold indicating value 4,
		        greaterOrLess indicating value 0 // 0: greater than or equal to the threshold. 1: less than or equal to the threshold.
                ;	
               ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity generates a notificationTrigger containing 
               threshold set to 5;						
         }
         then {
            the IUT entity sends a vPOST containing
               uri indicating value CALLBACK_URI,
               body containing
                  notificationType indicating value "SiteResourceUsageNotification",
                  customerId set to CUSTOMER_ID,
                  tenantId set to TENANT_ID,
                  siteList indicating value SITE_LIST,    
                  resourceUseInfo containing
                  	cpuUsed set to 5
                  ;
               ;
            ; to the MEC_SUB entity
         }
      }
   }    // TP_MEC_MEC048_MEO_CSE_018_OK
   



  Test Purpose {
      TP Id "TP_MEC_MEC048_MEO_CSE_019_OK" 
      
      Test objective 
         "Check that the CSE sends a resource usage notification
         if the CSE has an associated subscription and the event is generated"
      
     Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.4, clause 6.4.2"

        Config Id Config_MEC_6

        PICS Selection PIC_SERVICES

	  Initial conditions  with {
         the IUT entity having a ResourceUsageSubscription containing 
            subscriptionType indicating value ResourceUsageSubscription, 
            callbackReference indicating value "some/uri",
            _links indicating value LINK_TO_THE_RESOURCE,
            customerId indicating value CUSTOMER_ID,
            tenantId indicating value TENANT_ID, 
	        notificationTrigger containing
		    	triggerType indicating value 10, //10 = Notification triggered based on the number of used CPUs.
		        threshold indicating value 4,
		        greaterOrLess indicating value 0 // 0: greater than or equal to the threshold. 1: less than or equal to the threshold.
                ;	
               ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity generates a notificationTrigger containing 
               threshold set to 5;						
         }
         then {
            the IUT entity sends a vPOST containing
               uri indicating value CALLBACK_URI,
               body containing
                  notificationType indicating value "ResourceUsageSubscription",
                  customerId set to CUSTOMER_ID,
                  tenantId set to TENANT_ID,
                  resourceUseInfo containing
                  	cpuUsed set to 5
                  ;
               ;
            ; to the MEC_SUB entity
         }
      }
   }    // TP_MEC_MEC048_MEO_CSE_019_OK
   
   
   
     Test Purpose {
      TP Id "TP_MEC_MEC048_MEO_CSE_020_OK" 
      
      Test objective 
         "Check that the CSE sends a notification on subscription expiration
         if the CSE has an associated subscription and the event is generated"
      
     Reference 
            "ETSI GS MEC 048 V3.1.1, clause 7.8.3.4, clause 6.4.4"

        Config Id Config_MEC_6

        PICS Selection PIC_SERVICES

	  Initial conditions  with {
         the IUT entity having a ResourceUsageSubscription containing 
            subscriptionId set to SUBSCRIPTION_ID,
            subscriptionType indicating value ResourceUsageSubscription, 
            callbackReference indicating value "some/uri",
            _links indicating value LINK_TO_THE_RESOURCE,
            customerId indicating value CUSTOMER_ID,
            tenantId indicating value TENANT_ID, 
	        expiryDeadline set to EXPIRY_DEADLINE 
	        notificationTrigger containing
		    	triggerType indicating value 10, //10 = Notification triggered based on the number of used CPUs.
		        threshold indicating value 4,
		        greaterOrLess indicating value 0 // 0: greater than or equal to the threshold. 1: less than or equal to the threshold.
                ;	
               ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity generates a expiry_notification_event containing 
               subscriptionId set to SUBSCRIPTION_ID;
         }
         then {
            the IUT entity sends a vPOST containing
               uri indicating value CALLBACK_URI,
               body containing
                  notificationType indicating value "ExpiryNotification",
                  _link containing
                    self set to SUBSCRIPTION_HREF_VALUE
                  ;,
                  expiryDeadline set to EXPIRY_DEADLINE
               ;
            ; to the MEC_SUB entity
         }
      }
   }    // TP_MEC_MEC048_MEO_CSE_020_OK
   
      
  }