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