Created
August 22, 2018 20:35
-
-
Save EdwardReed/30ad56baee66f719fb5f40259a1663f4 to your computer and use it in GitHub Desktop.
Tests that may require `preload` data:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
1) test ready_to_send_freight_invoice?/1 it returns false if any freight invoices are present (TSS.InvoicesTest) | |
test/tss/invoices/invoices_test.exs:73 | |
** (FunctionClauseError) no function clause matching in TSS.FreightRates.freight_rate_for_truck_load/1 | |
The following arguments were given to TSS.FreightRates.freight_rate_for_truck_load/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 16800, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: [%TSS.Invoice{__meta__: #Ecto.Schema.Metadata<:loaded, "invoices">, deleted_at: nil, id: 167, inserted_at: ~N[2018-08-22 18:20:42.307362], number: "SDRT-1", sand_price: nil, sap_freight_url: nil, truck_load: #Ecto.Association.NotLoaded<association :truck_load is not loaded>, truck_load_id: 16800, type: "freight", updated_at: ~N[2018-08-22 18:20:42.307371], user: #Ecto.Association.NotLoaded<association :user is not loaded>, user_id: nil}], stage_id: 10262, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:20:42.265146], dispatch_notes: nil, order_number: "123", truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:20:42.265137], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: "http://loaded.com", weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7428, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: "http://unloaded.com", measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: "http://freight.com"} | |
Attempted function clauses (showing 1 out of 1): | |
def freight_rate_for_truck_load(-%{pull_point_id: pull_point_id, stage: %{well_id: well_id}} = truck_load-) | |
code: assert Invoices.ready_to_send_freight_invoice?(truck_load) == false | |
stacktrace: | |
(tss) lib/tss/freight_rates/freight_rates.ex:147: TSS.FreightRates.freight_rate_for_truck_load/1 | |
(tss) lib/tss/invoices/invoices.ex:218: TSS.Invoices.ready_to_send_freight_invoice?/1 | |
test/tss/invoices/invoices_test.exs:79: (test) | |
.................................. | |
2) test create_truck_load_rejected_message/1 successfully creates a message from a rejected %TruckLoad{} (TSS.MessagesTest) | |
test/tss/messages/messages_test.exs:83 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: well_id = truck_load.stage.well_id | |
stacktrace: | |
test/tss/messages/messages_test.exs:91: (test) | |
............................................................... | |
3) test list_user_locations_for_truck_load (TSS.UserLocationsTest) | |
test/tss/users/user_locations_test.exs:152 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: assert length(UserLocations.list_user_locations_for_truck_load(get_load.())) == 0 | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.map/2 | |
(elixir) lib/enum.ex:2283: Enum.sort_by/3 | |
(tss) lib/tss/users/user_locations.ex:98: TSS.UserLocations.list_user_locations_for_truck_load/1 | |
test/tss/users/user_locations_test.exs:164: (test) | |
.................... | |
4) test maybe_enforce_dispatch_scripts adds an error if the procurement po number doesn't match the priority po script (TSS.TruckLoadTest) | |
test/tss/wells/truck_load_test.exs:62 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: |> TruckLoads.change_truck_load(%{procurement_id: procurement.id}) | |
stacktrace: | |
(tss) lib/tss/wells/purchase_order_scripts.ex:25: TSS.PurchaseOrderScripts.purchase_order_scripts_for_truck_load_today/1 | |
(tss) lib/tss/wells/truck_load.ex:140: TSS.TruckLoad.requires_procurement_reason?/1 | |
(tss) lib/tss/wells/truck_load.ex:155: TSS.TruckLoad.enforce_dispatch_scripts/1 | |
test/tss/wells/truck_load_test.exs:83: (test) | |
......... | |
5) test maybe_enforce_dispatch_scripts passes validation if the procurement po number matches the priority po script (TSS.TruckLoadTest) | |
test/tss/wells/truck_load_test.exs:94 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: |> TruckLoads.change_truck_load(%{procurement_id: procurement.id}) | |
stacktrace: | |
(tss) lib/tss/wells/purchase_order_scripts.ex:25: TSS.PurchaseOrderScripts.purchase_order_scripts_for_truck_load_today/1 | |
(tss) lib/tss/wells/truck_load.ex:140: TSS.TruckLoad.requires_procurement_reason?/1 | |
(tss) lib/tss/wells/truck_load.ex:155: TSS.TruckLoad.enforce_dispatch_scripts/1 | |
test/tss/wells/truck_load_test.exs:116: (test) | |
.................................. | |
6) test sorting functionality for list_truck_loads/1 sorts results for `Pull Point` header (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:392 | |
** (KeyError) key :name not found in: #Ecto.Association.NotLoaded<association :pull_point is not loaded> | |
code: asc = Enum.sort(Enum.map(truck_loads, fn truck_load -> truck_load.pull_point.name end)) | |
stacktrace: | |
test/tss/wells/truck_loads_search_test.exs:395: anonymous fn/1 in TSS.TruckLoadsSearchTest."test sorting functionality for list_truck_loads/1 sorts results for `Pull Point` header"/1 | |
(elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2 | |
test/tss/wells/truck_loads_search_test.exs:395: (test) | |
................................................................................................... | |
7) test sorting functionality for list_truck_loads/1 sorts results for `Carrier` header (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:405 | |
** (KeyError) key :company_name not found in: #Ecto.Association.NotLoaded<association :driver is not loaded> | |
code: asc = Enum.sort(Enum.map(truck_loads, fn truck_load -> truck_load.driver.company_name end)) | |
stacktrace: | |
test/tss/wells/truck_loads_search_test.exs:408: anonymous fn/1 in TSS.TruckLoadsSearchTest."test sorting functionality for list_truck_loads/1 sorts results for `Carrier` header"/1 | |
(elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2 | |
test/tss/wells/truck_loads_search_test.exs:408: (test) | |
... | |
8) test filtering functionality for list_truck_loads/1 list_truck_loads with sand_price is not nil (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:301 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: well_id: truck_load.stage.well_id, | |
stacktrace: | |
test/tss/wells/truck_loads_search_test.exs:307: (test) | |
............ | |
9) test sorting functionality for list_truck_loads/1 sorts results for `Stage` header (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:379 | |
** (KeyError) key :stage_number not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: asc = Enum.sort(Enum.map(truck_loads, fn truck_load -> truck_load.stage.stage_number end)) | |
stacktrace: | |
test/tss/wells/truck_loads_search_test.exs:382: anonymous fn/1 in TSS.TruckLoadsSearchTest."test sorting functionality for list_truck_loads/1 sorts results for `Stage` header"/1 | |
(elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2 | |
test/tss/wells/truck_loads_search_test.exs:382: (test) | |
................................. | |
10) test create invoice redirects to invoicing details with valid image params (TSSWeb.InvoiceControllerTest) | |
test/tss_web/controllers/invoice_controller_test.exs:93 | |
** (ArgumentError) cannot perform TSS.Repo.get/2 because the given value is nil | |
code: conn = post(conn, invoice_path(conn, :create), invoice: attrs) | |
stacktrace: | |
(ecto) lib/ecto/repo/queryable.ex:340: Ecto.Repo.Queryable.query_for_get/3 | |
(ecto) lib/ecto/repo/queryable.ex:54: Ecto.Repo.Queryable.get!/5 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:26: TSSWeb.InvoiceController.create/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.action/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/invoice_controller_test.exs:103: (test) | |
.. | |
11) test create invoice redirects to invoicing details with valid params (TSSWeb.InvoiceControllerTest) | |
test/tss_web/controllers/invoice_controller_test.exs:80 | |
** (ArgumentError) cannot perform TSS.Repo.get/2 because the given value is nil | |
code: conn = post(conn, invoice_path(conn, :create), invoice: attrs) | |
stacktrace: | |
(ecto) lib/ecto/repo/queryable.ex:340: Ecto.Repo.Queryable.query_for_get/3 | |
(ecto) lib/ecto/repo/queryable.ex:54: Ecto.Repo.Queryable.get!/5 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:26: TSSWeb.InvoiceController.create/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.action/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/invoice_controller_test.exs:88: (test) | |
....................... | |
12) test sorting functionality for list_truck_loads/1 sorts results for `Well` header (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:366 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: asc = Enum.sort(Enum.map(truck_loads, fn truck_load -> truck_load.stage.well.name end)) | |
stacktrace: | |
test/tss/wells/truck_loads_search_test.exs:369: anonymous fn/1 in TSS.TruckLoadsSearchTest."test sorting functionality for list_truck_loads/1 sorts results for `Well` header"/1 | |
(elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2 | |
test/tss/wells/truck_loads_search_test.exs:369: (test) | |
.... | |
13) test create invoice return 200 with bad params (TSSWeb.InvoiceControllerTest) | |
test/tss_web/controllers/invoice_controller_test.exs:108 | |
** (ArgumentError) cannot perform TSS.Repo.get/2 because the given value is nil | |
code: conn = post(conn, invoice_path(conn, :create), invoice: attrs) | |
stacktrace: | |
(ecto) lib/ecto/repo/queryable.ex:340: Ecto.Repo.Queryable.query_for_get/3 | |
(ecto) lib/ecto/repo/queryable.ex:54: Ecto.Repo.Queryable.get!/5 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:26: TSSWeb.InvoiceController.create/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.action/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/invoice_controller_test.exs:110: (test) | |
........... | |
14) test send_freight_invoice_package (TSSWeb.InvoiceControllerTest) | |
test/tss_web/controllers/invoice_controller_test.exs:126 | |
** (FunctionClauseError) no function clause matching in TSS.FreightRates.freight_rate_for_truck_load/1 | |
The following arguments were given to TSS.FreightRates.freight_rate_for_truck_load/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17018, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: 16408, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10359, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:20:57.030725], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:20:57.030715], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: 7578, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7616, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def freight_rate_for_truck_load(-%{pull_point_id: pull_point_id, stage: %{well_id: well_id}} = truck_load-) | |
code: conn = post(conn, invoice_path(conn, :send_freight_invoice_package, truck_load)) | |
stacktrace: | |
(tss) lib/tss/freight_rates/freight_rates.ex:147: TSS.FreightRates.freight_rate_for_truck_load/1 | |
(tss) lib/tss/invoices/invoices.ex:194: TSS.Invoices.generate_freight_invoice_pdf/3 | |
(tss) lib/tss/invoices/invoices.ex:116: TSS.Invoices.generate_and_send_freight_invoice_package/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:64: TSSWeb.InvoiceController.send_freight_invoice_package/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.action/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/invoice_controller_test.exs:132: (test) | |
............ | |
15) test generate_freight_invoice_package (TSSWeb.InvoiceControllerTest) | |
test/tss_web/controllers/invoice_controller_test.exs:115 | |
** (FunctionClauseError) no function clause matching in TSS.FreightRates.freight_rate_for_truck_load/1 | |
The following arguments were given to TSS.FreightRates.freight_rate_for_truck_load/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17020, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: 16433, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10361, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:20:57.425497], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:20:57.425490], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: 7579, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7621, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def freight_rate_for_truck_load(-%{pull_point_id: pull_point_id, stage: %{well_id: well_id}} = truck_load-) | |
code: conn = get(conn, invoice_invoice_path(conn, :generate_freight_invoice_package, invoice)) | |
stacktrace: | |
(tss) lib/tss/freight_rates/freight_rates.ex:147: TSS.FreightRates.freight_rate_for_truck_load/1 | |
(tss) lib/tss/invoices/invoices.ex:194: TSS.Invoices.generate_freight_invoice_pdf/3 | |
(tss) lib/tss/invoices/invoices.ex:154: TSS.Invoices.generate_freight_invoice_package/1 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:51: TSSWeb.InvoiceController.generate_freight_invoice_package/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.action/2 | |
(tss) lib/tss_web/controllers/invoice_controller.ex:1: TSSWeb.InvoiceController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/invoice_controller_test.exs:121: (test) | |
......................................... | |
16) test filtering functionality for list_truck_loads/1 deleted at exclusion (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:44 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: Enum.find(truck_load.truck_load_events, fn x -> | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
test/tss/wells/truck_loads_search_test.exs:51: (test) | |
...... | |
17) test filtering functionality for list_truck_loads/1 uniqueness for truck_loads with multiple sand_prices (TSS.TruckLoadsSearchTest) | |
test/tss/wells/truck_loads_search_test.exs:280 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: well_id: truck_load.stage.well_id, | |
stacktrace: | |
test/tss/wells/truck_loads_search_test.exs:287: (test) | |
..................................................................................................... | |
18) test stage_active?/2 get_carrier_name_from_driver/1 (TSSWeb.TruckLoadViewTest) | |
test/tss_web/views/truck_load_view_test.exs:90 | |
** (FunctionClauseError) no function clause matching in TSSWeb.TruckLoadView.get_carrier_name_from_driver/1 | |
The following arguments were given to TSSWeb.TruckLoadView.get_carrier_name_from_driver/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :driver is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def get_carrier_name_from_driver(-nil-) | |
def get_carrier_name_from_driver(-%TSS.User{supplier_id: nil}-) | |
def get_carrier_name_from_driver(-%TSS.User{supplier_id: id}-) | |
code: assert TruckLoadView.get_carrier_name_from_driver(truck_load.driver) == nil | |
stacktrace: | |
(tss) lib/tss_web/views/truck_load_view.ex:506: TSSWeb.TruckLoadView.get_carrier_name_from_driver/1 | |
test/tss_web/views/truck_load_view_test.exs:95: (test) | |
. | |
19) test decorating driver cards displays trailer type name and icon if it exists and matched (TSSWeb.TruckLoadViewTest) | |
test/tss_web/views/truck_load_view_test.exs:274 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17063, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10386, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:01.345000], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:01.344992], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7656, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: [data] = DriverStatuses.list_assignable_drivers_by_location(truck_load) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
test/tss_web/views/truck_load_view_test.exs:280: (test) | |
..... | |
20) test decorating driver cards displays N/A for deleted sand types (TSSWeb.TruckLoadViewTest) | |
test/tss_web/views/truck_load_view_test.exs:294 | |
** (FunctionClauseError) no function clause matching in TSSWeb.TruckLoadView.sand_type_badge/1 | |
The following arguments were given to TSSWeb.TruckLoadView.sand_type_badge/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :sand_type is not loaded> | |
Attempted function clauses (showing 1 out of 1): | |
def sand_type_badge(-%{deleted_at: deleted_at, name: sand_type_name}-) | |
code: refute TruckLoadView.sand_type_badge(truck_load.sand_type) == "N/A" | |
stacktrace: | |
(tss) lib/tss_web/views/truck_load_view.ex:188: TSSWeb.TruckLoadView.sand_type_badge/1 | |
test/tss_web/views/truck_load_view_test.exs:298: (test) | |
.............................................. | |
21) test audit success with unloaded event (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1658 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: conn = post(conn, truck_load_path(conn, :audit, truck_load)) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_loads.ex:326: TSS.TruckLoads.audit/3 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:794: TSSWeb.TruckLoadController.audit/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1661: (test) | |
............... | |
22) test Truck Load Events as Tech Support can view page (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:964 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: conn = get(conn, truck_load_path(conn, :events, load)) | |
stacktrace: | |
(tss) lib/tss_web/templates/truck_load/events.html.eex:11: TSSWeb.TruckLoadView."events.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:971: (test) | |
. | |
23) test editing or showing a truck load via show() renders a detailed view for a truck load without exceptions (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:662 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17205, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10472, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:05.029467], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:05.029460], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: resp = get(conn, truck_load_path(conn, :show, truck_load)) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:572: TSSWeb.TruckLoadController.show/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:669: (test) | |
24) test reset_truck_load triggers notification to Driver (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1909 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: put(conn, truck_load_path(conn, :reset_truck_load, load.id)) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
(tss) lib/tss/wells/truck_loads.ex:1045: TSS.TruckLoads.reset/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:961: TSSWeb.TruckLoadController.reset_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1921: (test) | |
. | |
25) test manual manipulation of events events (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:698 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: conn = get(conn, truck_load_path(conn, :events, load)) | |
stacktrace: | |
(tss) lib/tss_web/templates/truck_load/events.html.eex:11: TSSWeb.TruckLoadView."events.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:705: (test) | |
..... | |
26) test reroute Rerouted when well and stage selected (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:568 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/1 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-) | |
def most_recent_event(-[]-) | |
def most_recent_event(events) when -is_list(events)- | |
code: assert TruckLoads.most_recent_event(truck_load).status == TruckLoadEvent.status().rerouted | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:410: TSS.TruckLoads.most_recent_event/1 | |
test/tss_web/controllers/truck_load_controller_test.exs:597: (test) | |
.. | |
27) test well dispatch redispatch after a truck load is rejected (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:216 | |
** (FunctionClauseError) no function clause matching in TSS.Messages.job_rejected_message/1 | |
The following arguments were given to TSS.Messages.job_rejected_message/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :driver is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def job_rejected_message(-%{first_name: first_name, last_name: last_name}-) | |
def job_rejected_message(-%{first_name: first_name}-) | |
def job_rejected_message(-%{id: id}-) | |
code: TruckLoads.update_accepted!(truck_load, false) | |
stacktrace: | |
(tss) lib/tss/messages/messages.ex:91: TSS.Messages.job_rejected_message/1 | |
(tss) lib/tss/messages/messages.ex:77: TSS.Messages.create_truck_load_rejected_message/1 | |
(tss) lib/tss/wells/truck_loads.ex:348: TSS.TruckLoads.update_accepted!/2 | |
test/tss_web/controllers/truck_load_controller_test.exs:250: (test) | |
... | |
28) test Truck Load SAP Invoice Status can not see link if do not have proper permission (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1801 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17297, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10526, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:05.899697], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:05.899691], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: conn = get(conn, truck_load_path(conn, :show, truck_load)) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:572: TSSWeb.TruckLoadController.show/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1808: (test) | |
. | |
29) test reset_truck_load can reset a truck load with dispatch driver permission (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1881 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: conn = put(conn, truck_load_path(conn, :reset_truck_load, load.id)) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
(tss) lib/tss/wells/truck_loads.ex:1045: TSS.TruckLoads.reset/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:961: TSSWeb.TruckLoadController.reset_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1890: (test) | |
30) test Truck Load Show as Tech Support can view page (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1752 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17318, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10534, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:06.026697], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:06.026689], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: conn = get(conn, truck_load_path(conn, :show, load)) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:572: TSSWeb.TruckLoadController.show/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1758: (test) | |
. | |
31) test manual manipulation of events update_truck_load with invalid data (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:937 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17321, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10542, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:06.212930], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:06.212924], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: 7690, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: put(conn, truck_load_path(conn, :update_truck_load, truck_load), %{ | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:597: TSSWeb.TruckLoadController.update_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:941: (test) | |
.. | |
32) test manual manipulation of events invoicing_details (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:858 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"at_lease_road_entry_point" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: conn = get(conn, truck_load_path(conn, :invoicing_details, truck_load)) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
(tss) lib/tss/wells/truck_loads.ex:419: TSS.TruckLoads.most_recent_event_time/2 | |
(tss) lib/tss/wells/truck_loads.ex:474: anonymous fn/3 in TSS.TruckLoads.status_info_time/1 | |
(elixir) lib/enum.ex:1899: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(tss) lib/tss/wells/truck_loads.ex:479: TSS.TruckLoads.status_info/1 | |
(tss) lib/tss_web/templates/truck_load/_invoicing_details_table.html.eex:4: TSSWeb.TruckLoadView."_invoicing_details_table.html"/1 | |
(tss) lib/tss_web/templates/truck_load/invoicing_details.html.eex:14: TSSWeb.TruckLoadView."invoicing_details.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:866: (test) | |
33) test update_truck_load change pull point if can audit truck loads (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1951 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: put(conn, truck_load_path(conn, :update_truck_load, truck_load), %{ | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
(tss) lib/tss/wells/truck_loads.ex:703: TSS.TruckLoads.update_truck_load/3 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:592: TSSWeb.TruckLoadController.update_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:2004: (test) | |
.. | |
34) test Truck Load Events as Tech Support does not see delete button (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:975 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: conn = get(conn, truck_load_path(conn, :events, load)) | |
stacktrace: | |
(tss) lib/tss_web/templates/truck_load/events.html.eex:11: TSSWeb.TruckLoadView."events.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:982: (test) | |
. | |
35) test audit can add audit_defect event (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1669 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: conn = post(conn, truck_load_path(conn, :audit_defect, truck_load)) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_loads.ex:326: TSS.TruckLoads.audit/3 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:794: TSSWeb.TruckLoadController.audit/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1672: (test) | |
.. | |
36) test Truck Load SAP Invoice Status link shows up on truck load show page (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1796 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17370, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10586, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:06.959237], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:06.959228], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: conn = get(conn, truck_load_path(conn, :show, truck_load)) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:572: TSSWeb.TruckLoadController.show/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1797: (test) | |
.. | |
37) test editing or showing a truck load via show() auditors cannot edit truck loads until they are unloaded or audit defect (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:675 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17376, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10598, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:07.314330], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:07.314322], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7750, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: resp = get(conn, truck_load_path(conn, :show, truck_load)) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:572: TSSWeb.TruckLoadController.show/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:684: (test) | |
38) test update_truck_load change pull point if can not audit truck loads and truck load loaded (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:2055 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: put(conn, truck_load_path(conn, :update_truck_load, truck_load), %{ | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
(tss) lib/tss/wells/truck_loads.ex:703: TSS.TruckLoads.update_truck_load/3 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:592: TSSWeb.TruckLoadController.update_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:2093: (test) | |
39) test manual manipulation of events create_event failure (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:754 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: conn = post(conn, truck_load_path(conn, :create_event, load, truck_load_event: params)) | |
stacktrace: | |
(tss) lib/tss_web/templates/truck_load/events.html.eex:11: TSSWeb.TruckLoadView."events.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:767: (test) | |
40) test :invoicing_details action permits users with `:customer` or `:invoicing` permission (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1450 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"at_lease_road_entry_point" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: resp = get(conn, truck_load_path(conn, :invoicing_details, truck_load)) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
(tss) lib/tss/wells/truck_loads.ex:419: TSS.TruckLoads.most_recent_event_time/2 | |
(tss) lib/tss/wells/truck_loads.ex:474: anonymous fn/3 in TSS.TruckLoads.status_info_time/1 | |
(elixir) lib/enum.ex:1899: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(tss) lib/tss/wells/truck_loads.ex:479: TSS.TruckLoads.status_info/1 | |
(tss) lib/tss_web/templates/truck_load/_customer_invoicing_details.html.eex:4: TSSWeb.TruckLoadView."_customer_invoicing_details.html"/1 | |
(tss) lib/tss_web/templates/truck_load/invoicing_details.html.eex:12: TSSWeb.TruckLoadView."invoicing_details.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1459: (test) | |
...... | |
41) test manual manipulation of events invoicing_details without driver (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:871 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"at_lease_road_entry_point" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: conn = get(conn, truck_load_path(conn, :invoicing_details, truck_load)) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
(tss) lib/tss/wells/truck_loads.ex:419: TSS.TruckLoads.most_recent_event_time/2 | |
(tss) lib/tss/wells/truck_loads.ex:474: anonymous fn/3 in TSS.TruckLoads.status_info_time/1 | |
(elixir) lib/enum.ex:1899: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(tss) lib/tss/wells/truck_loads.ex:479: TSS.TruckLoads.status_info/1 | |
(tss) lib/tss_web/templates/truck_load/_invoicing_details_table.html.eex:4: TSSWeb.TruckLoadView."_invoicing_details_table.html"/1 | |
(tss) lib/tss_web/templates/truck_load/invoicing_details.html.eex:14: TSSWeb.TruckLoadView."invoicing_details.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:878: (test) | |
. | |
42) test audit fails without unloaded event (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1649 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: conn = post(conn, truck_load_path(conn, :audit, truck_load)) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_loads.ex:326: TSS.TruckLoads.audit/3 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:794: TSSWeb.TruckLoadController.audit/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1651: (test) | |
...... | |
43) test manual manipulation of events invoicing details displays event time columns to customer users (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:883 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"at_lease_road_entry_point" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: conn = get(conn, truck_load_path(conn, :invoicing_details, load)) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
(tss) lib/tss/wells/truck_loads.ex:419: TSS.TruckLoads.most_recent_event_time/2 | |
(tss) lib/tss/wells/truck_loads.ex:474: anonymous fn/3 in TSS.TruckLoads.status_info_time/1 | |
(elixir) lib/enum.ex:1899: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(tss) lib/tss/wells/truck_loads.ex:479: TSS.TruckLoads.status_info/1 | |
(tss) lib/tss_web/templates/truck_load/_customer_invoicing_details.html.eex:4: TSSWeb.TruckLoadView."_customer_invoicing_details.html"/1 | |
(tss) lib/tss_web/templates/truck_load/invoicing_details.html.eex:12: TSSWeb.TruckLoadView."invoicing_details.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:892: (test) | |
. | |
44) test Truck Load Show as Tech Support does not see Save, Audited or Cancel buttons (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1762 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17466, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10663, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:08.289600], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:08.289591], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: conn = get(conn, truck_load_path(conn, :show, load)) | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:572: TSSWeb.TruckLoadController.show/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1768: (test) | |
45) test audit fails without permission (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1623 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/1 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-) | |
def most_recent_event(-[]-) | |
def most_recent_event(events) when -is_list(events)- | |
code: assert TruckLoads.most_recent_event(truck_load).status() == "unloaded" | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:410: TSS.TruckLoads.most_recent_event/1 | |
test/tss_web/controllers/truck_load_controller_test.exs:1646: (test) | |
46) test status change send to well (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:441 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: conn = post(conn, truck_load_path(conn, :send_to_well_notification, load.id)) | |
stacktrace: | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:508: TSSWeb.TruckLoadController.send_to_well_notification/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:445: (test) | |
47) test Truck Load Events as Tech Support does not see Save or Cancel buttons (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:988 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: conn = get(conn, truck_load_path(conn, :events, load)) | |
stacktrace: | |
(tss) lib/tss_web/templates/truck_load/events.html.eex:11: TSSWeb.TruckLoadView."events.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:995: (test) | |
48) test update_truck_load change pull point if can audit truck loads but not unloaded (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:2011 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: put(conn, truck_load_path(conn, :update_truck_load, truck_load), %{ | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
(tss) lib/tss/wells/truck_loads.ex:703: TSS.TruckLoads.update_truck_load/3 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:592: TSSWeb.TruckLoadController.update_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:2048: (test) | |
. | |
49) test manual manipulation of events job_request with invalid driver (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:948 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17524, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10682, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:08.536829], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:08.536822], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: nil, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: post(conn, truck_load_path(conn, :job_request, truck_load), %{ | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:640: TSSWeb.TruckLoadController.job_request/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:953: (test) | |
...... | |
50) test manual manipulation of events update_event failure (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:792 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: put(conn, truck_load_path(conn, :update_event, load, event, truck_load_event: params)) | |
stacktrace: | |
(tss) lib/tss_web/templates/truck_load/events.html.eex:11: TSSWeb.TruckLoadView."events.html"/1 | |
(tss) lib/tss_web/templates/layout/app.html.eex:205: TSSWeb.LayoutView."app.html"/1 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:808: (test) | |
51) test reset_truck_load return errors if TruckLoad cannot be reset (TSSWeb.TruckLoadControllerTest) | |
test/tss_web/controllers/truck_load_controller_test.exs:1895 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: conn = put(conn, truck_load_path(conn, :reset_truck_load, load.id)) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
(tss) lib/tss/wells/truck_loads.ex:1045: TSS.TruckLoads.reset/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:961: TSSWeb.TruckLoadController.reset_truck_load/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/truck_load_controller.ex:1: TSSWeb.TruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/truck_load_controller_test.exs:1904: (test) | |
......13:21:09.265 [error] Task #PID<0.4540.0> started from #PID<0.4538.0> terminating | |
** (stop) exited in: GenServer.call(#PID<0.4539.0>, {:checkout, #Reference<0.3501060789.1894252547.168517>, true, 15000}, 5000) | |
** (EXIT) shutdown: "owner #PID<0.4538.0> exited with: shutdown" | |
(db_connection) lib/db_connection/ownership/proxy.ex:32: DBConnection.Ownership.Proxy.checkout/2 | |
(db_connection) lib/db_connection.ex:928: DBConnection.checkout/2 | |
(db_connection) lib/db_connection.ex:750: DBConnection.run/3 | |
(db_connection) lib/db_connection.ex:644: DBConnection.execute/4 | |
(ecto) lib/ecto/adapters/postgres/connection.ex:98: Ecto.Adapters.Postgres.Connection.execute/4 | |
(ecto) lib/ecto/adapters/sql.ex:256: Ecto.Adapters.SQL.sql_call/6 | |
(ecto) lib/ecto/adapters/sql.ex:436: Ecto.Adapters.SQL.execute_or_reset/7 | |
(ecto) lib/ecto/repo/queryable.ex:133: Ecto.Repo.Queryable.execute/5 | |
(ecto) lib/ecto/repo/queryable.ex:37: Ecto.Repo.Queryable.all/4 | |
(tss) lib/tss/transit.ex:165: TSS.Transit.insert_events_for/1 | |
(tss) lib/tss_web/location_tracking.ex:26: anonymous fn/1 in TSSWeb.LocationTracking.insert_events_for/1 | |
(elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2 | |
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3 | |
Function: #Function<1.99659064/0 in TSSWeb.LocationTracking.insert_events_for/1> | |
Args: [] | |
52) test truck_loads request_driver!/2 with valid load and user (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:530 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: |> TruckLoads.request_driver!(Users.reload_user!(user), sender) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_loads.ex:251: TSS.TruckLoads.request_driver!/3 | |
test/tss/wells/truck_loads_test.exs:539: (test) | |
. | |
53) test get_assignable_drivers/1 prioritizes drivers who have already unloaded at a given well (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:994 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17601, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10728, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:09.318496], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:09.318487], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7796, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: |> TruckLoads.get_assignable_drivers() | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
test/tss/wells/truck_loads_test.exs:1012: (test) | |
54) test truck_loads change_truck_load/2 sets `:purchase_order_id` when `:procurement_id` is valid (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:260 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: changeset = TruckLoads.change_truck_load(truck_load, %{procurement_id: procurement.id}) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
test/tss/wells/truck_loads_test.exs:270: (test) | |
.. | |
55) test truck_loads change_truck_load/2 returns an error when attempting to set a `:procurement_id` with an invalid date range (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:230 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: TruckLoads.change_truck_load(truck_load, %{procurement_id: early_procurement.id}) | |
stacktrace: | |
(tss) lib/tss/wells/purchase_order_scripts.ex:25: TSS.PurchaseOrderScripts.purchase_order_scripts_for_truck_load_today/1 | |
(tss) lib/tss/wells/truck_load.ex:140: TSS.TruckLoad.requires_procurement_reason?/1 | |
(tss) lib/tss/wells/truck_load.ex:155: TSS.TruckLoad.enforce_dispatch_scripts/1 | |
test/tss/wells/truck_loads_test.exs:241: (test) | |
. | |
56) test reset/1 resets a TruckLoad (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1136 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: {:ok, _} = TruckLoads.reset(truck_load, driver) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
(tss) lib/tss/wells/truck_loads.ex:1045: TSS.TruckLoads.reset/2 | |
test/tss/wells/truck_loads_test.exs:1151: (test) | |
... | |
57) test truck_loads change_truck_load/2 returns no error when attempting to change the pull point without a loaded event (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:304 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: changeset = TruckLoads.change_truck_load(truck_load, %{pull_point_id: pull_point.id}) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
test/tss/wells/truck_loads_test.exs:311: (test) | |
58) test can_reset/1 returns false when TruckLoad has any unpermitted statuses (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1119 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: assert TruckLoads.can_reset?(truck_load) == false | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
test/tss/wells/truck_loads_test.exs:1131: (test) | |
59) test can_reset/1 returns true when TruckLoad has permitted statuses (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1109 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: assert TruckLoads.can_reset?(truck_load) == true | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
test/tss/wells/truck_loads_test.exs:1116: (test) | |
. | |
60) test truck_loads get_truck_load!/1 ignores deleted events (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:59 | |
Assertion with == failed | |
code: assert TruckLoads.get_truck_load!(truck_load.id()).truck_load_events() == [] | |
left: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
right: [] | |
stacktrace: | |
test/tss/wells/truck_loads_test.exs:63: (test) | |
61) test if a truck load is deletable returns true for a truck load with no truck load events (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:819 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: result = TruckLoads.deletable?(loaded_truck_load) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:193: Enumerable.slice/1 | |
(elixir) lib/enum.ex:2809: Enum.backwards_compatible_slice/1 | |
(elixir) lib/enum.ex:770: Enum.empty?/1 | |
(tss) lib/tss/wells/truck_loads.ex:973: TSS.TruckLoads.deletable?/1 | |
test/tss/wells/truck_loads_test.exs:825: (test) | |
62) test get_assignable_drivers/1 correctly sorts drivers when no priority drivers are available (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1020 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17626, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10744, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:12.293462], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:12.293455], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7801, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: |> TruckLoads.get_assignable_drivers() | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
test/tss/wells/truck_loads_test.exs:1039: (test) | |
.. | |
63) test truck_loads most_recent_event/1 obeys time (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:149 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"dispatch" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: assert recent.() == nil | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
test/tss/wells/truck_loads_test.exs:154: (test) | |
64) test truck_loads updated_accepted!/1 can reject (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:183 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"dispatch" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: assert nil == TruckLoads.most_recent_event(load, TruckLoadEvent.status().dispatch) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
test/tss/wells/truck_loads_test.exs:187: (test) | |
65) test truck_loads send_to_well!/1 (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:163 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"called_to_well_site" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: assert event.() == nil | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
test/tss/wells/truck_loads_test.exs:167: (test) | |
.. | |
66) test get_assignable_drivers/1 correctly sorts drivers when only priority drivers are available (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1046 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17640, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10751, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:12.406767], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:12.406760], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7802, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: |> TruckLoads.get_assignable_drivers() | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
test/tss/wells/truck_loads_test.exs:1064: (test) | |
67) test if a truck load is deletable returns false for a truck load with any truck load events (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:830 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: result = TruckLoads.deletable?(loaded_truck_load) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:193: Enumerable.slice/1 | |
(elixir) lib/enum.ex:2809: Enum.backwards_compatible_slice/1 | |
(elixir) lib/enum.ex:770: Enum.empty?/1 | |
(tss) lib/tss/wells/truck_loads.ex:973: TSS.TruckLoads.deletable?/1 | |
test/tss/wells/truck_loads_test.exs:837: (test) | |
. | |
68) test truck_loads change_truck_load/2 does not set `:purchase_order_id` when `:procurement_id` is invalid (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:275 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: TruckLoads.change_truck_load(truck_load, %{procurement_id: early_procurement.id}) | |
stacktrace: | |
(tss) lib/tss/wells/purchase_order_scripts.ex:25: TSS.PurchaseOrderScripts.purchase_order_scripts_for_truck_load_today/1 | |
(tss) lib/tss/wells/truck_load.ex:140: TSS.TruckLoad.requires_procurement_reason?/1 | |
(tss) lib/tss/wells/truck_load.ex:155: TSS.TruckLoad.enforce_dispatch_scripts/1 | |
test/tss/wells/truck_loads_test.exs:286: (test) | |
69) test truck_loads request_driver!/2 when truck_load is already dispatched (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:497 | |
Expected exception TSS.TruckLoads.DispatchError but got Protocol.UndefinedError (protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval) | |
code: assert_raise TruckLoads.DispatchError, | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_loads.ex:251: TSS.TruckLoads.request_driver!/3 | |
test/tss/wells/truck_loads_test.exs:503: (test) | |
. | |
70) test truck_loads update_accepted!/1 creates %Message{} when rejected (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:195 | |
** (FunctionClauseError) no function clause matching in TSS.Messages.job_rejected_message/1 | |
The following arguments were given to TSS.Messages.job_rejected_message/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :driver is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def job_rejected_message(-%{first_name: first_name, last_name: last_name}-) | |
def job_rejected_message(-%{first_name: first_name}-) | |
def job_rejected_message(-%{id: id}-) | |
code: TruckLoads.update_accepted!(load, false) | |
stacktrace: | |
(tss) lib/tss/messages/messages.ex:91: TSS.Messages.job_rejected_message/1 | |
(tss) lib/tss/messages/messages.ex:77: TSS.Messages.create_truck_load_rejected_message/1 | |
(tss) lib/tss/wells/truck_loads.ex:348: TSS.TruckLoads.update_accepted!/2 | |
test/tss/wells/truck_loads_test.exs:198: (test) | |
71) test reset/1 can reset a TruckLoad multiple times (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1161 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: {:ok, _} = TruckLoads.reset(truck_load, driver) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
(tss) lib/tss/wells/truck_loads.ex:1045: TSS.TruckLoads.reset/2 | |
test/tss/wells/truck_loads_test.exs:1170: (test) | |
...... | |
72) test if a truck load is deletable returns false for a truck load with a pull point id (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:849 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: result = TruckLoads.deletable?(loaded_truck_load) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:193: Enumerable.slice/1 | |
(elixir) lib/enum.ex:2809: Enum.backwards_compatible_slice/1 | |
(elixir) lib/enum.ex:770: Enum.empty?/1 | |
(tss) lib/tss/wells/truck_loads.ex:973: TSS.TruckLoads.deletable?/1 | |
test/tss/wells/truck_loads_test.exs:863: (test) | |
........ | |
73) test truck_loads updated_accepted!/1 can accept (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:203 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"dispatch" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: assert nil == TruckLoads.most_recent_event(load, TruckLoadEvent.status().dispatch) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
test/tss/wells/truck_loads_test.exs:207: (test) | |
...... | |
74) test truck_loads change_truck_load/2 returns no error when attempting to set a `:procurement_id` with a valid date range (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:215 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: changeset = TruckLoads.change_truck_load(truck_load, %{procurement_id: procurement.id}) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
test/tss/wells/truck_loads_test.exs:225: (test) | |
75) test if a truck load is deletable returns false for a truck load with a driver id (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:842 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: result = TruckLoads.deletable?(loaded_truck_load) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:193: Enumerable.slice/1 | |
(elixir) lib/enum.ex:2809: Enum.backwards_compatible_slice/1 | |
(elixir) lib/enum.ex:770: Enum.empty?/1 | |
(tss) lib/tss/wells/truck_loads.ex:973: TSS.TruckLoads.deletable?/1 | |
test/tss/wells/truck_loads_test.exs:844: (test) | |
.. | |
76) test reset/1 returns error changeset (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1183 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: assert {:error, _} = TruckLoads.reset(truck_load, driver) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1911: Enum.reject/2 | |
(tss) lib/tss/wells/truck_loads.ex:1036: TSS.TruckLoads.can_reset?/1 | |
(tss) lib/tss/wells/truck_loads.ex:1045: TSS.TruckLoads.reset/2 | |
test/tss/wells/truck_loads_test.exs:1194: (test) | |
77) test truck_loads change_truck_load/2 returns an error when attempting to change the pull point when there is already a loaded event (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:291 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: changeset = TruckLoads.change_truck_load(truck_load, %{pull_point_id: pull_point.id}) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:919: Enum.find/3 | |
(tss) lib/tss/wells/truck_load.ex:490: TSS.TruckLoad.maybe_add_pull_point_changed_event/2 | |
(tss) lib/tss/wells/truck_load.ex:97: TSS.TruckLoad.changeset/3 | |
test/tss/wells/truck_loads_test.exs:299: (test) | |
...... | |
78) test get_assignable_drivers/1 returns an empty list when no drivers are available (TSS.TruckLoadsTest) | |
test/tss/wells/truck_loads_test.exs:1071 | |
** (FunctionClauseError) no function clause matching in TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
The following arguments were given to TSS.DriverStatuses.list_assignable_drivers_by_location/1: | |
# 1 | |
%TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17706, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: nil, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10790, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:13.218447], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:13.218439], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: nil, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7808, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
Attempted function clauses (showing 1 out of 1): | |
def list_assignable_drivers_by_location(-%{pull_point: %{geom: geom}}-) | |
code: assert TruckLoads.get_assignable_drivers(truck_load) == [] | |
stacktrace: | |
(tss) lib/tss/drivers/driver_statuses.ex:37: TSS.DriverStatuses.list_assignable_drivers_by_location/1 | |
(tss) lib/tss/wells/truck_loads.ex:185: TSS.TruckLoads.get_assignable_drivers/1 | |
test/tss/wells/truck_loads_test.exs:1088: (test) | |
...... | |
79) test bol unload with valid params (TSSWeb.API.SandCoordinatorControllerTest) | |
test/tss_web/controllers/api/sand_coordinator_controller_test.exs:17 | |
** (FunctionClauseError) no function clause matching in TSSWeb.LocationTracking.get_channel_update_event/1 | |
The following arguments were given to TSSWeb.LocationTracking.get_channel_update_event/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :driver is not loaded> | |
Attempted function clauses (showing 6 out of 6): | |
def get_channel_update_event(-nil-) | |
def get_channel_update_event(-%TSS.TruckLoadEvent{truck_load_id: id}-) | |
def get_channel_update_event(-%TSS.TruckLoad{driver_id: nil}-) | |
def get_channel_update_event(-%TSS.TruckLoad{driver_id: id}-) | |
def get_channel_update_event(-%TSS.User{deleted_at: deleted_at} = user-) when -not(deleted_at == nil)- | |
def get_channel_update_event(-%TSS.User{} = user-) | |
code: conn = put(conn, sand_coordinator_path(conn, :bol_unload, truck_load.id), truck_load: params) | |
stacktrace: | |
(tss) lib/tss_web/location_tracking.ex:43: TSSWeb.LocationTracking.get_channel_update_event/1 | |
(tss) lib/tss_web/location_tracking.ex:149: TSSWeb.LocationTracking.emit_update/1 | |
(tss) lib/tss_web/controllers/api/sand_coordinator_controller.ex:15: TSSWeb.API.SandCoordinatorController.bol_unload/2 | |
(tss) lib/tss_web/controllers/api/sand_coordinator_controller.ex:1: TSSWeb.API.SandCoordinatorController.action/2 | |
(tss) lib/tss_web/controllers/api/sand_coordinator_controller.ex:1: TSSWeb.API.SandCoordinatorController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/sand_coordinator_controller_test.exs:27: (test) | |
.... | |
80) test show (TSSWeb.API.TruckLoadController.Test) | |
test/tss_web/controllers/api/truck_load_api_controller_test.exs:32 | |
** (FunctionClauseError) no function clause matching in TSS.TruckLoads.most_recent_event/2 | |
The following arguments were given to TSS.TruckLoads.most_recent_event/2: | |
# 1 | |
#Ecto.Association.NotLoaded<association :truck_load_events is not loaded> | |
# 2 | |
"called_to_well_site" | |
Attempted function clauses (showing 3 out of 3): | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: nil}-, status) | |
def most_recent_event(-%TSS.TruckLoad{truck_load_events: events}-, status) | |
def most_recent_event(events, status) when -is_list(events)- | |
code: conn = get(conn, truck_load_api_path(conn, :show, truck_load.id)) | |
stacktrace: | |
(tss) lib/tss/wells/truck_loads.ex:398: TSS.TruckLoads.most_recent_event/2 | |
(tss) lib/tss_web/views/api/truck_load_api_view.ex:62: TSSWeb.API.TruckLoadApiView.render/2 | |
(phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/4 | |
(tss) lib/tss_web/controllers/api/truck_load_api_controller.ex:1: TSSWeb.API.TruckLoadApiController.action/2 | |
(tss) lib/tss_web/controllers/api/truck_load_api_controller.ex:1: TSSWeb.API.TruckLoadApiController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/truck_load_api_controller_test.exs:38: (test) | |
. | |
81) test update/2 allows driver to accept truck load (TSSWeb.API.DriverTruckLoadControllerTest) | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:53 | |
** (MatchError) no match of right hand side value: %TSS.TruckLoad{well: #Ecto.Association.NotLoaded<association :well is not loaded>, demurrage_reason_id: nil, trailer_number: nil, sap_freight_invoice_number: nil, id: 17722, reset_user: #Ecto.Association.NotLoaded<association :reset_user is not loaded>, sand_type: #Ecto.Association.NotLoaded<association :sand_type is not loaded>, driver_id: 16986, invoices: #Ecto.Association.NotLoaded<association :invoices is not loaded>, stage_id: 10795, procurement_reason: nil, truck_number: nil, updated_at: ~N[2018-08-22 18:21:13.403585], dispatch_notes: nil, order_number: nil, truck_load_events: #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>, inserted_at: ~N[2018-08-22 18:21:13.403577], deleted_at: nil, invoiced_at: nil, pull_point: #Ecto.Association.NotLoaded<association :pull_point is not loaded>, freight_number: nil, stage: #Ecto.Association.NotLoaded<association :stage is not loaded>, sap_sand_invoice_number: nil, freight_notes: nil, demurrage_reason: #Ecto.Association.NotLoaded<association :demurrage_reason is not loaded>, procurement_id: nil, selected: nil, bol_loaded_url: nil, weight: #Decimal<100>, procurement: #Ecto.Association.NotLoaded<association :procurement is not loaded>, reset_user_id: nil, purchase_order_id: nil, sand_type_id: 7874, purchase_order: nil, driver: #Ecto.Association.NotLoaded<association :driver is not loaded>, demurrage_notes: nil, pull_point_id: 7810, bol: nil, bin_number: nil, dispatched_at: nil, bol_unloaded_url: nil, measured_weight: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "truck_loads">, freight_ticket_url: nil} | |
code: |> post(driver_truck_load_path(conn, :update, truck_load.id), %{ | |
stacktrace: | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:64: TSSWeb.API.DriverTruckLoadController.update/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:56: (test) | |
82) test complete_load/2 error on truck loads that have no previous status of `:job_requested` or `:dispatch` (TSSWeb.API.DriverTruckLoadControllerTest) | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:138 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: resp = post(conn, driver_truck_load_path(conn, :complete_load, id, complete_load_params())) | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:325: Enum.any?/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:173: TSSWeb.API.DriverTruckLoadController.allow_only_if_dispatched!/1 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:196: TSSWeb.API.DriverTruckLoadController.complete_load/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:143: (test) | |
. | |
83) test complete_load/2 accepts truck load when passed parameters of `:freight_number` and `:bol` (TSSWeb.API.DriverTruckLoadControllerTest) | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:112 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: post( | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:325: Enum.any?/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:173: TSSWeb.API.DriverTruckLoadController.allow_only_if_dispatched!/1 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:196: TSSWeb.API.DriverTruckLoadController.complete_load/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:119: (test) | |
84) test update/2 allows driver to reject a truck_load (TSSWeb.API.DriverTruckLoadControllerTest) | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:65 | |
** (FunctionClauseError) no function clause matching in TSS.Messages.job_rejected_message/1 | |
The following arguments were given to TSS.Messages.job_rejected_message/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :driver is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def job_rejected_message(-%{first_name: first_name, last_name: last_name}-) | |
def job_rejected_message(-%{first_name: first_name}-) | |
def job_rejected_message(-%{id: id}-) | |
code: |> post(driver_truck_load_path(conn, :update, truck_load.id), %{ | |
stacktrace: | |
(tss) lib/tss/messages/messages.ex:91: TSS.Messages.job_rejected_message/1 | |
(tss) lib/tss/messages/messages.ex:77: TSS.Messages.create_truck_load_rejected_message/1 | |
(tss) lib/tss/wells/truck_loads.ex:348: TSS.TruckLoads.update_accepted!/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:41: TSSWeb.API.DriverTruckLoadController.update/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:68: (test) | |
.... | |
85) test complete_load invalid param (TSSWeb.API.DriverTruckLoadControllerTest) | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:182 | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :truck_load_events is not loaded>. This protocol is implemented for: DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Postgrex.Stream, Range, Scrivener.Page, Stream, Timex.Interval | |
code: post( | |
stacktrace: | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) /private/tmp/elixir-20180316-64850-zsrybb/elixir-1.6.4/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:325: Enum.any?/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:173: TSSWeb.API.DriverTruckLoadController.allow_only_if_dispatched!/1 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:196: TSSWeb.API.DriverTruckLoadController.complete_load/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:189: (test) | |
. | |
86) test update/2 creates a %Message{} when a driver rejects a truck load (TSSWeb.API.DriverTruckLoadControllerTest) | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:91 | |
** (FunctionClauseError) no function clause matching in TSS.Messages.job_rejected_message/1 | |
The following arguments were given to TSS.Messages.job_rejected_message/1: | |
# 1 | |
#Ecto.Association.NotLoaded<association :driver is not loaded> | |
Attempted function clauses (showing 3 out of 3): | |
def job_rejected_message(-%{first_name: first_name, last_name: last_name}-) | |
def job_rejected_message(-%{first_name: first_name}-) | |
def job_rejected_message(-%{id: id}-) | |
code: post(conn, driver_truck_load_path(conn, :update, truck_load.id), %{ | |
stacktrace: | |
(tss) lib/tss/messages/messages.ex:91: TSS.Messages.job_rejected_message/1 | |
(tss) lib/tss/messages/messages.ex:77: TSS.Messages.create_truck_load_rejected_message/1 | |
(tss) lib/tss/wells/truck_loads.ex:348: TSS.TruckLoads.update_accepted!/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:41: TSSWeb.API.DriverTruckLoadController.update/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.action/2 | |
(tss) lib/tss_web/controllers/api/driver_truck_load_controller.ex:1: TSSWeb.API.DriverTruckLoadController.phoenix_controller_pipeline/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.instrument/4 | |
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1 | |
(tss) lib/plug/error_handler.ex:64: TSSWeb.Router.call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.plug_builder_call/2 | |
(tss) lib/tss_web/endpoint.ex:1: TSSWeb.Endpoint.call/2 | |
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5 | |
test/tss_web/controllers/api/driver_truck_load_controller_test.exs:95: (test) | |
................... | |
87) test call/1 tests TSS.SAP.CreateFreightInvoice.call/1 (TSS.SAP.CreateCustomerFreightInvoiceTest) | |
test/tss/sap/create_customer_freight_invoice_test.exs:174 | |
** (KeyError) key :supplier_id not found in: #Ecto.Association.NotLoaded<association :driver is not loaded> | |
code: List.first(TSS.SAP.CreateFreightInvoice.call(truck_load)) | |
stacktrace: | |
(tss) lib/tss/sap/create_freight_invoice.ex:13: TSS.SAP.CreateFreightInvoice.call/1 | |
test/tss/sap/create_customer_freight_invoice_test.exs:240: (test) | |
88) test call/1 tests TSS.SAP.CreateCustomerFreightInvoice.call/1 (TSS.SAP.CreateCustomerFreightInvoiceTest) | |
test/tss/sap/create_customer_freight_invoice_test.exs:87 | |
** (KeyError) key :well not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: result = TSS.SAP.CreateCustomerFreightInvoice.call(truck_load) | |
stacktrace: | |
(tss) lib/tss/sap/create_customer_freight_invoice.ex:169: TSS.SAP.CreateCustomerFreightInvoice.call/1 | |
test/tss/sap/create_customer_freight_invoice_test.exs:170: (test) | |
............... | |
89) test procurements list_procurements_for_truck_load/1 does not return unavailable procurements (TSS.ProcurementsTest) | |
test/tss/procurements/procurements_test.exs:186 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: procurement_available = Procurements.list_procurements_for_truck_load(load) | |
stacktrace: | |
(tss) lib/tss/procurements/procurements.ex:83: TSS.Procurements.list_procurements_for_truck_load/1 | |
test/tss/procurements/procurements_test.exs:189: (test) | |
90) test procurements list_procurements_for_truck_load/1 does not return deleted options (TSS.ProcurementsTest) | |
test/tss/procurements/procurements_test.exs:177 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: results = Procurements.list_procurements_for_truck_load(load) | |
stacktrace: | |
(tss) lib/tss/procurements/procurements.ex:83: TSS.Procurements.list_procurements_for_truck_load/1 | |
test/tss/procurements/procurements_test.exs:181: (test) | |
.............. | |
91) test procurements list_procurements_for_truck_load/1 returns an undeleted procurment option (TSS.ProcurementsTest) | |
test/tss/procurements/procurements_test.exs:169 | |
** (KeyError) key :well_id not found in: #Ecto.Association.NotLoaded<association :stage is not loaded> | |
code: results = Procurements.list_procurements_for_truck_load(load) | |
stacktrace: | |
(tss) lib/tss/procurements/procurements.ex:83: TSS.Procurements.list_procurements_for_truck_load/1 | |
test/tss/procurements/procurements_test.exs:172: (test) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment