Get Functions - sonata-nfv/tng-tests GitHub Wiki
Functions Details
Get Packages
Description
This function will retrieve the packages from the selected environment
Input
The environment file
Output
- $Result will contain the packages array
- In the console you will see this operation logger info.
Usage
Example: getPackages "$env"
Get Services
Description
This function will retrieve the servicies from the selected environment
Input
The environment file
Output
- $Result will contain the servicies array
- In the console you will see this operation logger info.
Usage
Example: getServices "$env"
Get Service
Description
This function will retrieve a particular service filtered by the name, vendor and version.
Input
- The environment file
- The name, version and vendor
Output
- $Service will contain the full service json
- $Service_uuid will contain the service uuid
- $Service_status will contain the service status
- In the console you will see this operation logger info.
Usage
Example: getService "$env" "NS-squid-haproxy" "0.1" "eu.5gtango"
Get Package
Description
This function will retrieve a particular package filtered by the name, vendor and version.
Input
- The environment file
- The name, version and vendor
Output
- $Package will contain the full service json
- $Package_uuid will contain the service uuid
- $Package_status will contain the service status
- In the console you will see this operation logger info.
Usage
Example: getPackage "$env" "ns-package-example" "0.1" "eu.5gtango"
Get Policies
Description
This function will retrieve the Policies from the selected environment
Input
The environment file
Output
- $Result will contain the Policies array
- In the console you will see this operation logger info.
Usage
Example: getPolicies "$env"
Get SLAS
Description
This function will retrieve the SLAS from the selected environment
Input
The environment file
Output
- $Result will contain the SLAS array
- In the console you will see this operation logger info.
Usage
Example: getSlas "$env"
Get Functions
Description
This function will retrieve the Functions from the selected environment
Input
The environment file
Output
- $Result will contain the Functions array
- In the console you will see this operation logger info.
Usage
Example: getFunctions "$env"
Get Requests
Description
This function will retrieve the Requests from the selected environment
Input
The environment file
Output
- $Result will contain the Requests array
- In the console you will see this operation logger info.
Usage
Example: getRequests "$env"
Get Slices
Description
This function will retrieve the Slices from the selected environment
Input
The environment file
Output
- $Result will contain the Slices array
- In the console you will see this operation logger info.
Usage
Example: getSlices "$env"