Skip to content

d0nt-panic/fast-examples-rails

 
 

Repository files navigation

README

This is example of integration Wallarm FAST with the rails app using rspec, capybara and selenium.

How to run specs localy

Install docker and docker-compose

Get your UUID and Secret key: https://docs.wallarm.com/en/admin-en/api-creds-en.html#get-your-uuid

Create your FAST node here: https://my.wallarm.com/nodes

export TOKEN=<YOUR WALLARM NODE TOKEN>

sudo -E docker-compose build

# Run specs & record baselines
sudo -E docker-compose up -d fast selenium
sudo -E docker-compose run --use-aliases app-test bundle exec rspec spec/features/posts_spec.rb
sudo -E docker-compose down

# Run security specs based on recorded baselines
sudo -E docker-compose up -d app-test
sudo -E docker-compose run --rm -e CI_MODE=testing -e TEST_RUN_URI=http://app-test:3000 fast
sudo -E docker-compose down

Intergation with Circle CI

Create a project and pass following ENV variables:

TOKEN <YOUR WALLARM NODE TOKEN>

Example builds: https://circleci.com/gh/wallarm/fast-examples-rails/

Previous versions

In previous versions could be vary key principles which are used to integrate FAST with ci/cd processes. Please read releases page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 81.0%
  • HTML 12.5%
  • CSS 3.3%
  • JavaScript 2.0%
  • Other 1.2%