defra_ruby_mocks 1.4.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3fb698051adcf4eb4ef61921f8b493b181a9c731
4
- data.tar.gz: 72d8f8e70614b1c8a7c9f95bbf65f7388e468a1b
2
+ SHA256:
3
+ metadata.gz: 2400c544251ae5e153675efe7553c5fab5f1f7f85d22070dcc3ad638d57f37c4
4
+ data.tar.gz: 0a0f9539751608fe818abb95441827cb870454221f6adf2560a3ea10a4bcad88
5
5
  SHA512:
6
- metadata.gz: dd5da27f28650a3a638c8bdd0a05095797fe65a5043737dba4891cf0bcef7451832c08122ca148c022e04b34f3314baac9e9f6605058961399d792491667ab19
7
- data.tar.gz: 9cd9847c9b72135dd27fe2ef81f1132998dbe39291882020f447dd40195fc12804f6a2de9543e5c3ef98493cd4435837dcc88d4cd73c31299eaa7264c4d1b61a
6
+ metadata.gz: db8efa881a745c8b16c36b60d24ad7e2edc29a1ff237b060013289801be216e93e3af808b34f49aeddff80eb0855d9217b956c35080c72f83c84a243f98ccde3
7
+ data.tar.gz: da2b9925edb39db3c89b8794a8bc184550cb5972affaf2978f8ea3c9302a6ab7d1d84dbf6c74bbebaa47f864cb17c369a1e4fa216ed6a15ec508b66ccc500d3e
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Defra Ruby Mocks
2
2
 
