gauntlt/gauntlt

View on GitHub
examples/garmr/garmr.attack

Summary

Maintainability
Test Coverage
Feature: Run garmr scan on a URL

Scenario: Use Garmr to scan a website for the Mozilla opioniated security requirements
  Given "garmr" is installed
  And the following profile:
    | name       | value                      |
    | target_url | http://localhost:8008      |
  When I launch a "garmr" attack with:
    """
    garmr -u <target_url> -o my_garmr_output.xml
    """
  Then it should pass with:
    """
    [Garmr.corechecks.Http200Check] Fail The response code was 302
    """
  And the file "my_garmr_output.xml" should contain XML:
    | css                                      |
    | testcase[name="Http200Check"] failure    |
  And the file "my_garmr_output.xml" should not contain XML:
    | css                                      |
    | testcase[name="SCSPHeaderCheck"] failure |