Skip to content

A GitHub Action for destroying a temporary service virtualization environment in a remote Parasoft Continuous Testing Platform

License

Notifications You must be signed in to change notification settings

parasoft/destroy-environment-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date
May 27, 2021
Jan 29, 2021
May 27, 2021
May 27, 2021
Jan 15, 2021
Jan 15, 2021
Jan 15, 2021
Jan 20, 2021
Jan 15, 2021
Jan 15, 2021
Feb 2, 2021
Jan 25, 2021
Jan 26, 2021
Jan 15, 2021
May 27, 2021
May 27, 2021
Jan 29, 2021

Repository files navigation

typescript-action status

Destroy an Environment

This action allows you to destroy a Parasoft service virtualization environment in a given Continous Testing Platform endpoint.

Usage

Add the following entry to your Github workflow YAML file with the required inputs:

uses: parasoft/destroy-environment-action@v1
with:
  ctpUrl: 'http://exampleUrl'
  ctpUsername: 'username'
  ctpPassword: ${{ secrets.password }}
  system: 'system'
  environment: 'environment'

Required Inputs

The following inputs are required to use this action:

Input Description
ctpURL Specifies the Continuous Testing Platform endpoint where the environment you want to destroy is 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 you want to destroy.
environment Specifies the name of the environment that you want to destroy. If you deployed a replicated environment, this value should match the value specified with newEnvironmentName in the deploy-environment-action.

Build and Test this Action Locally

  1. Install the dependencies:
$ npm install
  1. Build the typescript and package it for distribution:
$ npm run build && npm run package
  1. Run the tests:
$ npm test

 PASS  ./index.test.js

...