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-3.1.08 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.07 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.06 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.05 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.04 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.03 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.02 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.1.01 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.13 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.12 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.11 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.10 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.9 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.8 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.7 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.6 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.5 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.4 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.3 lib/ruby-jmeter/dsl/smime_assertion.rb
ruby-jmeter-3.0.2 lib/ruby-jmeter/dsl/smime_assertion.rb