Skip to content

A GitHub Action for disconnecting a temporary Virtualize server from a remote Parasoft Continuous Testing Platform

License

Notifications You must be signed in to change notification settings

parasoft/disconnect-server-action

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

Repository files navigation

typescript-action status

Disconnect a server

This action disconnects a Parasoft Virtualize server from a given Continous Testing Platform endpoint.

Usage

Add the following entry to your Github workflow YAML file with the required inputs: Password will use a github encrypted secret. Please reference Encrypted Secrets Documentation on how to create an encrypted secret.

uses: parasoft/disconnect-server-action@v1
with:
  ctpUrl: 'http://exampleUrl'
  ctpUsername: 'username'
  ctpPassword: ${{ secrets.password }}
  serverMatch: 'host'
  server: 'localhost'

Required Inputs

The following inputs are required for 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.
serverMatch Specifies how to identify the server to disconnect. The following strings are valid:
  • host: Configures the action to identify the host by IP.
  • name: Confiugres the action to identify the host by name.
server Specifies either the host name or IP address to disconnect depending on the serverMatch input configuration.

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

...