3
- [![Build Status](https://travis-ci.com/DEFRA/defra-ruby-mocks.svg?branch=master)](https://travis-ci.com/DEFRA/defra-ruby-mocks)
3
+ ![Build Status](https://github.com/DEFRA/defra-ruby-mocks/workflows/CI/badge.svg?branch=main)
4
4
  [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=DEFRA_defra-ruby-mocks&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=DEFRA_defra-ruby-mocks)
5
5
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=DEFRA_defra-ruby-mocks&metric=coverage)](https://sonarcloud.io/dashboard?id=DEFRA_defra-ruby-mocks)
6
- [![security](https://hakiri.io/github/DEFRA/defra-ruby-mocks/master.svg)](https://hakiri.io/github/DEFRA/defra-ruby-mocks/master)
6
+ [![security](https://hakiri.io/github/DEFRA/defra-ruby-mocks/main.svg)](https://hakiri.io/github/DEFRA/defra-ruby-mocks/main)
7
7
  [![Licence](https://img.shields.io/badge/Licence-OGLv3-blue.svg)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3)
8
8
 
9
9
  A Rails Engine used by the [Ruby services team](https://github.com/DEFRA/ruby-services-team) in their digital services.
@@ -21,7 +21,7 @@ Things to note
21
21
 
22
22
  Make sure you already have:
23
23
 
24
- - Ruby 2.4.2
24
+ - Ruby 2.7.1
25
25
  - [Bundler](http://bundler.io/) – for installing Ruby gems
26
26
 
27
27
  ## Mounting the engine
@@ -122,6 +122,30 @@ This Worldpay mock replicates those 2 interactions with the following urls
122
122
  - `../worldpay/payments-service`
123
123
  - `../worldpay/dispatcher`
124
124
 
125
+ ##### Cancelled payments
126
+
127
+ The engine has the ability to mock a user cancelling a payment when on the Worldpay site. To have the mock return a cancelled payment response just ensure the registration's company name includes the word `cancel` (case doesn't matter).
128
+
129
+ If it does the engine will redirect back to the cancelled url instead of the success url provided, plus set the payment status to `CANCELLED`.
130
+
131
+ This allows us to test how the application handles Worldpay responding with a cancelled payment response.
132
+
133
+ ##### Errored payments
134
+
135
+ The engine has the ability to Worldpay erroring during a payment. To have the mock return an errored payment response just ensure the registration's company name includes the word `error` (case doesn't matter).
136
+
137
+ If it does the engine will redirect back to the error url instead of the success url provided, plus set the payment status to `ERROR`.
138
+
139
+ This allows us to test how the application handles Worldpay responding with an errored payment response.
140
+
141
+ ##### Pending payments
142
+
143
+ The engine has the ability to also mock Worldpay marking a payment as pending. To have the mock return a payment pending response just ensure the registration's company name includes the word `pending` (case doesn't matter).
144
+
145
+ If it does the engine will redirect back to the pending url instead of the success url provided, plus set the payment status to `SENT_FOR_AUTHORISATION`.
146
+
147
+ This allows us to test how the application handles Worldpay responding with a payment pending response.
148
+
125
149
  ##### Refused payments
126
150
 
127
151
  The engine has the ability to also mock Worldpay refusing a payment. To have the mock refuse payment just ensure the registration's company name includes the word `reject` (case doesn't matter).
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyMocks
4
- class CompanyController < ApplicationController
4
+ class CompanyController < ::DefraRubyMocks::ApplicationController
5
5
 
6
6
  before_action :set_default_response_format
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyMocks
4
- class WorldpayController < ApplicationController
4
+ class WorldpayController < ::DefraRubyMocks::ApplicationController
5
5
 
6
6
  before_action :set_default_response_format
7
7
 
@@ -10,14 +10,18 @@ module DefraRubyMocks
10
10
 
11
11
  render_payment_response if @values[:request_type] == :payment
12
12
  render_refund_response if @values[:request_type] == :refund
13
- rescue StandardError
13
+ rescue StandardError => e
14
+ Rails.logger.error("MOCKS: Worldpay payments service error: #{e.message}")
14
15
  head 500
15
16
  end
16
17
 
17
18
  def dispatcher
18
19
  @response = WorldpayResponseService.run(
19
20
  success_url: params[:successURL],
20
- failure_url: params[:failureURL]
21
+ failure_url: params[:failureURL],
22
+ pending_url: params[:pendingURL],
23
+ cancel_url: params[:cancelURL],
24
+ error_url: params[:errorURL]
21
25
  )
22
26
 
23
27
  if @response.status == :STUCK
@@ -25,7 +29,8 @@ module DefraRubyMocks
25
29
  else
26
30
  redirect_to @response.url
27
31
  end
28
- rescue StandardError
32
+ rescue StandardError => e
33
+ Rails.logger.error("MOCKS: Worldpay dispatcher error: #{e.message}")
29
34
  head 500
30
35
  end
31
36
 
@@ -2,8 +2,14 @@
2
2
 
3
3
  module DefraRubyMocks
4
4
  class BaseService
5
- def self.run(attrs = nil)
6
- new.run(attrs)
5
+ def self.run(options = nil)
6
+ if options && !options.is_a?(Hash)
7
+ new.run(options)
8
+ elsif options
9
+ new.run(**options)
10
+ else
11
+ new.run
12
+ end
7
13
  end
8
14
  end
9
15
  end
@@ -3,11 +3,19 @@
3
3
  module DefraRubyMocks
4
4
  class WorldpayResponseService < BaseService
5
5
 
6
- def run(success_url:, failure_url:)
7
- parse_reference(success_url)
6
+ def run(success_url:, failure_url:, pending_url:, cancel_url:, error_url:)
7
+ urls = {
8
+ success: success_url,
9
+ failure: failure_url,
10
+ pending: pending_url,
11
+ cancel: cancel_url,
12
+ error: error_url
13
+ }
14
+
15
+ parse_reference(urls[:success])
8
16
  @resource = WorldpayResourceService.run(reference: @reference)
9
17
 
10
- generate_response(success_url, failure_url)
18
+ generate_response(urls)
11
19
  end
12
20
 
13
21
  private
@@ -59,27 +67,44 @@ module DefraRubyMocks
59
67
  def payment_status
60
68
  return :REFUSED if @resource.company_name.include?("reject")
61
69
  return :STUCK if @resource.company_name.include?("stuck")
70
+ return :SENT_FOR_AUTHORISATION if @resource.company_name.include?("pending")
71
+ return :CANCELLED if @resource.company_name.include?("cancel")
72
+ return :ERROR if @resource.company_name.include?("error")
62
73
 
63
74
  :AUTHORISED
64
75
  end
65
76
 
77
+ def url(payment_status, urls)
78
+ return urls[:failure] if %i[REFUSED STUCK].include?(payment_status)
79
+ return urls[:pending] if payment_status == :SENT_FOR_AUTHORISATION
80
+ return urls[:cancel] if payment_status == :CANCELLED
81
+ return urls[:error] if payment_status == :ERROR
82
+
83
+ urls[:success]
84
+ end
85
+
86
+ # Generate a mac that matches what Worldpay would generate
87
+ #
88
+ # For whatever reason, if the payment is cancelled by the user Worldpay does
89
+ # not include the payment status in the mac it generates. Plus the order of
90
+ # things in the array is important.
66
91
  def generate_mac(status)
67
92
  data = [
68
93
  order_key,
69
94
  order_value,
70
- "GBP",
71
- status,
72
- DefraRubyMocks.configuration.worldpay_mac_secret
95
+ "GBP"
73
96
  ]
97
+ data << status unless status == :CANCELLED
98
+ data << DefraRubyMocks.configuration.worldpay_mac_secret
74
99
 
75
100
  Digest::MD5.hexdigest(data.join).to_s
76
101
  end
77
102
 
78
- def generate_response(success_url, failure_url)
103
+ def generate_response(urls)
79
104
  status = payment_status
80
105
 
81
106
  WorldpayResponse.new(
82
- status == :AUTHORISED ? success_url : failure_url,
107
+ url(status, urls),
83
108
  @url_format == :new ? "?" : "&",
84
109
  order_key,
85
110
  generate_mac(status),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyMocks
4
- VERSION = "1.4.0"
4
+ VERSION = "2.1.0"
5
5
  end
@@ -0,0 +1,513 @@
1
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
2
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
3
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
4
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
5
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
6
+ Completed 500 Internal Server Error in 1ms (Allocations: 713)
7
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
8
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
9
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
10
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 2.1ms | Allocations: 310)
11
+ Completed 200 OK in 11ms (Views: 10.3ms | Allocations: 2428)
12
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
13
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
14
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
15
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.4ms | Allocations: 156)
16
+ Completed 200 OK in 2ms (Views: 1.3ms | Allocations: 762)
17
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
18
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
19
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
20
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
21
+ Completed 500 Internal Server Error in 0ms (Allocations: 184)
22
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
23
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
24
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
25
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
26
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.6ms | Allocations: 457)
27
+ Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 1126)
28
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
29
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
30
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
31
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
32
+ Completed 302 Found in 1ms (Allocations: 364)
33
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
34
+ Processing by DefraRubyMocks::CompanyController#show as HTML
35
+ Parameters: {"id"=>"99999999"}
36
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
37
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.3ms | Allocations: 94)
38
+ Completed 404 Not Found in 4ms (Views: 3.2ms | Allocations: 1328)
39
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
40
+ Processing by DefraRubyMocks::CompanyController#show as HTML
41
+ Parameters: {"id"=>"05868270"}
42
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
43
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.4ms | Allocations: 99)
44
+ Completed 200 OK in 2ms (Views: 0.8ms | Allocations: 644)
45
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
46
+ Processing by DefraRubyMocks::CompanyController#show as HTML
47
+ Parameters: {"id"=>"foo"}
48
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
49
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
50
+ Completed 404 Not Found in 1ms (Views: 0.5ms | Allocations: 275)
51
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
52
+ Processing by DefraRubyMocks::CompanyController#show as HTML
53
+ Parameters: {"id"=>"SC247974"}
54
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
55
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.2ms | Allocations: 11)
56
+ Completed 200 OK in 2ms (Views: 1.0ms | Allocations: 323)
57
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:04:12 +0100
58
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
59
+ Processing by DefraRubyMocks::CompanyController#show as HTML
60
+ Parameters: {"id"=>"05868270"}
61
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
62
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 1.5ms | Allocations: 262)
63
+ Completed 200 OK in 10ms (Views: 6.8ms | Allocations: 2449)
64
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
65
+ Processing by DefraRubyMocks::CompanyController#show as HTML
66
+ Parameters: {"id"=>"99999999"}
67
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
68
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.5ms | Allocations: 86)
69
+ Completed 404 Not Found in 2ms (Views: 1.9ms | Allocations: 573)
70
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
71
+ Processing by DefraRubyMocks::CompanyController#show as HTML
72
+ Parameters: {"id"=>"SC247974"}
73
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
74
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
75
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 324)
76
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
77
+ Processing by DefraRubyMocks::CompanyController#show as HTML
78
+ Parameters: {"id"=>"foo"}
79
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
80
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.0ms | Allocations: 10)
81
+ Completed 404 Not Found in 1ms (Views: 0.4ms | Allocations: 274)
82
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
83
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
84
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
85
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
86
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.5ms | Allocations: 149)
87
+ Completed 200 OK in 4ms (Views: 3.2ms | Allocations: 1447)
88
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
89
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
90
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
91
+ Completed 500 Internal Server Error in 1ms (Allocations: 636)
92
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
93
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
94
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
95
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.5ms | Allocations: 156)
96
+ Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 762)
97
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
98
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
99
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
100
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
101
+ Completed 500 Internal Server Error in 0ms (Allocations: 183)
102
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
103
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
104
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
105
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
106
+ Completed 302 Found in 1ms (Allocations: 366)
107
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
108
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
109
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
110
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
111
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.9ms | Allocations: 457)
112
+ Completed 200 OK in 3ms (Views: 2.2ms | Allocations: 1124)
113
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
114
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:04:56 +0100
115
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
116
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
117
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
118
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
119
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
120
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 1.3ms | Allocations: 309)
121
+ Completed 200 OK in 11ms (Views: 10.4ms | Allocations: 2523)
122
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
123
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
124
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
125
+ Completed 500 Internal Server Error in 1ms (Allocations: 626)
126
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
127
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
128
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
129
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.4ms | Allocations: 156)
130
+ Completed 200 OK in 2ms (Views: 1.6ms | Allocations: 726)
131
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
132
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
133
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
134
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
135
+ Completed 500 Internal Server Error in 0ms (Allocations: 175)
136
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
137
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
138
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
139
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
140
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.6ms | Allocations: 457)
141
+ Completed 200 OK in 2ms (Views: 1.7ms | Allocations: 1099)
142
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
143
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
144
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
145
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
146
+ Completed 302 Found in 1ms (Allocations: 349)
147
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
148
+ Processing by DefraRubyMocks::CompanyController#show as HTML
149
+ Parameters: {"id"=>"foo"}
150
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
151
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.4ms | Allocations: 94)
152
+ Completed 404 Not Found in 4ms (Views: 3.3ms | Allocations: 1209)
153
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
154
+ Processing by DefraRubyMocks::CompanyController#show as HTML
155
+ Parameters: {"id"=>"SC247974"}
156
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
157
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.3ms | Allocations: 99)
158
+ Completed 200 OK in 2ms (Views: 0.8ms | Allocations: 606)
159
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
160
+ Processing by DefraRubyMocks::CompanyController#show as HTML
161
+ Parameters: {"id"=>"05868270"}
162
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
163
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.0ms | Allocations: 11)
164
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 304)
165
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
166
+ Processing by DefraRubyMocks::CompanyController#show as HTML
167
+ Parameters: {"id"=>"99999999"}
168
+ Rendering /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
169
+ Rendered /Users/toby/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.0ms | Allocations: 10)
170
+ Completed 404 Not Found in 1ms (Views: 0.4ms | Allocations: 253)
171
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:05:30 +0100
172
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
173
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
174
+ Processing by DefraRubyMocks::CompanyController#show as HTML
175
+ Parameters: {"id"=>"05868270"}
176
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
177
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 1.5ms | Allocations: 261)
178
+ Completed 200 OK in 9ms (Views: 6.1ms | Allocations: 2467)
179
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
180
+ Processing by DefraRubyMocks::CompanyController#show as HTML
181
+ Parameters: {"id"=>"foo"}
182
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
183
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.3ms | Allocations: 86)
184
+ Completed 404 Not Found in 2ms (Views: 1.5ms | Allocations: 535)
185
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
186
+ Processing by DefraRubyMocks::CompanyController#show as HTML
187
+ Parameters: {"id"=>"SC247974"}
188
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
189
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
190
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 303)
191
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
192
+ Processing by DefraRubyMocks::CompanyController#show as HTML
193
+ Parameters: {"id"=>"99999999"}
194
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
195
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
196
+ Completed 404 Not Found in 1ms (Views: 0.5ms | Allocations: 253)
197
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
198
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
199
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
200
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
201
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 1.0ms | Allocations: 459)
202
+ Completed 200 OK in 3ms (Views: 2.6ms | Allocations: 1248)
203
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
204
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
205
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
206
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
207
+ Completed 302 Found in 1ms (Allocations: 349)
208
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
209
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
210
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
211
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
212
+ Completed 500 Internal Server Error in 1ms (Allocations: 172)
213
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
214
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
215
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
216
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.5ms | Allocations: 162)
217
+ Completed 200 OK in 4ms (Views: 3.2ms | Allocations: 1243)
218
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
219
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
220
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
221
+ Completed 500 Internal Server Error in 1ms (Allocations: 622)
222
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
223
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
224
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
225
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.5ms | Allocations: 141)
226
+ Completed 200 OK in 3ms (Views: 2.2ms | Allocations: 657)
227
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
228
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:13:15 +0100
229
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
230
+ Processing by DefraRubyMocks::CompanyController#show as HTML
231
+ Parameters: {"id"=>"05868270"}
232
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
233
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.9ms | Allocations: 261)
234
+ Completed 200 OK in 7ms (Views: 4.9ms | Allocations: 2467)
235
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
236
+ Processing by DefraRubyMocks::CompanyController#show as HTML
237
+ Parameters: {"id"=>"99999999"}
238
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
239
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.3ms | Allocations: 86)
240
+ Completed 404 Not Found in 1ms (Views: 1.2ms | Allocations: 535)
241
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
242
+ Processing by DefraRubyMocks::CompanyController#show as HTML
243
+ Parameters: {"id"=>"SC247974"}
244
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
245
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
246
+ Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 303)
247
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
248
+ Processing by DefraRubyMocks::CompanyController#show as HTML
249
+ Parameters: {"id"=>"foo"}
250
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
251
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.0ms | Allocations: 10)
252
+ Completed 404 Not Found in 1ms (Views: 0.4ms | Allocations: 253)
253
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
254
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
255
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
256
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
257
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
258
+ Completed 500 Internal Server Error in 0ms (Allocations: 218)
259
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
260
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
261
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
262
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
263
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.7ms | Allocations: 459)
264
+ Completed 200 OK in 2ms (Views: 2.0ms | Allocations: 1202)
265
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
266
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
267
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
268
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
269
+ Completed 302 Found in 1ms (Allocations: 349)
270
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
271
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
272
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
273
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.5ms | Allocations: 147)
274
+ Completed 200 OK in 3ms (Views: 2.7ms | Allocations: 1174)
275
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
276
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
277
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
278
+ Completed 500 Internal Server Error in 1ms (Allocations: 622)
279
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
280
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
281
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
282
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.4ms | Allocations: 156)
283
+ Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 726)
284
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
285
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:15:53 +0100
286
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
287
+ Processing by DefraRubyMocks::CompanyController#show as HTML
288
+ Parameters: {"id"=>"99999999"}
289
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
290
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 1.3ms | Allocations: 254)
291
+ Completed 404 Not Found in 11ms (Views: 11.0ms | Allocations: 2377)
292
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
293
+ Processing by DefraRubyMocks::CompanyController#show as HTML
294
+ Parameters: {"id"=>"05868270"}
295
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
296
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.4ms | Allocations: 100)
297
+ Completed 200 OK in 2ms (Views: 0.9ms | Allocations: 645)
298
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
299
+ Processing by DefraRubyMocks::CompanyController#show as HTML
300
+ Parameters: {"id"=>"foo"}
301
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
302
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
303
+ Completed 404 Not Found in 1ms (Views: 0.8ms | Allocations: 275)
304
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
305
+ Processing by DefraRubyMocks::CompanyController#show as HTML
306
+ Parameters: {"id"=>"SC247974"}
307
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
308
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
309
+ Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 327)
310
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
311
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
312
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
313
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
314
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
315
+ Completed 500 Internal Server Error in 1ms (Allocations: 232)
316
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
317
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
318
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
319
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
320
+ Completed 302 Found in 1ms (Allocations: 366)
321
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
322
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
323
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
324
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
325
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.7ms | Allocations: 459)
326
+ Completed 200 OK in 3ms (Views: 2.1ms | Allocations: 1272)
327
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
328
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
329
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
330
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.6ms | Allocations: 162)
331
+ Completed 200 OK in 5ms (Views: 4.0ms | Allocations: 1321)
332
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
333
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
334
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
335
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.5ms | Allocations: 141)
336
+ Completed 200 OK in 2ms (Views: 1.7ms | Allocations: 693)
337
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
338
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
339
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
340
+ Completed 500 Internal Server Error in 1ms (Allocations: 632)
341
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
342
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:17:31 +0100
343
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:17:46 +0100
344
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
345
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
346
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
347
+ Completed 302 Found in 1ms (Allocations: 420)
348
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:17:46 +0100
349
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
350
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
351
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
352
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 1.9ms | Allocations: 619)
353
+ Completed 200 OK in 8ms (Views: 7.4ms | Allocations: 2353)
354
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-25 10:17:46 +0100
355
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
356
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
357
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
358
+ Completed 500 Internal Server Error in 0ms (Allocations: 172)
359
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:46 +0100
360
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
361
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
362
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.5ms | Allocations: 162)
363
+ Completed 200 OK in 4ms (Views: 2.9ms | Allocations: 1260)
364
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:46 +0100
365
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
366
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
367
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.6ms | Allocations: 141)
368
+ Completed 200 OK in 3ms (Views: 2.2ms | Allocations: 657)
369
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:46 +0100
370
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
371
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
372
+ Completed 500 Internal Server Error in 1ms (Allocations: 622)
373
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
374
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
375
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
376
+ Processing by DefraRubyMocks::CompanyController#show as HTML
377
+ Parameters: {"id"=>"05868270"}
378
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
379
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.7ms | Allocations: 101)
380
+ Completed 200 OK in 5ms (Views: 3.8ms | Allocations: 1281)
381
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
382
+ Processing by DefraRubyMocks::CompanyController#show as HTML
383
+ Parameters: {"id"=>"99999999"}
384
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
385
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.4ms | Allocations: 86)
386
+ Completed 404 Not Found in 3ms (Views: 2.3ms | Allocations: 535)
387
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
388
+ Processing by DefraRubyMocks::CompanyController#show as HTML
389
+ Parameters: {"id"=>"foo"}
390
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
391
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
392
+ Completed 404 Not Found in 1ms (Views: 0.6ms | Allocations: 254)
393
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
394
+ Processing by DefraRubyMocks::CompanyController#show as HTML
395
+ Parameters: {"id"=>"SC247974"}
396
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
397
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
398
+ Completed 200 OK in 1ms (Views: 0.7ms | Allocations: 302)
399
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-25 10:17:47 +0100
400
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
401
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
402
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
403
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
404
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
405
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 1.7ms | Allocations: 324)
406
+ Completed 200 OK in 11ms (Views: 9.9ms | Allocations: 2592)
407
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
408
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
409
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
410
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.8ms | Allocations: 141)
411
+ Completed 200 OK in 2ms (Views: 2.0ms | Allocations: 657)
412
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
413
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
414
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
415
+ Completed 500 Internal Server Error in 1ms (Allocations: 626)
416
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
417
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
418
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
419
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
420
+ Completed 500 Internal Server Error in 0ms (Allocations: 175)
421
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
422
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
423
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
424
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
425
+ Completed 302 Found in 1ms (Allocations: 358)
426
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
427
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
428
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
429
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
430
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 1.1ms | Allocations: 457)
431
+ Completed 200 OK in 3ms (Views: 2.1ms | Allocations: 1090)
432
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
433
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
434
+ Processing by DefraRubyMocks::CompanyController#show as HTML
435
+ Parameters: {"id"=>"05868270"}
436
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
437
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.7ms | Allocations: 101)
438
+ Completed 200 OK in 4ms (Views: 2.8ms | Allocations: 1281)
439
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
440
+ Processing by DefraRubyMocks::CompanyController#show as HTML
441
+ Parameters: {"id"=>"99999999"}
442
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
443
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.8ms | Allocations: 86)
444
+ Completed 404 Not Found in 3ms (Views: 2.5ms | Allocations: 535)
445
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
446
+ Processing by DefraRubyMocks::CompanyController#show as HTML
447
+ Parameters: {"id"=>"foo"}
448
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
449
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
450
+ Completed 404 Not Found in 1ms (Views: 0.6ms | Allocations: 254)
451
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-31 09:22:19 +0100
452
+ Processing by DefraRubyMocks::CompanyController#show as HTML
453
+ Parameters: {"id"=>"SC247974"}
454
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
455
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
456
+ Completed 200 OK in 1ms (Views: 0.6ms | Allocations: 302)
457
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
458
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
459
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
460
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
461
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
462
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
463
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 2.3ms | Allocations: 619)
464
+ Completed 200 OK in 15ms (Views: 14.5ms | Allocations: 2438)
465
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
466
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
467
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
468
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
469
+ Completed 302 Found in 1ms (Allocations: 349)
470
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
471
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
472
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
473
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
474
+ Completed 500 Internal Server Error in 0ms (Allocations: 172)
475
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
476
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
477
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
478
+ Completed 500 Internal Server Error in 1ms (Allocations: 630)
479
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
480
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
481
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
482
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.9ms | Allocations: 147)
483
+ Completed 200 OK in 4ms (Views: 3.5ms | Allocations: 1183)
484
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
485
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
486
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
487
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.9ms | Allocations: 156)
488
+ Completed 200 OK in 3ms (Views: 2.1ms | Allocations: 726)
489
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
490
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
491
+ Processing by DefraRubyMocks::CompanyController#show as HTML
492
+ Parameters: {"id"=>"05868270"}
493
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
494
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.7ms | Allocations: 99)
495
+ Completed 200 OK in 3ms (Views: 2.4ms | Allocations: 1277)
496
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
497
+ Processing by DefraRubyMocks::CompanyController#show as HTML
498
+ Parameters: {"id"=>"foo"}
499
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
500
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.6ms | Allocations: 86)
501
+ Completed 404 Not Found in 2ms (Views: 1.8ms | Allocations: 535)
502
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
503
+ Processing by DefraRubyMocks::CompanyController#show as HTML
504
+ Parameters: {"id"=>"SC247974"}
505
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
506
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 11)
507
+ Completed 200 OK in 1ms (Views: 0.6ms | Allocations: 303)
508
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2021-08-31 10:37:01 +0100
509
+ Processing by DefraRubyMocks::CompanyController#show as HTML
510
+ Parameters: {"id"=>"99999999"}
511
+ Rendering /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
512
+ Rendered /Users/toby/Code/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
513
+ Completed 404 Not Found in 1ms (Views: 0.5ms | Allocations: 253)