Socket
Book a DemoInstallSign in
Socket

perimeterx-testing-tool

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

perimeterx-testing-tool

A command-line tool for running perimeterx enforcer tests

1.0.1
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

image

PerimeterX Enforcer TestingTool

This tool is used to test your Enforcer in your local dev environment, by running different testing flows, to ensure the running enforcer is behaving as it should.

Latest stable version: v1.0.1

Table of Contents

Prerequisites

  • NodeJS version 8.0 or higher with NPM.
  • The PerimeterX Enforcer running in test mode.

[Please review the installation segment before commiting to master]

Installation

PerimeterX testing tool can be used by downloading the project to your machine, and running the appropriate commands.

To install the tool, Run npm install -g perimeterx-testing-tool.

Basic Usage Example

To use PerimeterX Testing tool:

  • Open the terminal
  • cd to the folder where you downloaded the testing tool.
  • Run the px-cli testing tool with the following arguments:
  • -u <url> The URL (with the Enforcer loaded on its path) of the server your are testing
  • -k <key> The key which is being used by the Enforcer
    url and key are required fields.

NOTE: If you run the tool without any arguments, you will be shown:

Please run px-cli testing tool with the following arguments: -u <url> The URL (with the enforcer loaded on its path) that you would like to -k <key> The key which is being used by the enforcer. This key is used for cookie encryption/decryption.

👉 In the following example, the user has entered all the right arguments (key/url combination). All the tests have passed, and everything seems to be ok.

basicUsage

👉 Now the user has encountered a problem. The tool has successfully connected to the enforcer, but there were some problems with some of the tests. Please validate that:

  • You have entered the right key.
  • The enforcer runs in testing mode.

basicUsage

👉 Here we can see that the user didn't type the necessary key/url combination in order to work.

basicUsage

Troubleshooting

  • If the tests are failing, check if the url and key combination is correct.
  • In order to run the testing tool, the Enforcer has to be integrated in the server.
  • Make sure the Enforcer runs with the testingMode = true.
  • Failed tests display the expected value vs. the actual value. Please take notice when contacting Perimeterx's dev team.

Keywords

perimeterx

FAQs

Package last updated on 22 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.