Sha256: da6f127525b7265cc8bd1ddf921a761d379910d20760bda48df291d44dcc7de6
Contents?: true
Size: 1001 Bytes
Versions: 3
Compression:
Stored size: 1001 Bytes
Contents
def cwd File.expand_path( File.dirname( __FILE__ ) ) end require File.join( cwd, '../lib/arachni/rpc/', 'pure' ) def rpc_opts { :host => 'localhost', :port => 7331, :token => 'superdupersecret', :serializer => Marshal, } end def rpc_opts_with_ssl_primitives rpc_opts.merge( :port => 7332, :ssl_ca => cwd + '/pems/cacert.pem', :ssl_pkey => cwd + '/pems/client/key.pem', :ssl_cert => cwd + '/pems/client/cert.pem' ) end def rpc_opts_with_invalid_ssl_primitives rpc_opts_with_ssl_primitives.merge( :ssl_pkey => cwd + '/pems/client/foo-key.pem', :ssl_cert => cwd + '/pems/client/foo-cert.pem' ) end def rpc_opts_with_mixed_ssl_primitives rpc_opts_with_ssl_primitives.merge( :ssl_pkey => cwd + '/pems/client/key.pem', :ssl_cert => cwd + '/pems/client/foo-cert.pem' ) end def start_client( opts ) Arachni::RPC::Pure::Client.new( opts ) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arachni-rpc-pure-0.1.2 | spec/spec_helper.rb |
arachni-rpc-pure-0.1.1 | spec/spec_helper.rb |
arachni-rpc-pure-0.1 | spec/spec_helper.rb |