Skip to content

Instantly share code, notes, and snippets.

@jasonwebster
Created February 7, 2017 14:28
Show Gist options
  • Save jasonwebster/fc3c10e079901f721b3c679eaafd33c4 to your computer and use it in GitHub Desktop.
Save jasonwebster/fc3c10e079901f721b3c679eaafd33c4 to your computer and use it in GitHub Desktop.
active_merchant (mpospelov-move_migs_to_sha256) $ rake test TEST=test/remote/gateways/remote_migs_test.rb
/usr/local/lib/ruby/gems/2.4.0/gems/concurrent-ruby-1.0.2/lib/concurrent/map.rb:206: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/builder-3.2.2/lib/builder/xchar.rb:111: warning: constant ::Fixnum is deprecated
/usr/local/Cellar/ruby/2.4.0/bin/ruby -w -I"lib:test" -rubygems -w -I"/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib" "/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/remote/gateways/remote_migs_test.rb"
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:35: warning: ambiguous first argument; put parentheses or a space even after `/' operator
/usr/local/lib/ruby/gems/2.4.0/gems/concurrent-ruby-1.0.2/lib/concurrent/map.rb:206: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/time/calculations.rb:243: warning: method redefined; discarding old +
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/time/calculations.rb:253: warning: method redefined; discarding old -
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/time/calculations.rb:263: warning: method redefined; discarding old -
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/enumerable.rb:20: warning: method redefined; discarding old sum
/usr/local/lib/ruby/gems/2.4.0/gems/builder-3.2.2/lib/builder/xchar.rb:111: warning: constant ::Fixnum is deprecated
Loaded suite /usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib/rake/rake_test_loader
Started
....F
==================================================================================================================================================================================
Failure:
Response expected to succeed: <#<ActiveMerchant::Billing::Response:0x007fad972d5068
@authorization="0",
@avs_result=
{"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil},
@cvv_result={"code"=>nil, "message"=>nil},
@emv_authorization=nil,
@error_code=nil,
@fraud_review=false,
@message=
"E5415-02080126: Refund Error : Field in error: 'initialTransaction.orderNumber', value '43' - reason: No payments identified",
@params=
{"Amount"=>"100",
"BatchNo"=>"0",
"Command"=>"refund",
"Currency"=>"SAR",
"Locale"=>"en_SA",
"MerchTxnRef"=>"478d79c9bfc1164280844892579f566e",
"Merchant"=>"TESTH-STATION",
"Message"=>
"E5415-02080126: Refund Error : Field in error: 'initialTransaction.orderNumber', value '43' - reason: No payments identified",
"TransactionNo"=>"0",
"TxnResponseCode"=>"7",
"Version"=>"1"},
@success=false,
@test=true>>
test_refund(RemoteMigsTest)
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:89:in `test_refund'
86: assert payment_response = @gateway.purchase(@amount, @credit_card, @options)
87: assert_success payment_response
88: assert response = @gateway.refund(@amount, payment_response.authorization, @options)
=> 89: assert_success response
90: assert_equal 'Approved', response.message
91: end
92:
==================================================================================================================================================================================
E
==================================================================================================================================================================================
Error: test_server_purchase_url(RemoteMigsTest): ActiveMerchant::ConnectionError: The remote server refused the connection
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:54:in `rescue in retry_network_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:44:in `retry_network_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:21:in `retry_exceptions'
/Projects/active_merchant/lib/active_merchant/connection.rb:54:in `request'
/Projects/active_merchant/lib/active_merchant/posts_data.rb:65:in `raw_ssl_request'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:117:in `block in https_response'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:23:in `block in retry_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:46:in `retry_network_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:21:in `retry_exceptions'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:115:in `https_response'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:120:in `block in https_response'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:23:in `block in retry_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:46:in `retry_network_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:21:in `retry_exceptions'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:115:in `https_response'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:120:in `block in https_response'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:23:in `block in retry_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:46:in `retry_network_exceptions'
/Projects/active_merchant/lib/active_merchant/network_connection_retries.rb:21:in `retry_exceptions'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:115:in `https_response'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:110:in `assert_response_match'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:46:in `block in test_server_purchase_url'
43:
44: responses.each_pair do |card_type, response_text|
45: url = @gateway.purchase_offsite_url(@amount, options.merge(:card_type => card_type))
=> 46: assert_response_match response_text, url
47: end
48: end
49:
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:44:in `each_pair'
/Projects/active_merchant/test/remote/gateways/remote_migs_test.rb:44:in `test_server_purchase_url'
==================================================================================================================================================================================
...
Finished in 32.314521 seconds.
----------------------------------------------------------------------------------------
9 tests, 33 assertions, 1 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
77.7778% passed
----------------------------------------------------------------------------------------
0.28 tests/s, 1.02 assertions/s
rake aborted!
Command failed with status (1): [ruby -w -I"lib:test" -rubygems -w -I"/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib" "/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/remote/gateways/remote_migs_test.rb" ]
/usr/local/lib/ruby/gems/2.4.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:27:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli.rb:335:in `exec'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli.rb:20:in `dispatch'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.3/lib/bundler/cli.rb:11:in `start'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment