Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

barrt-nginx

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

barrt-nginx

nginx support for BARRT (A Bash Rspec-like Regression Test Framework)


Version published
Maintainers
1
Created
Source

barrt-nginx - nginx support for BARRT (A Bash Rspec-like Regression Test framework)

Use it

Install these two modules from npm:

npm i --save barrt
npm i --save barrt-nginx

Edit the setup.sh file in your test suite to include the following:

#!/bin/bash

modules=$(dirname "$BASH_SOURCE")/node_modules

. "$modules"/barrt/setup.sh
. "$modules"/barrt-nginx/setup.sh

# other setup tasks...

Create a runner.sh file in your test suite with these contents:

#!/bin/bash

modules=$(dirname "$BASH_SOURCE")/node_modules

exec "$modules"/barrt/runner.sh

API

The following are provided as bash functions:

Setting up an nginx scenario

set_nginx_conf $full_path_to_nginx_conf

get_nginx_conf

set_nginx_access_log $full_path_to_nginx_access_log

get_nginx_access_log

set_nginx_error_log $full_path_to_nginx_error_log

get_nginx_error_log

Managing nginx

check_nginx_conf

start_nginx

stop_nginx

reopen_nginx_logs

truncate_nginx_logs

run_nginx $args_for_nginx...

Expectations

expect_nginx_access_log

expect_nginx_error_log

expect_nginx_exit_code

License

MIT

Keywords

FAQs

Package last updated on 30 Aug 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc