Commit 19de5c3e authored by piscione's avatar piscione
Browse files

Minor fixes on MEC048v3.2.1 Test Purposes.

parent 9a42fdb2
Loading
Loading
Loading
Loading
+59 −48
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ Package MEC_MEC048_MEO_CSE {
		 	when requested to a CSE - No query parameters"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.3.3.1, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.3.3.1, clause 6.2.2"

        Config Id Config_MEC_6

@@ -72,7 +72,7 @@ Package MEC_MEC048_MEO_CSE {
		 	when requested to a CSE - customerId attribute as query parameter"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.3.3.1, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.3.3.1, clause 6.2.2"

        Config Id Config_MEC_6

@@ -127,7 +127,7 @@ Package MEC_MEC048_MEO_CSE {
		 	when requested to a CSE - customerName as query parameter"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.3.3.1, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.3.3.1, clause 6.2.2"

        Config Id Config_MEC_6

@@ -186,7 +186,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT creates a new tenantInfo when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.3.3.4, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.3.3.4, clause 6.2.2"

        Config Id Config_MEC_6

@@ -242,7 +242,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT responds with an error on creating a tenantInfo with resourceUseInfo and siteList"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.3.3.4, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.3.3.4, clause 6.2.2"

        Config Id Config_MEC_6

@@ -290,7 +290,7 @@ Package MEC_MEC048_MEO_CSE {
            "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.1, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.3.3.1, clause 6.2.2"

        Config Id Config_MEC_6

@@ -339,7 +339,7 @@ Package MEC_MEC048_MEO_CSE {
            "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.4.3.1, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.4.3.1, clause 6.2.2"

        Config Id Config_MEC_6

@@ -379,7 +379,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT updates an existing tenantInfo when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.4.3.5, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.4.3.5, clause 6.2.2"

        Config Id Config_MEC_6

@@ -434,7 +434,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT returns an error on updating a not existing tenantInfo requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.4.3.5, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.4.3.5, clause 6.2.2"

        Config Id Config_MEC_6

@@ -483,7 +483,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT returns an error on updating with invalid values tenantInfo requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.4.3.2, clause 6.2.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.4.3.2, clause 6.2.2"

        Config Id Config_MEC_6

@@ -501,13 +501,14 @@ Package MEC_MEC048_MEO_CSE {
            ensure that {
                when {
                    the IUT entity receives a vPUT containing
                        uri indicating value "/cse/v1/tenant/NOT_EXISTING_TENANT_ID",
                        uri indicating value "/cse/v1/tenant/TENANT_ID",
                        body containing
                            tenantInfo containing
                                customerId indicating value NEW_CUSTOMER_ID,
                                customerName indicating value NEW_CUSTOMER_NAME_1,
                                tenantName indicating value NEW_TENANT_NAME,
                                siteList indicating value SOME_SITE_INFO //Either resourceUseInfo or siteList or none of them shall be present.
                                siteList indicating value SOME_SITE_INFO, //Either resourceUseInfo or siteList or none of them shall be present.
                                resourceUseInfo indicating value SOME_RESOURCE_USE_INFO
                            ;
                    	;
                    ;
@@ -534,7 +535,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT removes a tenantInfo when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.4.3.5"
            "ETSI GS MEC 048 v3.2.1, clause 7.4.3.5"

        Config Id Config_MEC_6

@@ -573,7 +574,7 @@ Package MEC_MEC048_MEO_CSE {
              "Check that the IUT returns an error on deleting a not existing tenantInfo when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.4.3.5"
            "ETSI GS MEC 048 v3.2.1, clause 7.4.3.5"

        Config Id Config_MEC_6

@@ -612,7 +613,7 @@ Test Purpose {
              "Check that the IUT returns a resourceQuotaInfo for a specific tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.5.3.1, clause 6.2.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.5.3.1, clause 6.2.3"

        Config Id Config_MEC_6

@@ -621,7 +622,17 @@ Test Purpose {
        Initial conditions  with {
           the IUT entity being_in idle_state and
           the MEO entity having a resourceQuotaInfoList containing 
              resourceQuotaInfo indicating value TENANT_ID;
              //It is assumed that the MEO "knows" the relationship between the tenantInfo and the resourceQuotaInfo
              tenantInfoList containing
              	  tenantInfo indicating value TENANT_ID,
              
              resourceQuotaInfo containing
                                cpuQuota indicating value NUMBER_OF_CPUS, 
                                memoryQuota indicating value MEMORY_IN_MB,
                                diskQuota indicating value AMOUNT_OF_DISK_IN_GB
                            ;
                 ;
            ;
        }

        // MEC 048 Clause 6.2.3 Type: ResourceQuotaInfo
@@ -659,7 +670,7 @@ Test Purpose {
              "Check that the IUT returns an error on retrieving resourceQuotaInfo for a not existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.5.3.1, clause 6.2.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.5.3.1, clause 6.2.3"

        Config Id Config_MEC_6

@@ -699,7 +710,7 @@ Test Purpose {
              "Check that the IUT updates the resourceQuotaInfo for an existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.5.3.2, clause 6.2.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.5.3.2, clause 6.2.3"

        Config Id Config_MEC_6

@@ -753,7 +764,7 @@ Test Purpose {
              "Check that the IUT returns an error on updating the resourceQuotaInfo for a not existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.5.3.2, clause 6.2.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.5.3.2, clause 6.2.3"

        Config Id Config_MEC_6

@@ -800,7 +811,7 @@ Test Purpose {
              "Check that the IUT creates the resourceQuotaInfo for an existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.5.3.4, clause 6.2.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.5.3.4, clause 6.2.3"

        Config Id Config_MEC_6

@@ -855,7 +866,7 @@ Test Purpose {
              "Check that the IUT returns an error on creating the resourceQuotaInfo for a not existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.5.3.4, clause 6.2.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.5.3.4, clause 6.2.3"

        Config Id Config_MEC_6

@@ -902,7 +913,7 @@ Test Purpose {
              "Check that the IUT returns the list of per site resource quota for a specific tenant when requested to a CSE - No filter"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.6.3.1, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.6.3.1, clause 6.2.4"

        Config Id Config_MEC_6

@@ -969,7 +980,7 @@ Test Purpose {
              "Check that the IUT returns the list of per site resource quota for a specific tenant when requested to a CSE - siteId filter"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.6.3.1, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.6.3.1, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1029,7 +1040,7 @@ Test Purpose {
              "Check that the IUT returns an error on requesting site resource quota info on a not existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.6.3.1, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.6.3.1, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1068,7 +1079,7 @@ Test Purpose {
              "Check that the IUT creates a site resource quota info for a existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.6.3.4, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.6.3.4, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1127,7 +1138,7 @@ Test Purpose {
              "Check that the IUT returns an error on creating a site resource quota with wrong parameters"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.6.3.4, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.6.3.4, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1177,7 +1188,7 @@ Test Purpose {
              "Check that the IUT returns the site resource quota for a specific tenant and site identifier when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.7.3.1, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.7.3.1, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1226,7 +1237,7 @@ Test Purpose {
					when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.7.3.1, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.7.3.1, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1268,7 +1279,7 @@ Test Purpose {
              "Check that the IUT updates a site resource quota info for a existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.7.3.2, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.7.3.2, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1326,7 +1337,7 @@ Test Purpose {
              "Check that the IUT returns an error updating a site resource quota info for a existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.7.3.2, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.7.3.2, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1375,7 +1386,7 @@ Test Purpose {
              "Check that the IUT returns an error updating a site resource quota info for a not existing tenant when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.7.3.2, clause 6.2.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.7.3.2, clause 6.2.4"

        Config Id Config_MEC_6

@@ -1425,7 +1436,7 @@ Test Purpose {
              "Check that the IUT returns the list of subscriptions when requested to a CSE - no filter"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.8.3.1, clause 6.3.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.1, clause 6.3.4"

        Config Id Config_MEC_6

@@ -1487,7 +1498,7 @@ Test Purpose {
              "Check that the IUT returns the list of subscriptions when requested to a CSE - subscription_type filter"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.8.3.1, clause 6.3.4"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.1, clause 6.3.4"

        Config Id Config_MEC_6

@@ -1546,7 +1557,7 @@ Test Purpose {
              "Check that the IUT creates a new subscription when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1617,7 +1628,7 @@ Test Purpose {
              "Check that the IUT creates a new subscription when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1692,7 +1703,7 @@ Test Purpose {
              "Check that the IUT returns an error on creating a new subscription when requested to a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.4, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1752,7 +1763,7 @@ Test Purpose {
              "Check that the IUT returns a subscription when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.1, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.1, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1810,7 +1821,7 @@ Test Purpose {
              "Check that the IUT returns an error on requesting a not existing subscription when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.1, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.1, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1851,7 +1862,7 @@ Test Purpose {
              "Check that the IUT updates an existing subscription when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.2, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.2, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1926,7 +1937,7 @@ Test Purpose {
              "Check that the IUT returns an error updating an not existing subscription when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.2, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.2, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -1983,7 +1994,7 @@ Test Purpose {
              "Check that the IUT returns an error updating an existing subscription with wrong parameters when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.2, clause 6.3.2, clause 6.3.3"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.2, clause 6.3.2, clause 6.3.3"

        Config Id Config_MEC_6

@@ -2043,7 +2054,7 @@ Test Purpose {
              "Check that the IUT deletes an existing subscription when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.2"

        Config Id Config_MEC_6

@@ -2083,7 +2094,7 @@ Test Purpose {
              "Check that the IUT returns an error on a deletion of a not existing subscription when requested by a CSE"

        Reference 
            "ETSI GS MEC 048 v3.1.1, clause 7.9.3.2"
            "ETSI GS MEC 048 v3.2.1, clause 7.9.3.2"

        Config Id Config_MEC_6

@@ -2123,7 +2134,7 @@ Test Purpose {
         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"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.4, clause 6.4.3"

        Config Id Config_MEC_6

@@ -2159,7 +2170,7 @@ Test Purpose {
                  customerId set to CUSTOMER_ID,
                  tenantId set to TENANT_ID,
                  siteList indicating value SITE_LIST,    
                  resourceUseInfo containing
                  siteResourceUseInfo containing
                  	cpuUsed set to 5
                  ;
               ;
@@ -2179,7 +2190,7 @@ Test Purpose {
         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"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.4, clause 6.4.2"

        Config Id Config_MEC_6

@@ -2232,7 +2243,7 @@ Test Purpose {
         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"
            "ETSI GS MEC 048 v3.2.1, clause 7.8.3.4, clause 6.4.4"

        Config Id Config_MEC_6