Sha256: 5d2497d6137e724965230d15a6a5c598b006bbd7c1f0308d16b7e5b9d587ff12

Contents?: true

Size: 1.57 KB

Versions: 5

Compression:

Stored size: 1.57 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.platforms
        [:mysql, :mssql, :pgsql]
    end

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

    def issue_count_per_element_per_platform
        {
            mysql: {
                Element::Form         => 16,
                Element::Link         => 16,
                Element::Cookie       => 32,
                Element::Header       => 16,
                Element::LinkTemplate => 16,
                Element::JSON         => 16,
                Element::XML          => 32,
                Element::NestedCookie => 16
            },
            pgsql: {
                Element::Form         => 6,
                Element::Link         => 6,
                Element::Cookie       => 12,
                Element::Header       => 6,
                Element::LinkTemplate => 6,
                Element::JSON         => 6,
                Element::XML          => 12,
                Element::NestedCookie => 6
            },
            mssql: {
                Element::Form         => 9,
                Element::Link         => 9,
                Element::Cookie       => 18,
                Element::Header       => 9,
                Element::LinkTemplate => 9,
                Element::JSON         => 9,
                Element::XML          => 18,
                Element::NestedCookie => 9
            }
        }
    end

    easy_test
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/checks/active/sql_injection_timing_spec.rb
arachni-1.6.1.2 spec/components/checks/active/sql_injection_timing_spec.rb
arachni-1.6.1.1 spec/components/checks/active/sql_injection_timing_spec.rb
arachni-1.6.1 spec/components/checks/active/sql_injection_timing_spec.rb
arachni-1.6.0 spec/components/checks/active/sql_injection_timing_spec.rb