Sha256: 00fd209387996d840f62273ee30aea81e2d547ae2c58fc800283c49cd0e91b71

Contents?: true

Size: 1.25 KB

Versions: 75

Compression:

Stored size: 1.25 KB

Contents

module RubyJmeter
  class DSL
    def smime_assertion(params={}, &block)
      node = RubyJmeter::SmimeAssertion.new(params)
      attach_node(node, &block)
    end
  end

  class SmimeAssertion
    attr_accessor :doc
    include Helper

    def initialize(params={})
      testname = params.kind_of?(Array) ? 'SmimeAssertion' : (params[:name] || 'SmimeAssertion')
      @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
<SMIMEAssertion guiclass="SMIMEAssertionGui" testclass="SMIMEAssertion" testname="#{testname}" enabled="true">
  <boolProp name="SMIMEAssert.verifySignature">false</boolProp>
  <boolProp name="SMIMEAssert.notSigned">false</boolProp>
  <stringProp name="SMIMEAssert.issuerDn"/>
  <stringProp name="SMIMEAssert.signerDn"/>
  <stringProp name="SMIMEAssert.signerSerial"/>
  <stringProp name="SMIMEAssert.signerEmail"/>
  <stringProp name="SMIMEAssert.signerCertFile"/>
  <boolProp name="SMIMEAssert.signerNoCheck">false</boolProp>
  <boolProp name="SMIMEAssert.signerCheckConstraints">false</boolProp>
  <boolProp name="SMIMEAssert.signerCheckByFile">false</boolProp>
  <stringProp name="SMIMEAssert.messagePosition"/>
</SMIMEAssertion>)
      EOS
      update params
      update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
    end
  end

end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
ruby-jmeter-2.11.21 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.20 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.19 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.18 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.17 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.16 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.15 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.14 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.13 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.11 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.10 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.9 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.8 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.7 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.6 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.5 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.4 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.3 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.2 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-2.11.1 lib/ruby-jmeter/dsl/smime_assertion.rb