Sha256: 767ee655d1fa90d97bcfc79e345d07e960be72e692533a2f2de62f9198230af5
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
module JmeterPerf class DSL def smime_assertion(params = {}, &) node = JmeterPerf::SMIMEAssertion.new(params) attach_node(node, &) end end class SMIMEAssertion attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/smime_assertion.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/smime_assertion.rb |