Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added table of content

Table of Contents

Test Case Id

Description

Pre-conditions

Test Steps

Expected Results

1

Perform   healthcheck for the Policy components using Healthcheck API

  •   Drools PDP
  •   XACML PDP
  •   PAP
  •   BRMSGateway
  • Policy docker image ready and policy   components (Drools, XACML, PAP, BRMS Gateway) should be up and running
  • Server and authentication details should   be configured at  $POLICY_HOME/config/feature-healthcheck.properties

API – healthcheck

Method - GET

Endpoint: http://<host>:8081/healthcheck

All the policy components should return health status as “true”

2

Import/Load Use case template for the following use cases (VoLTE,   vCPE, vFW, vDNS)

 Policy components should   be up and running

API – policyEngineImport

Method – POST

Endpoint:

https://<host>:8081/pdp/policyEngineImport

Policy service models should be imported for the specified use   cases. We should be able to create policy from here.

3

Create config Policy for the following use cases

  •   VoLTE
  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and   running

API – CreateConfig

Method – PUT

Endpoint:

https://<host>:8081/Pdp/createPolicy

Config Policy should be created in Policy Engine (PAP)

4

Push Config policy to the PDP Engines for the following use   cases

  •   VoLTE
  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/Pdp/pushPolicy

Config Policy should be pushed to the PDP group

5

Create Operational policy for the following use cases  

  •   VoLTE
  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

API - createPolicy  

Method – PUT

Endpoint:

https://<host>:8081/Pdp/createPolicy

Operational Policy should be created in Policy Engine (PAP)

6

Push operational Policy to the PDP Engines for each use case

  •   VoLTE
  •   vFW
  •   vDNS
  •   vCPE

 Policy components up and running

API - pushPolicy  

Method - PUT

Endpoint:

https:// <host>:8081/Pdp/pushPolicy

Operational Policy should be pushed to the PDP group

7

Retrieve the configs for the following use cases

  •   VoLTE
  •   vFW
  •   vDNS
  •   vCPE

Policy components up and running

API – getConfig

Method – POST

Endpoint:

https://<host>:8081/Pdp/getConfig

Both Config and Operational Policies configured for each use   case should be retrieved successfully

8

Simulate DCAE Control loop event for each use case with higher   or lower threshold values

  •   VoLTE
  •   vFW
  •   vDNS
  •   vCPE
  • Policy components up and running
  • Simulator should be available

Invoke the Simulator API to trigger a DCAE control loop event

DCAE event should be triggered to Policy for each use case   depending on the threshold configured

9Simulate A&AI Response for Use Case vFW


10

Simulate APPC Response for Use Case vFW

  • Policy components up and running
  • Simulator should be available

Invoke APPC simulator API with Policy data or Trigger a DCAE   control loop event for vFW/vCPE

Valid Response from AppC Simulator API

11Simulate A&AI Response for Use Case vCPE


12Simulate APPC Response for Use Case vCPE


13Simulate A&AI Response for Use Case VOLTE


14

Simulate VF-C Response for Use Case VOLTE

  • Policy components up and running
  • Simulator should be available

Invoke VF-C simulator API with Policy data or Trigger a DCAE   control loop event for VOLTE

Valid Response from VF-C Simulator API

15

Simulate SO Response for VDNS

  • Policy components up and running
  • Simulator should be available

Invoke SO simulator API with Policy data or Trigger a DCAE   control loop event for vDNS

Valid Response from SO Simulator API

16

Simulate A&AI Response for VDNS

  • Policy components up and running
  • Simulator should be available

Invoke A&AI simulator API with Policy data or Trigger a DCAE   control loop event for vDNS

Valid Response from A&AI Simulator API

...

