Sha256: 2c8a3d99b571d6f3714662660e94c61d74850860a97e509ec8d422f3d2ffa0d8
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
require_relative '../spec_helper' describe name_from_filename do include_examples 'plugin' def url server_url_for( name_from_filename ) + '/' end context 'when malicious requests are' do context 'being rejected' do it 'logs that a WAF exists' do options.url = "#{url}positive" run results_for( name_from_filename ).should == { code: 1, msg: framework.plugins[name_from_filename]::MSG_FOUND } end end context 'being accepted' do it 'does log a WAF' do options.url = "#{url}negative" run results_for( name_from_filename ).should == { code: 0, msg: framework.plugins[name_from_filename]::MSG_NOT_FOUND } end end end context 'when the webapp behaves erratically' do it 'logs that the tests were inconclusive' do options.url = "#{url}inconclusive" run results_for( name_from_filename ).should == { code: -1, msg: framework.plugins[name_from_filename]::MSG_INCONCLUSIVE } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.2 | spec/plugins/waf_detector_spec.rb |