Sha256: 9874442ccfc30b5a275c2f331726a73014132fc9e9a2ac9384ddc9e48804f990

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.platforms
        [:unix, :windows, :java]
    end

    def self.elements
        [ Element::Form, Element::Link, Element::Cookie, Element::Header,
          Element::LinkTemplate, Element::JSON, Element::XML ]
    end

    def issue_count_per_element_per_platform
        {
            unix:    {
                Element::Form         => 288,
                Element::Link         => 288,
                Element::Cookie       => 144,
                Element::Header       => 72,
                Element::LinkTemplate => 16,
                Element::JSON         => 216,
                Element::XML          => 144
            },
            windows: {
                Element::Form         => 864,
                Element::Link         => 864,
                Element::Cookie       => 432,
                Element::Header       => 216,
                Element::LinkTemplate => 48,
                Element::JSON         => 648,
                Element::XML          => 432
            },
            java:    {
                Element::Form         => 16,
                Element::Link         => 16,
                Element::Cookie       => 8,
                Element::Header       => 4,
                Element::LinkTemplate => 0,
                Element::JSON         => 12,
                Element::XML          => 8
            }
        }
    end

    easy_test
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arachni-1.5.1 spec/components/checks/active/path_traversal_spec.rb
arachni-1.5 spec/components/checks/active/path_traversal_spec.rb