This action enables you to stand up a consistent, disposable environment for testing your application. It deploys and provisions a Parasoft service virtualization environment to the specified Continous Testing Platform endpoint. You can also configure the action to copy Parasoft virtual assets (PVA) and data repositories from an exisiting environment when deploying the new environment.
Add the following entry to your Github workflow YAML file with the required inputs:
uses: parasoft/deploy-environment-action@v1
with:
ctpUrl: 'http://exampleUrl'
ctpUsername: 'username'
ctpPassword: ${{ secrets.password }}
system: 'system'
environment: 'environment'
instance: 'instance'
The following inputs are required to use this action:
Input | Description |
---|---|
ctpURL |
Specifies the Continuous Testing Platform endpoint where the environment will be deployed. |
ctpUsername |
Specifies a user name for accessing the Continuous Testing Platform endpoint. |
ctpPassword |
Specifies a Github encrypted secret for accessing the Continuous Testing Platform endpoint. Refer to the Encrypted Secrets Documentation for details on how to create an encrypted secret. |
system |
Specifies the name of the system in Continous Testing Platform that contains the environment instance you want to provision. |
environment |
Specifies the name of the environment that contains the instances you want to provision. |
instance |
Specifies the environment instance you want to provision. |
The following optional inputs are also supported:
Input | Description |
---|---|
abortOnFailure |
Aborts a provisioning action on failure and marks the action as failed. Set to true to enable. Default is false . |
copyToVirtualize |
Replicates virtual assets in the environment to another server. Set to true to enable. Default is false . |
virtServerName |
Specifies the name of a target Virtualize server for replicated virtual assets. The copyToVirtualize input must be enabled. |
newEnvironmentName |
Specifies the name for the replicated environment. This environment can be destroyed with the destroy-environment-action when testing has been completed. |
duplicateDataRepo |
Duplicates the associated data repositories before provisioning. Set to true to enable. Default is false . |
duplicateType |
Specifies where to duplicate the data repository. You can specify the following values:
|
repoHost |
Specifies the host of the data repository server when duplicateType is custom . |
repoPort |
Specifies the port of the data repository server when duplicateType is set to target or custom . |
repoUsername |
Specifies the username of the data repository server when duplicateType is set to target or custom . |
repoPassword |
Specifies the password of the data repository server when duplicateType is set to target or custom . |
- Install the dependencies:
$ npm install
- Build the typescript and package it for distribution:
$ npm run build && npm run package
- Run the tests:
$ npm test
PASS ./index.test.js
...