Code Block
titleAAI named-query response
linenumberstrue
collapsetrue
{
    "inventory-response-item": [
        {
            "extra-propertiesvserver": {},
                "inventoryvserver-response-itemsid": {"6ed3642c-f7a1-4a7c-9290-3d51fe1531eb",
                "inventoryvserver-response-itemname": ["zdfw1lb01lb02",
                    {"vserver-name2": "zdfw1lb01lb02",
                "prov-status": "ACTIVE",
       "extra-properties": {
            "vserver-selflink": "http://10.12.25.2:8774/v2.1/41d6d38489bd40b09ea8a6b6b852dcbd/servers/6ed3642c-f7a1-4a7c-9290-3d51fe1531eb",
                "extrain-propertymaint": [false,
                "is-closed-loop-disabled": false,
               {
     "resource-version": "1510606403522"
            },
                    "property-name"extra-properties": "model.model-name"{},
                  "inventory-response-items": {
                  "propertyinventory-response-valueitem": "c15ce9e1-e914-4c8f-b8bb"[
                    {
            },
            "model-name": "vLoadBalancer",
                   {
       "generic-vnf": {
                             "propertyvnf-nameid": "model.model-typedb373a8d-f7be-4d02-8ac8-6ca4c305d144",
                                    "property-value"vnf-name": "resourceVfmodule_vLB1113",
                            "vnf-type":    }"vLoadBalancer-1106/vLoadBalancer 0",
                                {
        "service-id": "66f157fc-4148-4880-95f5-e120677e98d1",
                            "propertyprov-namestatus": "model.model-versionPREPROV",
                                    "propertyorchestration-valuestatus": "1Created",
                                }"in-maint": false,
                                {
   "is-closed-loop-disabled": false,
                                 "propertyresource-nameversion": "model.model-id1510604011851",
                                    "property-value"model-invariant-id": "033a32edcee050ed-aa6592a5-4764494f-a736ab04-36f2942f1aa0234307a846dc",
                            "model-version-id": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2",
    },
                                {"model-customization-id": "1983c783-444f-4e79-af3a-85e5d49628f3",
                                    "property-name"nf-type": "model.model-name-version-id",
                                    "propertynf-valuefunction": "d4d072dc-4e21-4a03-9524-628985819a8e"",
                            "nf-role": "",
   }
                            ]"nf-naming-code": ""
                        },
                        "genericextra-vnfproperties": {
                            "inextra-maintproperty": false,[
                            "is-closed-loop-disabled": false,
    {
                        "orchestration-status": "Created",
           "property-name": "model-ver.model-version-id",
                "model-invariant-id                    "property-value": "033a32edfd65becc-aa656b2c-47644fe8-a736ace9-36f2942f1aa0cc29db9a3da2",
                            "model-version-id": "1.0"    },
                            "resource-version": "1485542422",
    {
                                    "serviceproperty-idname": "b3f70641model-bdb9-4030-825e-6abb73a1f929ver.model-name",
                                    "vnfproperty-idvalue": "594e2fe0-48b8-41ff-82e2-3d4bab69b192",
vLoadBalancer"
                              "vnf-name": "Vnf_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8",
  },
                              "vnf-type": "8330e932-2a23-4943-8606/c15ce9e1-e914-4c8f-b8bb 1" {
                        }            "property-name": "model.model-type",
                         "inventory-response-items           "property-value": {"resource"
                            "inventory-response-item": [    },
                                {
                                    "extraproperty-propertiesname": {
    "model.model-invariant-id",
                                    "extraproperty-propertyvalue": [
"cee050ed-92a5-494f-ab04-234307a846dc"
                                },
             {
                   {
                              "      "property-name": "model-ver.model-nameversion",
                                                "property-value": "8330e932-2a23-4943-86061.0"
                                }
             },
               ]
                        },
     {
                   "inventory-response-items": {
                            "propertyinventory-response-nameitem": "model.model-type",[
                                {
                "property-value": "service"
                    "model-name": "vLoadBalancer-1106",
                          },
          "service-instance": {
                                 {
       "service-instance-id": "3b12f31f-8f2d-4f5c-b875-61ff1194b941",
                                        "propertyservice-instance-name": "model.modelvLoadBalancer-version1113",
                                                "property-value"model-invariant-id": "1"1321d60d-f7ff-4300-96c2-6bf0b3268b7a",
                                            }"model-version-id": "732d4692-4b97-46f9-a996-0b3339e88c50",
                                            {"resource-version": "1510603936425"
                                                "property-name": "model.model-id",
     },
                                           "property-value"extra-properties": "4fcbc1c0-7793-46d8-8aa1-fa1c2ed9ec7b"{
                                            },"extra-property": [
                                            {
                                                "property-name": "model-ver.model-name-version-id",
                                                "property-value": "5c996219732d4692-b2e24b97-4c7646f9-9b43a996-7e8672a33c1d0b3339e88c50"
                                            },
                                        ]
    {
                                },
                "property-name": "model-ver.model-name",
                   "service-instance": {
                            "property-value": "vLoadBalancer-1106"
           "model-invariant-id": "4fcbc1c0-7793-46d8-8aa1-fa1c2ed9ec7b",
                                 },
          "model-version-id": "1.0",
                                 {
       "resource-version": "1485542400",
                                        "serviceproperty-instance-idname": "cf8426a6-0b53-4e3d-bfa6-4b2f4d5913a5model.model-type",
                                                "serviceproperty-instance-namevalue": "Service_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8service"
                                    }
        },
                        },
                    {
            {
                                    "extraproperty-propertiesname": {
"model.model-invariant-id",
                                                "extraproperty-propertyvalue": ["1321d60d-f7ff-4300-96c2-6bf0b3268b7a"
                                            {},
                                                "property-name": "model.model-name",{
                                                "property-valuename": "C15ce9e1E9144c8fB8bb..base_vlb..module-0"model-ver.model-version",
                                            },
    "property-value": "1.0"
                                       {
     }
                                        ]
   "property-name": "model.model-type",
                                }
                "property-value": "resource"
               },
                             },
   {
                                         {
     "model-name": "Vloadbalancer..base_vlb..module-0",
                                           "property-name"vf-module": "model.model-version",
       {
                                         "propertyvf-module-valueid": "1"e6b3e3eb-34e1-4c00-b8c1-2a4fbe479b12",
                                            }"vf-module-name": "Vfmodule_vLB1113-1",
                                            {
     "heat-stack-id": "Vfmodule_vLB1113-1/3dd6d900-772f-4fcc-a0cb-e250ab2bb4db",
                                           "propertyorchestration-namestatus": "model.model-idactive",
                                                "property-value": "79ee24cd-fc9a-4f14-afae-5e1dd2ab2941""is-base-vf-module": true,
                                            }"resource-version": "1510604612557",
                                            {
 "model-invariant-id": "6d760188-9a24-451a-b05b-e08b86cb94f2",
                                               "property-name"model-version-id": "model.model-name-version-id93facad9-55f2-4fe0-9574-814c2bc2d071",
                                                "property-value"model-customization-id": "5484cabb93fd5bd4-1a0d8051-4f294074-a6168530-094a3f643d73c0c504604df5",
                                        "module-index": 0
   }
                                 },
       ]
                             "extra-properties": {
      },
                                    "modelextra-nameproperty": "C15ce9e1E9144c8fB8bb..base_vlb..module-0",
[
                                     "vf-module":       {
                                        "heat-stack-id        "property-name": "Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/5845f37b-6cda-4e91-8ca3-f5572d226488model-ver.model-version-id",
                                          "is-base-vf-module": true,
      "property-value": "93facad9-55f2-4fe0-9574-814c2bc2d071"
                                           "orchestration-status": "active" },
                                        "model-invariant-id": "79ee24cd-fc9a-4f14-afae-5e1dd2ab2941",
    {
                                         "model-version-id       "property-name": "1model-ver.model-name",
                                        "resource-version        "property-value": "1485542667",Vloadbalancer..base_vlb..module-0"
                                        "vf-module-id": "b0eff878-e2e1-4947-9597-39afdd0f51dd",
   },
                                     "vf-module-name": "Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"
      {
                              }
                  "property-name": "model.model-type",
             },
                                {
    "property-value": "resource"
                               "extra-properties": {
            },
                            "extra-property": [
               {
                             {
                                                ""property-name": "model.model-nameinvariant-id",
                                                "property-value": "C15ce9e1E9144c8fB8bb..dnsscaling..module-16d760188-9a24-451a-b05b-e08b86cb94f2"
                                            },
                                            {
                                                "property-name": "model-ver.model-typeversion",
                                                "property-value": "resource1"
                                            },
                                        ]
    {
                                }
                "property-name": "model.model-version",
               },
                                 "property-value": "1"{
                                            }"model-name": "Vloadbalancer..dnsscaling..module-1",
                                            {
      "vf-module": {
                                          "propertyvf-module-nameid": "model.model-iddummy_db373a8d-f7be-4d02-8ac8-6ca4c305d144",
                                                "property-value"vf-module-name": "f32568ecdummy_db373a8d-2f1cf7be-458a4d02-864b8ac8-0593d53d141a6ca4c305d144",
                                            }"is-base-vf-module": false,
                                            {
  "resource-version": "1510610079687",
                                              "property-name"model-invariant-id": "model.model-name-version-id356a1cff-71f2-4086-9980-a2927ce11c1c",
                                                "property-value"model-version-id": "696150256b93d804-879dcfc8-4f0d4be3-afe392cc-b7d1a7eeed1f9336d135859a"
                                    },
        }
                            "extra-properties": {
            ]
                            "extra-property": [
       },
                                    "vf-module": {
                                        "is-base-vf-module": false        "property-name": "model-ver.model-version-id",
                                        "model-invariant-id        "property-value": "f32568ec6b93d804-2f1ccfc8-458a4be3-864b92cc-0593d53d141a9336d135859a",
                                           "model-version-id": "1.0" },
                                        "resource-version": "1485561752",
    {
                                                "vfproperty-module-idname": "dummymodel-ver.model-name",
                                                "vfproperty-module-namevalue": "dummyVloadbalancer..dnsscaling..module-1"
                                    }
        },
                         },
                    {
            {
                                    "extraproperty-propertiesname": {
"model.model-type",
                                                "extraproperty-propertyvalue": ["resource"
                                            },
                                            {
                                                "property-name": "model.model-nameinvariant-id",
                                                "property-value": "C15ce9e1E9144c8fB8bb..dnsscaling..module-1356a1cff-71f2-4086-9980-a2927ce11c1c"
                                            },
                                            {
                                                "property-name": "model-ver.model-typeversion",
                                                "property-value": "resource1"
                                            },
                                        ]
    {
                                }
                "property-name": "model.model-version",
               }
                            ]
     "property-value": "1"
                  }
                    },
         },
           {
                        "tenant": {
        {
                    "tenant-id": "41d6d38489bd40b09ea8a6b6b852dcbd",
                            "propertytenant-name": "model.model-idIntegration-SB-00",
                            "resource-version": "1509587770200"
                       "property-value": "f32568ec-2f1c-458a-864b-0593d53d141a" },
                        "extra-properties": {},
                      },
  "inventory-response-items": {
                            "inventory-response-item": [
            {
                    {
                            "property-name": "model.model-name-version-id",
       "cloud-region": {
                                        "propertycloud-valueowner": "69615025-879d-4f0d-afe3-b7d1a7eeed1f"CloudOwner",
                                        "cloud-region-id": "RegionOne",
   }
                                     "cloud-type": "SharedNode",
  ]
                                       }"owner-defined-type": "OwnerType",
                                    "vf-module    "cloud-region-version": {"v1",
                                        "heatcloud-stack-idzone": "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/f447ce51-14dd-4dcd-9957-68a047c79673CloudZone",
                                        "is-base-vf-modulesriov-automation": false,
                                        "orchestrationresource-statusversion": "active1509587770092",
                                        "model-invariant-id": "f32568ec-2f1c-458a-864b-0593d53d141a"},
                                        "modelextra-version-idproperties": "1.0",{}
                                }
        "resource-version": "1485562712",
                   ]
                     "vf-module-id": "8cd79e44-1fae-48c1-a160-609f90b46749",
  }
                    }
                  "vf-module-name": "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"]
            }
        }
    ]
}
Code Block
titleSO request
linenumberstrue
collapsetrue
NOTE: Robot must add preload for dummy module for this   }to work.
{

  "requestDetails": {

    "modelInfo": {

                        }
                            ]
                        }
                    },
                    {
                        "extra-properties": {},
                        "inventory-response-items": {
                            "inventory-response-item": [
                                {
                                    "cloud-region": {
                                        "cloud-owner": "Rackspace",
                                        "cloud-region-id": "DFW",
                                        "cloud-region-version": "v1",
                                        "cloud-type": "SharedNode",
                                        "cloud-zone": "CloudZone",
                                        "owner-defined-type": "OwnerType",
                                        "resource-version": "1485465545"
                                    },
                                    "extra-properties": {}
                                }
                            ]
                        },
                        "tenant": {
                            "resource-version": "1485465545",
                            "tenant-id": "1015548",
                            "tenant-name": "1015548"
                        }
                    }
                ]
            },
            "vserver": {
                "in-maint": false,
                "is-closed-loop-disabled": false,
                "prov-status": "ACTIVE",
                "resource-version": "1485546436",
                "vserver-id": "70f081eb-2a87-4c81-9296-4b93d7d145c6",
                "vserver-name": "vlb-lb-32c8",
                "vserver-name2": "vlb-lb-32c8",
                "vserver-selflink": "https://dfw.servers.api.rackspacecloud.com/v2/1015548/servers/70f081eb-2a87-4c81-9296-4b93d7d145c6"
            }
        }
    ]
}
Code Block
titleSO request
linenumberstrue
collapsetrue
{
  "requestDetails": {"modelType": "vfModule",

      "modelInfomodelInvariantId": {
          “modelType”: “vfModule”,
          “modelInvariantId”: “ff5256d2-5a33-55df-13ab-12abad84e7ff”,
"356a1cff-71f2-4086-9980-a2927ce11c1c",

          “modelNameVersionId”"modelVersionId": “fe6478e5"6b93d804-ea33cfc8-33464be3-ac1292cc-ab121484a3fe”9336d135859a",

          “modelName”"modelName": “vSAMP12"Vloadbalancer..basednsscaling..module-0”1",
    
      "modelVersion": "1"

      },

      “cloudConfiguration”"cloudConfiguration": {

          “lcpCloudRegionId”"lcpCloudRegionId": “mdt1”"RegionOne",
   
       “tenantId”"tenantId": “88a6ca3ee0394ade9403f075db23167e”"41d6d38489bd40b09ea8a6b6b852dcbd"

      },

      "requestInfo": {

          “instanceName”"instanceName": “MSOTEST103a-vSAMP12_base_module-0”"vDNS_vLB1113-1",

      "source": "POLICY",

    “source”  "suppressRollback": “VID”false,

          “suppressRollback”"requestorId": true
  "policy"

    },

      "relatedInstanceList": [

         {

            “relatedInstance”"relatedInstance": {

               “instanceId”: “{serviceInstanceId}”,
"instanceId": "3b12f31f-8f2d-4f5c-b875-61ff1194b941",

               “modelInfo”"modelInfo": {  

                  “modelType”"modelType": “service”,
   "service",

               “modelInvariantId”"modelInvariantId": “ff3514e3"1321d60d-5a33f7ff-55df4300-13ab96c2-12abad84e7ff”6bf0b3268b7a",

                  “modelNameVersionId”"modelVersionId": “fe6985cd"732d4692-ea334b97-334646f9-ac12a996-ab121484a3fe”0b3339e88c50",

                  “modelName”: “{parent service model name}”,"modelName": "vLoadBalancer-1106",

                  "modelVersion": "1.0"
    
           }

            }

         },

         {

            “relatedInstance”"relatedInstance": {

               “instanceId”: “{vnfInstanceId}”,
    "instanceId": "db373a8d-f7be-4d02-8ac8-6ca4c305d144",

           "modelInfo": {
      
            “modelType”"modelType": “vnf”"vnf",

                  “modelInvariantId”"modelInvariantId": “ff5256d1"cee050ed-5a3392a5-55df494f-13abab04-12abad84e7ff”234307a846dc",

                  “modelNameVersionId”"modelVersionId": “fe6478e4"fd65becc-ea336b2c-33464fe8-ac12ace9-ab121484a3fe”cc29db9a3da2",

                  “modelName”"modelName": “vSAMP12”"vLoadBalancer",
  
                "modelVersion": "1.0",

                  “modelCustomizationName”"modelCustomizationName": “vSAMP12 1”"vLoadBalancer 0"

               }

            }

         }

      ],

      “requestParameters”"requestParameters": {
          “userParams”: []
      }
  }}

  }

}
Code Block
titleSO Response
linenumberstrue
collapsetrue
SUCCESS:
{
	"requestReferences": {
    	"instanceId": "ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff",
    	"requestId": "e4f95e0c-a013-4530-8e59-c5c5f9e539b6"
  	},
  	"httpResponseCode": 200
}

...

Code Block
titleAPPC request
linenumberstrue
collapsetrue
{
  "body": {
    "input": {
      "common-header": {
        "timestamp": "2017-08-25T21:06:23.037Z",
        "api-ver": "2.00",
        "originator-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0",
        "request-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0",
        "sub-request-id": "1",
        "flags": {}
      },
      "action": "restartRestart",
      "action-identifiers": {
        "vnf-id": "vCPE_Infrastructure_vGMUX_demo_app"
      }
    }
  },
  "version": "2.000",
  "rpc-name": "restart",
  "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-1",
  "type": "request"
}

...