Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@asyncapi/fluffy-robot

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asyncapi/fluffy-robot

The asyncapi command line library to test your app at scale.

latest
npmnpm
Version
0.3.0
Version published
Maintainers
3
Created
Source

AsyncApi Simulator

In development

Ever wondered what it would feel like your application to be the center of interest?

Does it seem distant or difficult to switch from development mode to production mode?

Define and simulate scenarios for your applications and create statistics.

Usage

simulator -f ./my_api.yaml -s ./scenario.yaml
simulator -f ../subdirectory/my_api.json -s ./scenario.json

Run sample application by specifying the corresponding AsyncApi and scenario files.

simulator -f ./example-projects/game-processor/asyncapi.yaml -s ./example-projects/game-processor/scenario.yaml
or
simulator -b ../ -f ./simulatorFolder/example-projects/game-processor/asyncapi.yaml -s ./simulatorFolder/example-projects/game-processor/scenario.yaml

Cli

Options:
  -v                     AsyncApi simulator cli version.
  -f, --filepath <type>  The filepath of a AsyncAPI document, as either yaml or json file.
  -s, --scenario <type>  The filepath of a json or yaml file which defines a scenario based on the spec.
  -b, --basedir <type>   The basePath from which relative paths are computed.
                         Defaults to the directory where simulator.sh resides. (default: "./").
  -h, --help             Display help for flags and commands.

Supported Protocols

  • mqtt

AsyncApi File

The file where the api you want to test is defined. By specifying the x-plot: {id} field under a channel will automatically make the channel available for sending requests.

Scenario File

Here with the plot-{id} (where id is the same as the x-plot: {id} in the field you specified in the AsyncAPI channel) field you:

  • Connect your AsyncApi and scenario File.
  • Specify the parameters for each channel and have the options for them to be randomly generated.
  • Specify the payload you want to send.

Keywords

asyncapi

FAQs

Package last updated on 02 Aug 2021

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