Cisco Cisco Intercloud Fabric for Provider Entwickleranleitung
Page 2
Cisco ICFPP Test Harness
The Cisco Intercloud Fabric Provider Platform (ICFPP) test harness is a test suite that enables you to perform API-
level testing of Cisco ICFPP. The test harness is a Python-based REST client that simulates the northbound
interface for Cisco ICFPP. You can use the APIs to validate Cisco ICFPP functionality without an actual
northbound interface.
level testing of Cisco ICFPP. The test harness is a Python-based REST client that simulates the northbound
interface for Cisco ICFPP. You can use the APIs to validate Cisco ICFPP functionality without an actual
northbound interface.
Requirements
The Cisco ICFPP test harness requires:
●
A Linux system
●
Python 2.7.x installed on the Cisco ICFPP target system
●
Access to the Cisco ICFPP URL via HTTPS
Note
The Cisco ICFPP test harness is not supported on Windows systems.
Installing the Test Harness
The test harness package contains the following files:
File
Description
userInput.txt
Configuration file
icpep_rclient.py
Base implementation of Cisco ICFPP REST APIs
icfpp_func_tests.py
Implementation file that executes major Cisco ICFPP operations
parallel_tests.py
Implementation file that executes parallel operations for stress tests
tenant_conninfo.py
Helper file
vmops-main.py
Main test file to execute
wrapper_rc.py
Wrapper state machine implementation
xmltodict.py
Helper file
To install the test harness, copy the test harness package to the Linux system and extract the contents using the
tar utility.
tar utility.
Configuring the Test Harness
Configure the test harness by modifying the userInput.txt file as described in the following table.
For more information about the tenant-provisioning fields, see the Cisco ICFPP architecture and northbound APIs
sections in the
sections in the
Field
Description
targetIp
The Cisco ICFPP IP address. In a large-scale setup with a load balancer, use the
load balancer IP address or URI. If there is no load balancer, use the primary Cisco
ICFPP IP address.
load balancer IP address or URI. If there is no load balancer, use the primary Cisco
ICFPP IP address.
cloudIp
Back-end cloud infrastructure IP address or URI.
cloudInstanceName
Unique instance name for the cloud being provisioned.
moduleName
The adapter being used.
cloud_param_name
Any parameter that must be passed for the specified cloud instance. For example,
for some back ends, the service provider must provide an FTPS name that must be
specified. If you are not sure, leave the parameter empty.
for some back ends, the service provider must provide an FTPS name that must be
specified. If you are not sure, leave the parameter empty.
tenantName
Name of the tenant to be provisioned.
userName
User associated with the tenant.
paword
Password for the user.