Skip to content

Instantly share code, notes, and snippets.

@dgoldie
Created February 20, 2016 08:13
Show Gist options
  • Save dgoldie/853c69d79f53baae5fcb to your computer and use it in GitHub Desktop.
Save dgoldie/853c69d79f53baae5fcb to your computer and use it in GitHub Desktop.
integration.sh errors
➜ orthrus git:(master) ./integration.sh
==> ex_aws
Compiled lib/ex_aws/config/defaults.ex
Compiled lib/ex_aws.ex
Compiled lib/ex_aws/client.ex
Compiled lib/ex_aws/actions.ex
Compiled lib/ex_aws/auth/utils.ex
Compiled lib/ex_aws/config.ex
Compiled lib/ex_aws/config/auth_cache.ex
Compiled lib/ex_aws/dynamo/encoder.ex
Compiled lib/ex_aws/dynamo/decoder.ex
Compiled lib/ex_aws/dynamo/lazy.ex
Compiled lib/ex_aws/instance_meta.ex
Compiled lib/ex_aws/json/codec.ex
Compiled lib/ex_aws/dynamo/request.ex
Compiled lib/ex_aws/auth.ex
Compiled lib/ex_aws/json/jsx.ex
Compiled lib/ex_aws/dynamo/decodable.ex
Compiled lib/ex_aws/dynamo/client.ex
Compiled lib/ex_aws/kinesis/request.ex
Compiled lib/ex_aws/lambda/request.ex
Compiled lib/ex_aws/kinesis/lazy.ex
Compiled lib/ex_aws/request/http_client.ex
Compiled lib/ex_aws/request/httpoison.ex
Compiled lib/ex_aws/request/httpotion.ex
Compiled lib/ex_aws/request.ex
Compiled lib/ex_aws/s3/lazy.ex
Compiled lib/ex_aws/kinesis/client.ex
Compiled lib/ex_aws/lambda/client.ex
Compiled lib/ex_aws/s3/parsers.ex
Compiled lib/ex_aws/s3/request.ex
Compiled lib/ex_aws/sqs/request.ex
Compiled lib/ex_aws/utils.ex
Compiled lib/ex_aws/s3/utils.ex
Compiled lib/mix/tasks/tail.ex
Compiled lib/ex_aws/sqs/impl.ex
Compiled lib/ex_aws/lambda/impl.ex
Compiled lib/ex_aws/sqs/client.ex
Compiled lib/ex_aws/kinesis/impl.ex
Compiled lib/ex_aws/dynamo/impl.ex
Compiled lib/ex_aws/dynamo/encodable.ex
Compiled lib/ex_aws/s3/client.ex
Compiled lib/ex_aws/sqs.ex
Compiled lib/ex_aws/lambda.ex
Compiled lib/ex_aws/kinesis.ex
lib/ex_aws/s3/impl.ex:227: warning: crypto:md5/1 is deprecated and will be removed in in a future release; use crypto:hash/2
Compiled lib/ex_aws/s3/impl.ex
Compiled lib/ex_aws/dynamo.ex
Compiled lib/ex_aws/s3.ex
Generated ex_aws app
==> arc
Compiled lib/arc.ex
lib/arc/definition.ex:2: warning: variable options is unused
Compiled lib/arc/definition.ex
Compiled lib/arc/definition/storage.ex
lib/arc/actions/url.ex:40: warning: variable options is unused
Compiled lib/arc/actions/url.ex
Compiled lib/arc/actions/delete.ex
Compiled lib/arc/definition/versioning.ex
Compiled lib/arc/processor.ex
Compiled lib/arc/exceptions.ex
lib/arc/storage/local.ex:10: warning: variable options is unused
Compiled lib/arc/file.ex
Compiled lib/arc/storage/local.ex
Compiled lib/arc/transformations/convert.ex
lib/arc/actions/store.ex:20: warning: variable definition is unused
lib/arc/actions/store.ex:20: warning: variable msg is unused
lib/arc/actions/store.ex:20: warning: variable scope is unused
Compiled lib/arc/actions/store.ex
lib/arc/storage/s3.ex:27: warning: variable destination_dir is unused
lib/arc/storage/s3.ex:35: warning: variable options is unused
Compiled lib/arc/storage/s3.ex
lib/mix/tasks/g.ex:16: warning: variable model_destination is unused
Compiled lib/mix/tasks/g.ex
Generated arc app
==> orthrus
Compiled lib/orthrus.ex
Compiled lib/orthrus/encoder.ex
Compiled lib/orthrus/rental/availabilities.ex
Compiled lib/orthrus/video_service.ex
Compiled lib/orthrus/video_service/you_tube.ex
lib/orthrus/booking_engine/price_calculator.ex:20: warning: variable rental is unused
lib/orthrus/booking_engine/price_calculator.ex:49: warning: variable amt is unused
lib/orthrus/booking_engine/price_calculator.ex:7: warning: unused alias Booking
lib/orthrus/booking_engine/price_calculator.ex:6: warning: unused alias Package
Compiled lib/orthrus/booking_engine/price_calculator.ex
web/controllers/image_controller.ex:26: warning: an expression is always required on the right side of ->. Please provide a value after ->
Compiled test_integration/support/orthrus_helpers.ex
Compiled web/channels/user_socket.ex
Compiled test_integration/support/integration_case.ex
Compiled web/controllers/auth.ex
Compiled web/decorators/navigation.ex
Compiled lib/orthrus/repo.ex
web/models/role/scope.ex:10: warning: unused alias Repo
web/models/role/scope.ex:6: warning: unused import Ecto
Compiled web/models/role/scope.ex
Compiled web/models/role.ex
Compiled web/gettext.ex
Compiled web/views/error_helpers.ex
Compiled web/web.ex
Compiled web/models/location.ex
Compiled web/uploaders/rental_image.ex
Compiled web/models/booking_event.ex
web/models/video.ex:31: warning: variable safe is unused
Compiled web/models/video.ex
Compiled web/models/image.ex
Compiled web/models/package.ex
Compiled web/models/user.ex
Compiled web/models/unavailability.ex
Compiled web/models/booking.ex
Compiled web/models/address.ex
web/models/rental.ex:12: warning: unused alias Image
Compiled web/models/rental.ex
web/controllers/booking_controller.ex:26: warning: redefining @doc attribute previously set at line 15
web/controllers/image_controller.ex:26: warning: variable changeset is unused
web/controllers/image_controller.ex:4: warning: unused alias Rental
Compiled web/controllers/image_controller.ex
Compiled web/controllers/page_controller.ex
Compiled web/controllers/session_controller.ex
web/controllers/unavailability_controller.ex:4: warning: unused alias Unavailability
Compiled web/controllers/unavailability_controller.ex
web/controllers/booking_controller.ex:10: warning: unused alias Rental
web/controllers/booking_controller.ex:10: warning: unused alias Role
web/controllers/booking_controller.ex:10: warning: unused alias User
web/controllers/booking_controller.ex:8: warning: unused import Ecto.Model
Compiled web/controllers/booking_controller.ex
web/controllers/browse_controller.ex:9: warning: unused alias Money
Compiled web/controllers/browse_controller.ex
Compiled web/views/changeset_view.ex
web/controllers/video_controller.ex:4: warning: unused alias Rental
Compiled web/controllers/video_controller.ex
Compiled web/views/error_view.ex
web/controllers/rental_controller.ex:8: warning: unused alias Image
Compiled web/controllers/rental_controller.ex
Compiled web/views/image_view.ex
Compiled web/views/booking_view.ex
Compiled web/controllers/user_controller.ex
Compiled web/views/shared_view.ex
Compiled web/views/page_view.ex
Compiled web/views/video_view.ex
Compiled web/views/unavailability_view.ex
Compiled web/views/session_view.ex
Compiled web/views/user_view.ex
Compiled web/views/layout_view.ex
Compiled web/router.ex
Compiled web/views/browse_view.ex
Compiled lib/orthrus/endpoint.ex
Compiled web/views/rental_view.ex
Generated orthrus app
Consolidated Poison.Decoder
Consolidated ExAws.Dynamo.Encodable
Consolidated ExAws.Dynamo.Decodable
Consolidated Timex.Date.Convert
Consolidated Ecto.DataType
Consolidated Phoenix.HTML.FormData
Consolidated DBConnection.Query
Consolidated List.Chars
Consolidated Plug.Exception
Consolidated Ecto.Queryable
Consolidated Phoenix.Param
Consolidated Enumerable
Consolidated Collectable
Consolidated Phoenix.HTML.Safe
Consolidated IEx.Info
Consolidated Poison.Encoder
Consolidated String.Chars
Consolidated Inspect
The database for Orthrus.Repo has been dropped.
The database for Orthrus.Repo has been created.
..00:12:30.858 [error] #PID<0.442.0> running Orthrus.Endpoint terminated
Server: localhost:4001 (http)
Request: GET /sessions/new
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Phoenix.HTML.Form.normalize_form/1
(phoenix_html) lib/phoenix_html/form.ex:239: Phoenix.HTML.Form.normalize_form(%{__struct__: Phoenix.HTML.Form, errors: [], hidden: [], id: "session", impl: Phoenix.HTML.FormData.Plug.Conn, index: nil, model: %{}, name: "session", options: [], params: %{}, source: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{current_user: nil, layout: {Orthrus.LayoutView, "app.html"}}, before_send: [#Function<1.102062170/1 in Plug.CSRFProtection.call/2>, #Function<5.23532776/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.115285023/1 in Plug.Session.before_send/2>, #Function<1.102267470/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.442.0>, params: %{}, path_info: ["sessions", "new"], peer: {{127, 0, 0, 1}, 49379}, port: 4001, private: %{Orthrus.Router => {[], %{}}, :phoenix_action => :new, :phoenix_controller => Orthrus.SessionController, :phoenix_endpoint => Orthrus.Endpoint, :phoenix_flash => %{}, :phoenix_format => "html", :phoenix_layout => {Orthrus.LayoutView, :app}, :phoenix_pipelines => [:browser], :phoenix_route => #Function<28.117092842/1 in Orthrus.Router.match_route/4>, :phoenix_router => Orthrus.Router, :phoenix_template => "new.html", :phoenix_view => Orthrus.SessionView, :plug_session => %{}, :plug_session_fetch => :done}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.0.0 Safari/538.1"}, {"connection", "Keep-Alive"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US,*"}, {"host", "localhost:4001"}], request_path: "/sessions/new", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "mtv9snenv5bl440n4f8j1rhdfrc4ilj4"}, {"x-frame-options", "SAMEORIGIN"}, {"x-xss-protection", "1; mode=block"}, {"x-content-type-options", "nosniff"}], scheme: :http, script_name: [], secret_key_base: "ulxq4xqM1L4iyeimel51pyltgpqy0j3TDTGK8D2Z6S2OwOAIa0cM39T/MPmqirPV", state: :unset, status: nil}})
(phoenix_html) lib/phoenix_html/form.ex:234: Phoenix.HTML.Form.form_for/4
(orthrus) web/templates/session/new.html.eex:2: Orthrus.SessionView."new.html"/1
(orthrus) web/templates/layout/app.html.eex:50: Orthrus.LayoutView."app.html"/1
(phoenix) lib/phoenix/view.ex:344: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:633: Phoenix.Controller.do_render/4
(orthrus) web/controllers/session_controller.ex:1: Orthrus.SessionController.action/2
(orthrus) web/controllers/session_controller.ex:1: Orthrus.SessionController.phoenix_controller_pipeline/2
(orthrus) lib/phoenix/router.ex:261: Orthrus.Router.dispatch/2
(orthrus) web/router.ex:1: Orthrus.Router.do_call/2
(orthrus) lib/orthrus/endpoint.ex:1: Orthrus.Endpoint.phoenix_pipeline/1
(orthrus) lib/phoenix/endpoint/render_errors.ex:34: Orthrus.Endpoint.call/2
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
1) test the rental show page should show a full-calendar (Orthrus.Rental.Test)
test_integration/rental_test.exs:9
** (RuntimeError) Unable to find element with id 'session_username'
stacktrace:
(hound) lib/hound/response_parsers/phantom_js.ex:17: Hound.ResponseParsers.PhantomJs.parse/3
(hound) lib/hound/request_utils.ex:53: Hound.RequestUtils.send_req/4
(hound) lib/hound/helpers/page.ex:49: Hound.Helpers.Page.find_element/3
(hound) lib/hound/helpers/element.ex:70: Hound.Helpers.Element.fill_field/2
(orthrus) test_integration/support/orthrus_helpers.ex:7: Orthrus.Helpers.sign_in_test_user/0
test_integration/rental_test.exs:10
00:12:36.309 [error] #PID<0.450.0> running Orthrus.Endpoint terminated
Server: localhost:4001 (http)
Request: GET /sessions/new
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Phoenix.HTML.Form.normalize_form/1
(phoenix_html) lib/phoenix_html/form.ex:239: Phoenix.HTML.Form.normalize_form(%{__struct__: Phoenix.HTML.Form, errors: [], hidden: [], id: "session", impl: Phoenix.HTML.FormData.Plug.Conn, index: nil, model: %{}, name: "session", options: [], params: %{}, source: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{current_user: nil, layout: {Orthrus.LayoutView, "app.html"}}, before_send: [#Function<1.102062170/1 in Plug.CSRFProtection.call/2>, #Function<5.23532776/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.115285023/1 in Plug.Session.before_send/2>, #Function<1.102267470/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.450.0>, params: %{}, path_info: ["sessions", "new"], peer: {{127, 0, 0, 1}, 49385}, port: 4001, private: %{Orthrus.Router => {[], %{}}, :phoenix_action => :new, :phoenix_controller => Orthrus.SessionController, :phoenix_endpoint => Orthrus.Endpoint, :phoenix_flash => %{}, :phoenix_format => "html", :phoenix_layout => {Orthrus.LayoutView, :app}, :phoenix_pipelines => [:browser], :phoenix_route => #Function<28.117092842/1 in Orthrus.Router.match_route/4>, :phoenix_router => Orthrus.Router, :phoenix_template => "new.html", :phoenix_view => Orthrus.SessionView, :plug_session => %{}, :plug_session_fetch => :done}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.0.0 Safari/538.1"}, {"connection", "Keep-Alive"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US,*"}, {"host", "localhost:4001"}], request_path: "/sessions/new", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "31gi8127vfg0sgam6t72229hu0c94ecp"}, {"x-frame-options", "SAMEORIGIN"}, {"x-xss-protection", "1; mode=block"}, {"x-content-type-options", "nosniff"}], scheme: :http, script_name: [], secret_key_base: "ulxq4xqM1L4iyeimel51pyltgpqy0j3TDTGK8D2Z6S2OwOAIa0cM39T/MPmqirPV", state: :unset, status: nil}})
(phoenix_html) lib/phoenix_html/form.ex:234: Phoenix.HTML.Form.form_for/4
(orthrus) web/templates/session/new.html.eex:2: Orthrus.SessionView."new.html"/1
(orthrus) web/templates/layout/app.html.eex:50: Orthrus.LayoutView."app.html"/1
(phoenix) lib/phoenix/view.ex:344: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:633: Phoenix.Controller.do_render/4
(orthrus) web/controllers/session_controller.ex:1: Orthrus.SessionController.action/2
(orthrus) web/controllers/session_controller.ex:1: Orthrus.SessionController.phoenix_controller_pipeline/2
(orthrus) lib/phoenix/router.ex:261: Orthrus.Router.dispatch/2
(orthrus) web/router.ex:1: Orthrus.Router.do_call/2
(orthrus) lib/orthrus/endpoint.ex:1: Orthrus.Endpoint.phoenix_pipeline/1
(orthrus) lib/phoenix/endpoint/render_errors.ex:34: Orthrus.Endpoint.call/2
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
2) test it can login (Orthrus.SignInOut.Test)
test_integration/sign_in_out_test.exs:4
** (RuntimeError) Unable to find element with id 'session_username'
stacktrace:
(hound) lib/hound/response_parsers/phantom_js.ex:17: Hound.ResponseParsers.PhantomJs.parse/3
(hound) lib/hound/request_utils.ex:53: Hound.RequestUtils.send_req/4
(hound) lib/hound/helpers/page.ex:49: Hound.Helpers.Page.find_element/3
(hound) lib/hound/helpers/element.ex:70: Hound.Helpers.Element.fill_field/2
(orthrus) test_integration/support/orthrus_helpers.ex:7: Orthrus.Helpers.sign_in_test_user/0
test_integration/sign_in_out_test.exs:5
00:12:41.646 [error] #PID<0.452.0> running Orthrus.Endpoint terminated
Server: localhost:4001 (http)
Request: GET /sessions/new
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Phoenix.HTML.Form.normalize_form/1
(phoenix_html) lib/phoenix_html/form.ex:239: Phoenix.HTML.Form.normalize_form(%{__struct__: Phoenix.HTML.Form, errors: [], hidden: [], id: "session", impl: Phoenix.HTML.FormData.Plug.Conn, index: nil, model: %{}, name: "session", options: [], params: %{}, source: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{current_user: nil, layout: {Orthrus.LayoutView, "app.html"}}, before_send: [#Function<1.102062170/1 in Plug.CSRFProtection.call/2>, #Function<5.23532776/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.115285023/1 in Plug.Session.before_send/2>, #Function<1.102267470/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.452.0>, params: %{}, path_info: ["sessions", "new"], peer: {{127, 0, 0, 1}, 49392}, port: 4001, private: %{Orthrus.Router => {[], %{}}, :phoenix_action => :new, :phoenix_controller => Orthrus.SessionController, :phoenix_endpoint => Orthrus.Endpoint, :phoenix_flash => %{}, :phoenix_format => "html", :phoenix_layout => {Orthrus.LayoutView, :app}, :phoenix_pipelines => [:browser], :phoenix_route => #Function<28.117092842/1 in Orthrus.Router.match_route/4>, :phoenix_router => Orthrus.Router, :phoenix_template => "new.html", :phoenix_view => Orthrus.SessionView, :plug_session => %{}, :plug_session_fetch => :done}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.0.0 Safari/538.1"}, {"connection", "Keep-Alive"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US,*"}, {"host", "localhost:4001"}], request_path: "/sessions/new", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "opg6thchvqqafmhbgtisio219fqmnine"}, {"x-frame-options", "SAMEORIGIN"}, {"x-xss-protection", "1; mode=block"}, {"x-content-type-options", "nosniff"}], scheme: :http, script_name: [], secret_key_base: "ulxq4xqM1L4iyeimel51pyltgpqy0j3TDTGK8D2Z6S2OwOAIa0cM39T/MPmqirPV", state: :unset, status: nil}})
(phoenix_html) lib/phoenix_html/form.ex:234: Phoenix.HTML.Form.form_for/4
(orthrus) web/templates/session/new.html.eex:2: Orthrus.SessionView."new.html"/1
(orthrus) web/templates/layout/app.html.eex:50: Orthrus.LayoutView."app.html"/1
(phoenix) lib/phoenix/view.ex:344: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:633: Phoenix.Controller.do_render/4
(orthrus) web/controllers/session_controller.ex:1: Orthrus.SessionController.action/2
(orthrus) web/controllers/session_controller.ex:1: Orthrus.SessionController.phoenix_controller_pipeline/2
(orthrus) lib/phoenix/router.ex:261: Orthrus.Router.dispatch/2
(orthrus) web/router.ex:1: Orthrus.Router.do_call/2
(orthrus) lib/orthrus/endpoint.ex:1: Orthrus.Endpoint.phoenix_pipeline/1
(orthrus) lib/phoenix/endpoint/render_errors.ex:34: Orthrus.Endpoint.call/2
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
3) test it can logout (Orthrus.SignInOut.Test)
test_integration/sign_in_out_test.exs:9
** (RuntimeError) Unable to find element with id 'session_username'
stacktrace:
(hound) lib/hound/response_parsers/phantom_js.ex:17: Hound.ResponseParsers.PhantomJs.parse/3
(hound) lib/hound/request_utils.ex:53: Hound.RequestUtils.send_req/4
(hound) lib/hound/helpers/page.ex:49: Hound.Helpers.Page.find_element/3
(hound) lib/hound/helpers/element.ex:70: Hound.Helpers.Element.fill_field/2
(orthrus) test_integration/support/orthrus_helpers.ex:7: Orthrus.Helpers.sign_in_test_user/0
test_integration/sign_in_out_test.exs:10
..00:12:47.443 [error] #PID<0.464.0> running Orthrus.Endpoint terminated
Server: localhost:4001 (http)
Request: GET /browse
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Phoenix.HTML.Form.normalize_form/1
(phoenix_html) lib/phoenix_html/form.ex:239: Phoenix.HTML.Form.normalize_form(%{__struct__: Phoenix.HTML.Form, errors: [], hidden: [], id: "search", impl: Phoenix.HTML.FormData.Plug.Conn, index: nil, model: %{}, name: "search", options: [method: :get, class: "form-inline", id: "search-form"], params: %{}, source: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{address: "", current_user: nil, distance: 10, keywords: "", layout: {Orthrus.LayoutView, "app.html"}, location: "", rentals: [%Orthrus.Rental{__meta__: #Ecto.Schema.Metadata<:loaded>, address: %Orthrus.Address{__meta__: #Ecto.Schema.Metadata<:loaded>, address: "450 N Mathilda Ave, Sunnyvale CA", id: 1, inserted_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, location: nil, location_string: nil, rental: #Ecto.Association.NotLoaded<association :rental is not loaded>, rental_id: 1, updated_at: #Ecto.DateTime<2016-02-20T08:12:30Z>}, bookings: #Ecto.Association.NotLoaded<association :bookings is not loaded>, description: "A Rental", id: 1, images: [], inserted_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, location: nil, location_string: nil, owner: %Orthrus.User{__meta__: #Ecto.Schema.Metadata<:loaded>, email: "test@example.com", id: 1, inserted_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, name: "test", password: nil, password_hash: "$2b$04$7MJnCzGldu.SRdqk1VRALO7CqiY4DtC2J/ZO5m1xGhtcJ6HBP8npe", rentals: #Ecto.Association.NotLoaded<association :rentals is not loaded>, role: :seller, updated_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, username: "test"}, owner_id: 1, packages: #Ecto.Association.NotLoaded<association :packages is not loaded>, title: "A Rental", unavailable_date_ranges: #Ecto.Association.NotLoaded<association :unavailable_date_ranges is not loaded>, updated_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, videos: []}]}, before_send: [#Function<1.102062170/1 in Plug.CSRFProtection.call/2>, #Function<5.23532776/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.115285023/1 in Plug.Session.before_send/2>, #Function<1.102267470/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.464.0>, params: %{}, path_info: ["browse"], peer: {{127, 0, 0, 1}, 49409}, port: 4001, private: %{Orthrus.Router => {[], %{}}, :phoenix_action => :index, :phoenix_controller => Orthrus.BrowseController, :phoenix_endpoint => Orthrus.Endpoint, :phoenix_flash => %{}, :phoenix_format => "html", :phoenix_layout => {Orthrus.LayoutView, :app}, :phoenix_pipelines => [:browser], :phoenix_route => #Function<23.117092842/1 in Orthrus.Router.match_route/4>, :phoenix_router => Orthrus.Router, :phoenix_template => "index.html", :phoenix_view => Orthrus.BrowseView, :plug_session => %{}, :plug_session_fetch => :done}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.0.0 Safari/538.1"}, {"connection", "Keep-Alive"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US,*"}, {"host", "localhost:4001"}], request_path: "/browse", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "vn7cvvl93ak0a12tcr4ndkos9hgasb0p"}, {"x-frame-options", "SAMEORIGIN"}, {"x-xss-protection", "1; mode=block"}, {"x-content-type-options", "nosniff"}], scheme: :http, script_name: [], secret_key_base: "ulxq4xqM1L4iyeimel51pyltgpqy0j3TDTGK8D2Z6S2OwOAIa0cM39T/MPmqirPV", state: :unset, status: nil}})
(phoenix_html) lib/phoenix_html/form.ex:234: Phoenix.HTML.Form.form_for/4
(orthrus) web/templates/browse/index.html.eex:3: Orthrus.BrowseView."index.html"/1
(orthrus) web/templates/layout/app.html.eex:50: Orthrus.LayoutView."app.html"/1
(phoenix) lib/phoenix/view.ex:344: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:633: Phoenix.Controller.do_render/4
(orthrus) web/controllers/browse_controller.ex:1: Orthrus.BrowseController.action/2
(orthrus) web/controllers/browse_controller.ex:1: Orthrus.BrowseController.phoenix_controller_pipeline/2
(orthrus) lib/phoenix/router.ex:261: Orthrus.Router.dispatch/2
(orthrus) web/router.ex:1: Orthrus.Router.do_call/2
(orthrus) lib/orthrus/endpoint.ex:1: Orthrus.Endpoint.phoenix_pipeline/1
(orthrus) lib/phoenix/endpoint/render_errors.ex:34: Orthrus.Endpoint.call/2
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
4) test it can browse rentals available on a specific date (Orthrus.Browse.Test)
test_integration/browse_test.exs:4
** (RuntimeError) Unable to find element with id 'search_distance'
stacktrace:
(hound) lib/hound/response_parsers/phantom_js.ex:17: Hound.ResponseParsers.PhantomJs.parse/3
(hound) lib/hound/request_utils.ex:53: Hound.RequestUtils.send_req/4
(hound) lib/hound/helpers/page.ex:49: Hound.Helpers.Page.find_element/3
(hound) lib/hound/helpers/element.ex:70: Hound.Helpers.Element.fill_field/2
test_integration/browse_test.exs:7
00:12:52.815 [error] #PID<0.466.0> running Orthrus.Endpoint terminated
Server: localhost:4001 (http)
Request: GET /browse
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Phoenix.HTML.Form.normalize_form/1
(phoenix_html) lib/phoenix_html/form.ex:239: Phoenix.HTML.Form.normalize_form(%{__struct__: Phoenix.HTML.Form, errors: [], hidden: [], id: "search", impl: Phoenix.HTML.FormData.Plug.Conn, index: nil, model: %{}, name: "search", options: [method: :get, class: "form-inline", id: "search-form"], params: %{}, source: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{address: "", current_user: nil, distance: 10, keywords: "", layout: {Orthrus.LayoutView, "app.html"}, location: "", rentals: [%Orthrus.Rental{__meta__: #Ecto.Schema.Metadata<:loaded>, address: %Orthrus.Address{__meta__: #Ecto.Schema.Metadata<:loaded>, address: "450 N Mathilda Ave, Sunnyvale CA", id: 1, inserted_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, location: nil, location_string: nil, rental: #Ecto.Association.NotLoaded<association :rental is not loaded>, rental_id: 1, updated_at: #Ecto.DateTime<2016-02-20T08:12:30Z>}, bookings: #Ecto.Association.NotLoaded<association :bookings is not loaded>, description: "A Rental", id: 1, images: [], inserted_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, location: nil, location_string: nil, owner: %Orthrus.User{__meta__: #Ecto.Schema.Metadata<:loaded>, email: "test@example.com", id: 1, inserted_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, name: "test", password: nil, password_hash: "$2b$04$7MJnCzGldu.SRdqk1VRALO7CqiY4DtC2J/ZO5m1xGhtcJ6HBP8npe", rentals: #Ecto.Association.NotLoaded<association :rentals is not loaded>, role: :seller, updated_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, username: "test"}, owner_id: 1, packages: #Ecto.Association.NotLoaded<association :packages is not loaded>, title: "A Rental", unavailable_date_ranges: #Ecto.Association.NotLoaded<association :unavailable_date_ranges is not loaded>, updated_at: #Ecto.DateTime<2016-02-20T08:12:30Z>, videos: []}]}, before_send: [#Function<1.102062170/1 in Plug.CSRFProtection.call/2>, #Function<5.23532776/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.115285023/1 in Plug.Session.before_send/2>, #Function<1.102267470/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.466.0>, params: %{}, path_info: ["browse"], peer: {{127, 0, 0, 1}, 49416}, port: 4001, private: %{Orthrus.Router => {[], %{}}, :phoenix_action => :index, :phoenix_controller => Orthrus.BrowseController, :phoenix_endpoint => Orthrus.Endpoint, :phoenix_flash => %{}, :phoenix_format => "html", :phoenix_layout => {Orthrus.LayoutView, :app}, :phoenix_pipelines => [:browser], :phoenix_route => #Function<23.117092842/1 in Orthrus.Router.match_route/4>, :phoenix_router => Orthrus.Router, :phoenix_template => "index.html", :phoenix_view => Orthrus.BrowseView, :plug_session => %{}, :plug_session_fetch => :done}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.0.0 Safari/538.1"}, {"connection", "Keep-Alive"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US,*"}, {"host", "localhost:4001"}], request_path: "/browse", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "sm4ig8b09i4nlcockqsvi7rnhjtel5hk"}, {"x-frame-options", "SAMEORIGIN"}, {"x-xss-protection", "1; mode=block"}, {"x-content-type-options", "nosniff"}], scheme: :http, script_name: [], secret_key_base: "ulxq4xqM1L4iyeimel51pyltgpqy0j3TDTGK8D2Z6S2OwOAIa0cM39T/MPmqirPV", state: :unset, status: nil}})
(phoenix_html) lib/phoenix_html/form.ex:234: Phoenix.HTML.Form.form_for/4
(orthrus) web/templates/browse/index.html.eex:3: Orthrus.BrowseView."index.html"/1
(orthrus) web/templates/layout/app.html.eex:50: Orthrus.LayoutView."app.html"/1
(phoenix) lib/phoenix/view.ex:344: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:633: Phoenix.Controller.do_render/4
(orthrus) web/controllers/browse_controller.ex:1: Orthrus.BrowseController.action/2
(orthrus) web/controllers/browse_controller.ex:1: Orthrus.BrowseController.phoenix_controller_pipeline/2
(orthrus) lib/phoenix/router.ex:261: Orthrus.Router.dispatch/2
(orthrus) web/router.ex:1: Orthrus.Router.do_call/2
(orthrus) lib/orthrus/endpoint.ex:1: Orthrus.Endpoint.phoenix_pipeline/1
(orthrus) lib/phoenix/endpoint/render_errors.ex:34: Orthrus.Endpoint.call/2
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
5) test it won't find rentals when browsing for an available date range (Orthrus.Browse.Test)
test_integration/browse_test.exs:15
** (RuntimeError) Unable to find element with id 'search_distance'
stacktrace:
(hound) lib/hound/response_parsers/phantom_js.ex:17: Hound.ResponseParsers.PhantomJs.parse/3
(hound) lib/hound/request_utils.ex:53: Hound.RequestUtils.send_req/4
(hound) lib/hound/helpers/page.ex:49: Hound.Helpers.Page.find_element/3
(hound) lib/hound/helpers/element.ex:70: Hound.Helpers.Element.fill_field/2
test_integration/browse_test.exs:18
Finished in 28.0 seconds (0.2s on load, 27.7s on tests)
9 tests, 5 failures
Randomized with seed 375281
➜ orthrus git:(master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment