Skip to content

Instantly share code, notes, and snippets.

@andrusha
Created November 25, 2017 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrusha/48f0633545a1681f7f30437092ac8b92 to your computer and use it in GitHub Desktop.
Save andrusha/48f0633545a1681f7f30437092ac8b92 to your computer and use it in GitHub Desktop.
KastleX test output
14:52:58.938 [info] HTTP port: 4001
14:52:58.938 [info] Permissions file path: permissions.yml
14:52:58.938 [info] Passwd file path: passwd.yml
14:52:58.938 [info] Consumer groups cache directory: priv
14:52:58.948 [info] Kafka cluster: [{'localhost', 9092}]
14:52:58.948 [info] brod producer config: []
14:52:58.950 [info] brod ssl config: false
14:52:58.950 [info] not using sasl auth
14:52:58.953 [info] Zookeeper cluster: [{'localhost', 2181}]
14:52:58.953 [info] Reloading permissions from permissions.yml
14:52:58.967 [info] Reloading credentials from passwd.yml
14:52:58.968 [info] Token storage is disabled
14:52:59.012 [info] Connecting to {127, 0, 0, 1}:2181
14:52:59.012 [info] Connected {127, 0, 0, 1}:2181, sending connect command
14:52:59.034 [info] Connection to {127, 0, 0, 1}:2181 is established
14:52:59.112 [info] __consumer_offsets topic not found, skip cg_status_collector
14:52:59.311 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617979-309823-1
14:52:59.312 [info] Reloading credentials from passwd.yml
14:53:04.052 [error] client :kastlex failed to connect to 172.18.0.3:9092
reason:{:connection_failure, :timeout}
14:53:04.058 [info] #PID<0.274.0> is terminating: {{:badmatch, {:error, {:connection_failure, :timeout}}}, [{Kastlex.OffsetsCache, :refresh_leader_offsets, 3, [file: 'lib/kastlex/offsets_cache.ex', line: 78]}, {Enum, :"-each/2-fun-0-", 3, [file: 'lib/enum.ex', line: 681]}, {:lists, :foldl, 3, [file: 'lists.erl', line: 1263]}, {Enum, :each, 2, [file: 'lib/enum.ex', line: 1843]}, {Kastlex.OffsetsCache, :handle_info, 2, [file: 'lib/kastlex/offsets_cache.ex', line: 41]}, {:gen_server, :try_dispatch, 4, [file: 'gen_server.erl', line: 616]}, {:gen_server, :handle_msg, 6, [file: 'gen_server.erl', line: 686]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}
14:53:04.097 [error] GenServer Kastlex.OffsetsCache terminating
** (MatchError) no match of right hand side value: {:error, {:connection_failure, :timeout}}
(kastlex) lib/kastlex/offsets_cache.ex:78: Kastlex.OffsetsCache.refresh_leader_offsets/3
(elixir) lib/enum.ex:681: anonymous fn/3 in Enum.each/2
(stdlib) lists.erl:1263: :lists.foldl/3
(elixir) lib/enum.ex:1843: Enum.each/2
(kastlex) lib/kastlex/offsets_cache.ex:41: Kastlex.OffsetsCache.handle_info/2
(stdlib) gen_server.erl:616: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:686: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: :refresh
State: %{brod_client_id: :kastlex, refresh_timeout_ms: 10000}
14:53:04.097 [error] :kastlex (re)connect to 172.18.0.3:9092 aborted, last failure reason:{:connection_failure, :timeout}
14:53:04.097 [warn] Failed to (re)init socket, reason:
{:connection_failure, :timeout}
14:53:04.579 [error] :kastlex (re)connect to 172.18.0.3:9092 aborted, last failure reason:{:connection_failure, :timeout}
14:53:04.580 [warn] Failed to (re)init socket, reason:
{:connection_failure, :timeout}
14:53:10.083 [error] client :kastlex failed to connect to 172.18.0.3:9092
reason:{:connection_failure, :timeout}
14:53:10.084 [warn] Failed to (re)init socket, reason:
{:connection_failure, :timeout}
14:53:10.587 [error] :kastlex (re)connect to 172.18.0.3:9092 aborted, last failure reason:{:connection_failure, :timeout}
14:53:10.587 [warn] Failed to (re)init socket, reason:
{:connection_failure, :timeout}
14:53:10.594 [error] GenServer #PID<0.367.0> terminating
** (stop) {:reached_max_retries, :no_leader}
(brod) src/brod_producer_buffer.erl:341: :brod_producer_buffer.rebuffer_or_crash/3
(brod) src/brod_producer_buffer.erl:329: :brod_producer_buffer.do_send/4
(brod) src/brod_producer.erl:436: :brod_producer.maybe_produce/1
(brod) src/brod_producer.erl:278: :brod_producer.handle_info/2
(stdlib) gen_server.erl:616: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:686: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: :retry
State: {:state, #PID<0.259.0>, "kastlex", 0, :undefined, :undefined, {:buf, 512, 1, 1048576, 3, 0, 0, #Function<1.86488316/3 in :brod_producer.init/1>, 1, 0, {[], []}, {[], [{:req, {:brod_call_ref, #PID<0.362.0>, #PID<0.367.0>, #Reference<0.1742399092.3068395526.147631>}, #Function<0.18721703/0 in :brod_producer_buffer.add/4>, 4, 1511617984076, 3}]}, []}, 500, #Reference<0.1742399092.3068395526.147669>, :undefined, 0}
14:53:10.635 [info] request_id=v87lcthgrldrulnrr415ggs4cla295kk remote_ip=127.0.0.1 POST /api/v1/messages/kastlex
14:53:10.657 [debug] request_id=v87lcthgrldrulnrr415ggs4cla295kk remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.produce/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.657 [error] request_id=v87lcthgrldrulnrr415ggs4cla295kk remote_ip=127.0.0.1 {:error, {:producer_down, :noproc}}
14:53:10.667 [error] request_id=v87lcthgrldrulnrr415ggs4cla295kk remote_ip=127.0.0.1 %{kind: :error, reason: %Poison.EncodeError{message: nil, value: {:producer_down, :noproc}}, stack: [{Poison.Encoder.Any, :encode, 2, [file: 'lib/poison/encoder.ex', line: 383]}, {Poison.Encoder.Map, :"-encode/3-fun-1-", 4, [file: 'lib/poison/encoder.ex', line: 227]}, {Poison.Encoder.Map, :"-encode/3-lists^foldl/2-0-", 3, [file: 'lib/poison/encoder.ex', line: 228]}, {Poison.Encoder.Map, :encode, 3, [file: 'lib/poison/encoder.ex', line: 228]}, {Poison, :encode!, 2, [file: 'lib/poison.ex', line: 41]}, {Kastlex.Helper, :send_json, 3, [file: 'web/controllers/helper.ex', line: 9]}, {Kastlex.API.V1.MessageController, :action, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.API.V1.MessageController, :phoenix_controller_pipeline, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.Endpoint, :instrument, 4, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.Router, :__call__, 1, [file: 'lib/phoenix/router.ex', line: 278]}, {Kastlex.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 64]}, {Kastlex.Endpoint, :plug_builder_call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Kastlex.Endpoint, :call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.ConnTest, :dispatch, 5, [file: 'lib/phoenix/test/conn_test.ex', line: 224]}, {Kastlex.MessageControllerTest, :"test creates resource", 1, [file: 'test/controllers/message_controller_test.exs', line: 154]}, {ExUnit.Runner, :exec_test, 1, [file: 'lib/ex_unit/runner.ex', line: 292]}, {:timer, :tc, 1, [file: 'timer.erl', line: 166]}, {ExUnit.Runner, :"-spawn_test/3-fun-1-", 3, [file: 'lib/ex_unit/runner.ex', line: 240]}]}
14:53:10.667 [info] request_id=v87lcthgrldrulnrr415ggs4cla295kk remote_ip=127.0.0.1 Sent 500 in 31ms
14:53:10.672 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-671667-1
14:53:10.673 [info] Reloading credentials from passwd.yml
14:53:10.674 [info] request_id=c87opnkt4lceqflua5rgu3mtrcm6pu9a remote_ip=127.0.0.1 POST /api/v1/messages/kastlex
14:53:10.675 [debug] request_id=c87opnkt4lceqflua5rgu3mtrcm6pu9a remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.produce/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.675 [error] request_id=c87opnkt4lceqflua5rgu3mtrcm6pu9a remote_ip=127.0.0.1 Unathorized: user=[name: "wrong", list_brokers: true] action=produce method=POST params=%{"topic" => "kastlex"}
14:53:10.675 [info] request_id=c87opnkt4lceqflua5rgu3mtrcm6pu9a remote_ip=127.0.0.1 Sent 403 in 283µs
14:53:10.675 [debug] request_id=c87opnkt4lceqflua5rgu3mtrcm6pu9a remote_ip=127.0.0.1 Kastlex.API.V1.MessageController halted in Kastlex.Plug.EnsurePermissions.call/2
14:53:10.676 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-675721-1
14:53:10.677 [info] Reloading credentials from passwd.yml
14:53:10.680 [info] request_id=2l1lqmq8jhocv75v1e09h0lkbbtlreah remote_ip=127.0.0.1 GET /api/v1/messages/kastlex/0
1) test creates resource (Kastlex.MessageControllerTest)
test/controllers/message_controller_test.exs:149
** (Poison.EncodeError) unable to encode value: {:producer_down, :noproc}
code: |> post(api_v1_message_path(build_conn(), :produce, params[:topic]), "test")
stacktrace:
(poison) lib/poison/encoder.ex:383: Poison.Encoder.Any.encode/2
(poison) lib/poison/encoder.ex:227: anonymous fn/4 in Poison.Encoder.Map.encode/3
(poison) lib/poison/encoder.ex:228: Poison.Encoder.Map."-encode/3-lists^foldl/2-0-"/3
(poison) lib/poison/encoder.ex:228: Poison.Encoder.Map.encode/3
(poison) lib/poison.ex:41: Poison.encode!/2
(kastlex) web/controllers/helper.ex:9: Kastlex.Helper.send_json/3
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.action/2
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.phoenix_controller_pipeline/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
(kastlex) lib/plug/error_handler.ex:64: Kastlex.Router.call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.plug_builder_call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.call/2
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
test/controllers/message_controller_test.exs:154: (test)
.14:53:10.687 [debug] request_id=2l1lqmq8jhocv75v1e09h0lkbbtlreah remote_ip=127.0.0.1 accept header: "application/json"
14:53:10.687 [debug] request_id=2l1lqmq8jhocv75v1e09h0lkbbtlreah remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.687 [error] request_id=2l1lqmq8jhocv75v1e09h0lkbbtlreah remote_ip=127.0.0.1 Unathorized: user=[name: "wrong_topic", fetch: ["wrong_topic"], produce: ["wrong_topic"]] action=fetch method=GET params=%{"partition" => "0", "topic" => "kastlex"}
14:53:10.687 [info] request_id=2l1lqmq8jhocv75v1e09h0lkbbtlreah remote_ip=127.0.0.1 Sent 403 in 7ms
14:53:10.687 [debug] request_id=2l1lqmq8jhocv75v1e09h0lkbbtlreah remote_ip=127.0.0.1 Kastlex.API.V1.MessageController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:10.688 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-688212-1
14:53:10.689 [info] Reloading credentials from passwd.yml
14:53:10.690 [info] request_id=fglhcbh38ulsidnnmo0u7urmg6nhp1hr remote_ip=127.0.0.1 GET /api/v1/messages/kastlex/0
.14:53:10.690 [debug] request_id=fglhcbh38ulsidnnmo0u7urmg6nhp1hr remote_ip=127.0.0.1 accept header: "application/json"
14:53:10.690 [debug] request_id=fglhcbh38ulsidnnmo0u7urmg6nhp1hr remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.690 [error] request_id=fglhcbh38ulsidnnmo0u7urmg6nhp1hr remote_ip=127.0.0.1 Unathorized: user=[] action=fetch method=GET params=%{"partition" => "0", "topic" => "kastlex"}
14:53:10.690 [info] request_id=fglhcbh38ulsidnnmo0u7urmg6nhp1hr remote_ip=127.0.0.1 Sent 403 in 167µs
14:53:10.690 [debug] request_id=fglhcbh38ulsidnnmo0u7urmg6nhp1hr remote_ip=127.0.0.1 Kastlex.API.V1.MessageController halted in Kastlex.Plug.EnsurePermissions.call/2
14:53:10.691 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-691246-1
14:53:10.693 [info] Reloading credentials from passwd.yml
14:53:10.695 [info] request_id=9h8run7s0co8g18j6bc2pr4qqftpp1nc remote_ip=127.0.0.1 GET /api/v1/messages/kastlex/0
14:53:10.695 [debug] request_id=9h8run7s0co8g18j6bc2pr4qqftpp1nc remote_ip=127.0.0.1 accept header: "application/binary"
14:53:10.695 [debug] request_id=9h8run7s0co8g18j6bc2pr4qqftpp1nc remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.696 [error] :kastlex (re)connect to 172.18.0.3:9092 aborted, last failure reason:{:connection_failure, :timeout}
14:53:10.699 [error] request_id=9h8run7s0co8g18j6bc2pr4qqftpp1nc remote_ip=127.0.0.1 %{kind: :error, reason: %CaseClauseError{term: {:error, {:connection_failure, :timeout}}}, stack: [{Kastlex.API.V1.MessageController, :fetch, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 76]}, {Kastlex.API.V1.MessageController, :action, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.API.V1.MessageController, :phoenix_controller_pipeline, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.Endpoint, :instrument, 4, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.Router, :__call__, 1, [file: 'lib/phoenix/router.ex', line: 278]}, {Kastlex.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 64]}, {Kastlex.Endpoint, :plug_builder_call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Kastlex.Endpoint, :call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.ConnTest, :dispatch, 5, [file: 'lib/phoenix/test/conn_test.ex', line: 224]}, {Kastlex.MessageControllerTest, :"test show chosen resource when accepting binary", 1, [file: 'test/controllers/message_controller_test.exs', line: 101]}, {ExUnit.Runner, :exec_test, 1, [file: 'lib/ex_unit/runner.ex', line: 292]}, {:timer, :tc, 1, [file: 'timer.erl', line: 166]}, {ExUnit.Runner, :"-spawn_test/3-fun-1-", 3, [file: 'lib/ex_unit/runner.ex', line: 240]}]}
14:53:10.699 [info] request_id=9h8run7s0co8g18j6bc2pr4qqftpp1nc remote_ip=127.0.0.1 Sent 500 in 4ms
14:53:10.700 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-699893-1
2) test show chosen resource when accepting binary (Kastlex.MessageControllerTest)
test/controllers/message_controller_test.exs:96
** (CaseClauseError) no case clause matching: {:error, {:connection_failure, :timeout}}
code: |> get(api_v1_message_path(build_conn(), :fetch, params[:topic], params[:partition]))
stacktrace:
(kastlex) web/controllers/api/v1/message_controller.ex:76: Kastlex.API.V1.MessageController.fetch/2
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.action/2
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.phoenix_controller_pipeline/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
(kastlex) lib/plug/error_handler.ex:64: Kastlex.Router.call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.plug_builder_call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.call/2
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
test/controllers/message_controller_test.exs:101: (test)
14:53:10.701 [info] Reloading credentials from passwd.yml
14:53:10.702 [info] request_id=83rv6rup04g65e8knq5qaev8gjqp767d remote_ip=127.0.0.1 GET /api/v1/messages/kastlex/0
14:53:10.702 [debug] request_id=83rv6rup04g65e8knq5qaev8gjqp767d remote_ip=127.0.0.1 accept header: "application/json"
14:53:10.702 [debug] request_id=83rv6rup04g65e8knq5qaev8gjqp767d remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.702 [error] request_id=83rv6rup04g65e8knq5qaev8gjqp767d remote_ip=127.0.0.1 Unathorized: user=[name: "wrong", list_brokers: true] action=fetch method=GET params=%{"partition" => "0", "topic" => "kastlex"}
14:53:10.702 [info] request_id=83rv6rup04g65e8knq5qaev8gjqp767d remote_ip=127.0.0.1 Sent 403 in 368µs
14:53:10.702 [debug] request_id=83rv6rup04g65e8knq5qaev8gjqp767d remote_ip=127.0.0.1 Kastlex.API.V1.MessageController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:10.703 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-703139-6
14:53:10.704 [info] Reloading credentials from passwd.yml
14:53:10.705 [info] request_id=r86iip7469ai526kd24h9tasotb80hs3 remote_ip=127.0.0.1 GET /api/v2/messages/kastlex/0
14:53:10.705 [debug] request_id=r86iip7469ai526kd24h9tasotb80hs3 remote_ip=127.0.0.1 accept header: "application/json"
14:53:10.705 [debug] request_id=r86iip7469ai526kd24h9tasotb80hs3 remote_ip=127.0.0.1 Processing with Kastlex.API.V2.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.707 [error] :kastlex (re)connect to 172.18.0.3:9092 aborted, last failure reason:{:connection_failure, :timeout}
14:53:10.707 [error] request_id=r86iip7469ai526kd24h9tasotb80hs3 remote_ip=127.0.0.1 %{kind: :error, reason: %CaseClauseError{term: {:error, {:connection_failure, :timeout}}}, stack: [{Kastlex.API.V2.MessageController, :fetch, 2, [file: 'web/controllers/api/v2/message_controller.ex', line: 76]}, {Kastlex.API.V2.MessageController, :action, 2, [file: 'web/controllers/api/v2/message_controller.ex', line: 1]}, {Kastlex.API.V2.MessageController, :phoenix_controller_pipeline, 2, [file: 'web/controllers/api/v2/message_controller.ex', line: 1]}, {Kastlex.Endpoint, :instrument, 4, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.Router, :__call__, 1, [file: 'lib/phoenix/router.ex', line: 278]}, {Kastlex.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 64]}, {Kastlex.Endpoint, :plug_builder_call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Kastlex.Endpoint, :call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.ConnTest, :dispatch, 5, [file: 'lib/phoenix/test/conn_test.ex', line: 224]}, {Kastlex.MessageControllerTest, :"test show chosen resource v2", 1, [file: 'test/controllers/message_controller_test.exs', line: 56]}, {ExUnit.Runner, :exec_test, 1, [file: 'lib/ex_unit/runner.ex', line: 292]}, {:timer, :tc, 1, [file: 'timer.erl', line: 166]}, {ExUnit.Runner, :"-spawn_test/3-fun-1-", 3, [file: 'lib/ex_unit/runner.ex', line: 240]}]}
14:53:10.707 [info] request_id=r86iip7469ai526kd24h9tasotb80hs3 remote_ip=127.0.0.1 Sent 500 in 2ms
3) test show chosen resource v2 (Kastlex.MessageControllerTest)
test/controllers/message_controller_test.exs:51
** (CaseClauseError) no case clause matching: {:error, {:connection_failure, :timeout}}
code: |> get(api_v2_message_path(build_conn(), :fetch, params[:topic], params[:partition]))
stacktrace:
(kastlex) web/controllers/api/v2/message_controller.ex:76: Kastlex.API.V2.MessageController.fetch/2
(kastlex) web/controllers/api/v2/message_controller.ex:1: Kastlex.API.V2.MessageController.action/2
(kastlex) web/controllers/api/v2/message_controller.ex:1: Kastlex.API.V2.MessageController.phoenix_controller_pipeline/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
(kastlex) lib/plug/error_handler.ex:64: Kastlex.Router.call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.plug_builder_call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.call/2
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
test/controllers/message_controller_test.exs:56: (test)
14:53:10.709 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-708317-6
14:53:10.711 [info] Reloading credentials from passwd.yml
14:53:10.713 [info] request_id=0bl7r1au9fo3n9sqrp92uit25qfjlr43 remote_ip=127.0.0.1 POST /api/v1/messages/kastlex
14:53:10.713 [debug] request_id=0bl7r1au9fo3n9sqrp92uit25qfjlr43 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.produce/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.713 [error] request_id=0bl7r1au9fo3n9sqrp92uit25qfjlr43 remote_ip=127.0.0.1 Unathorized: user=[name: "wrong_topic", fetch: ["wrong_topic"], produce: ["wrong_topic"]] action=produce method=POST params=%{"topic" => "kastlex"}
14:53:10.713 [info] request_id=0bl7r1au9fo3n9sqrp92uit25qfjlr43 remote_ip=127.0.0.1 Sent 403 in 349µs
14:53:10.713 [debug] request_id=0bl7r1au9fo3n9sqrp92uit25qfjlr43 remote_ip=127.0.0.1 Kastlex.API.V1.MessageController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:10.714 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-713825-6
14:53:10.715 [info] Reloading credentials from passwd.yml
14:53:10.716 [info] request_id=thohjiv97f84ohlo58ti1tdjfqep4d5s remote_ip=127.0.0.1 POST /api/v1/messages/kastlex
14:53:10.716 [debug] request_id=thohjiv97f84ohlo58ti1tdjfqep4d5s remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.produce/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.716 [error] request_id=thohjiv97f84ohlo58ti1tdjfqep4d5s remote_ip=127.0.0.1 {:error, {:producer_down, :noproc}}
14:53:10.717 [error] request_id=thohjiv97f84ohlo58ti1tdjfqep4d5s remote_ip=127.0.0.1 %{kind: :error, reason: %Poison.EncodeError{message: nil, value: {:producer_down, :noproc}}, stack: [{Poison.Encoder.Any, :encode, 2, [file: 'lib/poison/encoder.ex', line: 383]}, {Poison.Encoder.Map, :"-encode/3-fun-1-", 4, [file: 'lib/poison/encoder.ex', line: 227]}, {Poison.Encoder.Map, :"-encode/3-lists^foldl/2-0-", 3, [file: 'lib/poison/encoder.ex', line: 228]}, {Poison.Encoder.Map, :encode, 3, [file: 'lib/poison/encoder.ex', line: 228]}, {Poison, :encode!, 2, [file: 'lib/poison.ex', line: 41]}, {Kastlex.Helper, :send_json, 3, [file: 'web/controllers/helper.ex', line: 9]}, {Kastlex.API.V1.MessageController, :action, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.API.V1.MessageController, :phoenix_controller_pipeline, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.Endpoint, :instrument, 4, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.Router, :__call__, 1, [file: 'lib/phoenix/router.ex', line: 278]}, {Kastlex.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 64]}, {Kastlex.Endpoint, :plug_builder_call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Kastlex.Endpoint, :call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.ConnTest, :dispatch, 5, [file: 'lib/phoenix/test/conn_test.ex', line: 224]}, {Kastlex.MessageControllerTest, :"test show chosen resource v2 with negative offset", 1, [file: 'test/controllers/message_controller_test.exs', line: 70]}, {ExUnit.Runner, :exec_test, 1, [file: 'lib/ex_unit/runner.ex', line: 292]}, {:timer, :tc, 1, [file: 'timer.erl', line: 166]}, {ExUnit.Runner, :"-spawn_test/3-fun-1-", 3, [file: 'lib/ex_unit/runner.ex', line: 240]}]}
14:53:10.717 [info] request_id=thohjiv97f84ohlo58ti1tdjfqep4d5s remote_ip=127.0.0.1 Sent 500 in 855µs
14:53:10.718 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-717593-1
4) test show chosen resource v2 with negative offset (Kastlex.MessageControllerTest)
test/controllers/message_controller_test.exs:64
** (Poison.EncodeError) unable to encode value: {:producer_down, :noproc}
code: |> post(api_v1_message_path(build_conn(), :produce, params[:topic]), "1")
stacktrace:
(poison) lib/poison/encoder.ex:383: Poison.Encoder.Any.encode/2
(poison) lib/poison/encoder.ex:227: anonymous fn/4 in Poison.Encoder.Map.encode/3
(poison) lib/poison/encoder.ex:228: Poison.Encoder.Map."-encode/3-lists^foldl/2-0-"/3
(poison) lib/poison/encoder.ex:228: Poison.Encoder.Map.encode/3
(poison) lib/poison.ex:41: Poison.encode!/2
(kastlex) web/controllers/helper.ex:9: Kastlex.Helper.send_json/3
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.action/2
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.phoenix_controller_pipeline/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
(kastlex) lib/plug/error_handler.ex:64: Kastlex.Router.call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.plug_builder_call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.call/2
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
test/controllers/message_controller_test.exs:70: (test)
14:53:10.719 [info] Reloading credentials from passwd.yml
14:53:10.720 [info] request_id=mpuotfabb0md9lqav6v0lo9gv4b8ro3o remote_ip=127.0.0.1 POST /api/v1/messages/kastlex
14:53:10.720 [debug] request_id=mpuotfabb0md9lqav6v0lo9gv4b8ro3o remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.produce/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.720 [error] request_id=mpuotfabb0md9lqav6v0lo9gv4b8ro3o remote_ip=127.0.0.1 Unathorized: user=[] action=produce method=POST params=%{"topic" => "kastlex"}
14:53:10.720 [info] request_id=mpuotfabb0md9lqav6v0lo9gv4b8ro3o remote_ip=127.0.0.1 Sent 403 in 125µs
14:53:10.720 [debug] request_id=mpuotfabb0md9lqav6v0lo9gv4b8ro3o remote_ip=127.0.0.1 Kastlex.API.V1.MessageController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:10.721 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-720657-6
14:53:10.721 [info] Reloading credentials from passwd.yml
14:53:10.722 [info] request_id=j2ij2pdn2sav789vpa7tg12ahe0v4h8u remote_ip=127.0.0.1 GET /api/v1/messages/kastlex/0
14:53:10.722 [debug] request_id=j2ij2pdn2sav789vpa7tg12ahe0v4h8u remote_ip=127.0.0.1 accept header: "application/json"
14:53:10.723 [debug] request_id=j2ij2pdn2sav789vpa7tg12ahe0v4h8u remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:10.724 [error] :kastlex (re)connect to 172.18.0.3:9092 aborted, last failure reason:{:connection_failure, :timeout}
14:53:10.724 [error] request_id=j2ij2pdn2sav789vpa7tg12ahe0v4h8u remote_ip=127.0.0.1 %{kind: :error, reason: %CaseClauseError{term: {:error, {:connection_failure, :timeout}}}, stack: [{Kastlex.API.V1.MessageController, :fetch, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 76]}, {Kastlex.API.V1.MessageController, :action, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.API.V1.MessageController, :phoenix_controller_pipeline, 2, [file: 'web/controllers/api/v1/message_controller.ex', line: 1]}, {Kastlex.Endpoint, :instrument, 4, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.Router, :__call__, 1, [file: 'lib/phoenix/router.ex', line: 278]}, {Kastlex.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 64]}, {Kastlex.Endpoint, :plug_builder_call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Kastlex.Endpoint, :call, 2, [file: 'lib/kastlex/endpoint.ex', line: 1]}, {Phoenix.ConnTest, :dispatch, 5, [file: 'lib/phoenix/test/conn_test.ex', line: 224]}, {Kastlex.MessageControllerTest, :"test show chosen resource v1", 1, [file: 'test/controllers/message_controller_test.exs', line: 36]}, {ExUnit.Runner, :exec_test, 1, [file: 'lib/ex_unit/runner.ex', line: 292]}, {:timer, :tc, 1, [file: 'timer.erl', line: 166]}, {ExUnit.Runner, :"-spawn_test/3-fun-1-", 3, [file: 'lib/ex_unit/runner.ex', line: 240]}]}
14:53:10.724 [info] request_id=j2ij2pdn2sav789vpa7tg12ahe0v4h8u remote_ip=127.0.0.1 Sent 500 in 1ms
14:53:10.725 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-725129-6
5) test show chosen resource v1 (Kastlex.MessageControllerTest)
test/controllers/message_controller_test.exs:31
** (CaseClauseError) no case clause matching: {:error, {:connection_failure, :timeout}}
code: |> get(api_v1_message_path(build_conn(), :fetch, params[:topic], params[:partition]))
stacktrace:
(kastlex) web/controllers/api/v1/message_controller.ex:76: Kastlex.API.V1.MessageController.fetch/2
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.action/2
(kastlex) web/controllers/api/v1/message_controller.ex:1: Kastlex.API.V1.MessageController.phoenix_controller_pipeline/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
(kastlex) lib/plug/error_handler.ex:64: Kastlex.Router.call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.plug_builder_call/2
(kastlex) lib/kastlex/endpoint.ex:1: Kastlex.Endpoint.call/2
(phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
test/controllers/message_controller_test.exs:36: (test)
14:53:10.726 [info] Reloading credentials from passwd.yml
14:53:10.727 [info] request_id=hvgijq3c0upkivbnk709sp1mt8gcogj2 remote_ip=127.0.0.1 GET /api/v1/messages/not_exist/0
14:53:10.727 [debug] request_id=hvgijq3c0upkivbnk709sp1mt8gcogj2 remote_ip=127.0.0.1 accept header: "application/json"
14:53:10.727 [debug] request_id=hvgijq3c0upkivbnk709sp1mt8gcogj2 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.fetch/2
Parameters: %{"partition" => "0", "topic" => "not_exist"}
Pipelines: [:api, :auth]
14:53:10.730 [info] request_id=hvgijq3c0upkivbnk709sp1mt8gcogj2 remote_ip=127.0.0.1 Sent 404 in 3ms
.14:53:10.731 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617990-730808-6
14:53:10.732 [info] Reloading credentials from passwd.yml
14:53:10.732 [info] request_id=93jigqrc77f98n7s8jl515f3jmlf7pgq remote_ip=127.0.0.1 POST /api/v1/messages/not_exist
14:53:10.733 [debug] request_id=93jigqrc77f98n7s8jl515f3jmlf7pgq remote_ip=127.0.0.1 Processing with Kastlex.API.V1.MessageController.produce/2
Parameters: %{"topic" => "not_exist"}
Pipelines: [:api, :auth]
14:53:10.733 [error] request_id=93jigqrc77f98n7s8jl515f3jmlf7pgq remote_ip=127.0.0.1 {:error, :UnknownTopicOrPartition}
14:53:10.733 [info] request_id=93jigqrc77f98n7s8jl515f3jmlf7pgq remote_ip=127.0.0.1 Sent 404 in 258µs
.14:53:10.796 [info] brod producer config: []
14:53:10.796 [info] brod ssl config: false
14:53:10.796 [info] not using sasl auth
.14:53:10.848 [info] brod producer config: []
14:53:10.848 [info] brod ssl config: [keyfile: "foo", certfile: "foo", cacertfile: "foo"]
14:53:10.848 [info] not using sasl auth
.14:53:10.902 [info] brod producer config: [max_linger_count: 2, required_acks: 1]
14:53:10.902 [info] brod ssl config: false
14:53:10.902 [info] not using sasl auth
.14:53:10.956 [info] brod producer config: []
14:53:10.956 [info] brod ssl config: true
14:53:10.956 [info] not using sasl auth
.14:53:11.023 [info] brod producer config: []
14:53:11.023 [info] brod ssl config: false
14:53:11.023 [info] brod sasl username: foo
.14:53:11.031 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-30805-8
14:53:11.034 [info] Reloading credentials from passwd.yml
14:53:11.035 [info] request_id=rv1ft9ejgb9uqg5mkrc9o0aibgjlocgl remote_ip=127.0.0.1 GET /api/v1/topics
14:53:11.035 [debug] request_id=rv1ft9ejgb9uqg5mkrc9o0aibgjlocgl remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.036 [debug] request_id=rv1ft9ejgb9uqg5mkrc9o0aibgjlocgl remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.list_topics/2
Parameters: %{}
Pipelines: [:api, :auth]
14:53:11.036 [error] request_id=rv1ft9ejgb9uqg5mkrc9o0aibgjlocgl remote_ip=127.0.0.1 Unathorized: user=[name: "wrong", list_brokers: true] action=list_topics method=GET params=%{}
14:53:11.038 [info] request_id=rv1ft9ejgb9uqg5mkrc9o0aibgjlocgl remote_ip=127.0.0.1 Sent 403 in 403µs
14:53:11.038 [debug] request_id=rv1ft9ejgb9uqg5mkrc9o0aibgjlocgl remote_ip=127.0.0.1 Kastlex.API.V1.TopicController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:11.039 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-39173-8
14:53:11.040 [info] Reloading credentials from passwd.yml
14:53:11.041 [info] request_id=1vqlfgrdd14tuv7tpe7o4rcfhk1e79l8 remote_ip=127.0.0.1 GET /api/v1/topics/kastlex
14:53:11.041 [debug] request_id=1vqlfgrdd14tuv7tpe7o4rcfhk1e79l8 remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.041 [debug] request_id=1vqlfgrdd14tuv7tpe7o4rcfhk1e79l8 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.show_topic/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:11.041 [error] request_id=1vqlfgrdd14tuv7tpe7o4rcfhk1e79l8 remote_ip=127.0.0.1 Unathorized: user=[name: "wrong", list_brokers: true] action=show_topic method=GET params=%{"topic" => "kastlex"}
14:53:11.041 [info] request_id=1vqlfgrdd14tuv7tpe7o4rcfhk1e79l8 remote_ip=127.0.0.1 Sent 403 in 325µs
14:53:11.041 [debug] request_id=1vqlfgrdd14tuv7tpe7o4rcfhk1e79l8 remote_ip=127.0.0.1 Kastlex.API.V1.TopicController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:11.042 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-42330-8
14:53:11.043 [info] Reloading credentials from passwd.yml
14:53:11.044 [info] request_id=nia768c6a8q1jf9ihou419f5qjftoi66 remote_ip=127.0.0.1 GET /api/v1/topics
14:53:11.044 [debug] request_id=nia768c6a8q1jf9ihou419f5qjftoi66 remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.044 [debug] request_id=nia768c6a8q1jf9ihou419f5qjftoi66 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.list_topics/2
Parameters: %{}
Pipelines: [:api, :auth]
14:53:11.046 [info] request_id=nia768c6a8q1jf9ihou419f5qjftoi66 remote_ip=127.0.0.1 Sent 200 in 1ms
.14:53:11.048 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-46807-8
14:53:11.049 [info] Reloading credentials from passwd.yml
14:53:11.049 [info] request_id=7441l6thpg55e02dork10v3dh49s8r1f remote_ip=127.0.0.1 GET /api/v1/topics/kastlex
14:53:11.049 [debug] request_id=7441l6thpg55e02dork10v3dh49s8r1f remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.049 [debug] request_id=7441l6thpg55e02dork10v3dh49s8r1f remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.show_topic/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:11.050 [error] request_id=7441l6thpg55e02dork10v3dh49s8r1f remote_ip=127.0.0.1 Unathorized: user=[] action=show_topic method=GET params=%{"topic" => "kastlex"}
14:53:11.050 [info] request_id=7441l6thpg55e02dork10v3dh49s8r1f remote_ip=127.0.0.1 Sent 403 in 147µs
14:53:11.050 [debug] request_id=7441l6thpg55e02dork10v3dh49s8r1f remote_ip=127.0.0.1 Kastlex.API.V1.TopicController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:11.050 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-50376-3
14:53:11.051 [info] Reloading credentials from passwd.yml
14:53:11.052 [info] request_id=lh52qtk73bd036i54q5rqe0oqa7knlj0 remote_ip=127.0.0.1 GET /api/v1/topics/kastlex
14:53:11.052 [debug] request_id=lh52qtk73bd036i54q5rqe0oqa7knlj0 remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.052 [debug] request_id=lh52qtk73bd036i54q5rqe0oqa7knlj0 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.show_topic/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:11.052 [info] request_id=lh52qtk73bd036i54q5rqe0oqa7knlj0 remote_ip=127.0.0.1 Sent 200 in 266µs
.14:53:11.053 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-53299-3
14:53:11.054 [info] Reloading credentials from passwd.yml
14:53:11.055 [info] request_id=s1jdosniqvhij5l2ujajv6ja8fku2l8c remote_ip=127.0.0.1 GET /api/v1/topics
14:53:11.055 [debug] request_id=s1jdosniqvhij5l2ujajv6ja8fku2l8c remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.list_topics/2
Parameters: %{}
Pipelines: [:api, :auth]
14:53:11.055 [error] request_id=s1jdosniqvhij5l2ujajv6ja8fku2l8c remote_ip=127.0.0.1 Unathorized: user=[] action=list_topics method=GET params=%{}
14:53:11.055 [info] request_id=s1jdosniqvhij5l2ujajv6ja8fku2l8c remote_ip=127.0.0.1 Sent 403 in 259µs
14:53:11.055 [debug] request_id=s1jdosniqvhij5l2ujajv6ja8fku2l8c remote_ip=127.0.0.1 Kastlex.API.V1.TopicController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:11.057 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-56667-8
14:53:11.058 [info] Reloading credentials from passwd.yml
14:53:11.060 [info] request_id=j6t3p1i9tpbjdqpfg9vu4tvirnvsl7h7 remote_ip=127.0.0.1 GET /api/v1/topics/kastlex
14:53:11.060 [debug] request_id=j6t3p1i9tpbjdqpfg9vu4tvirnvsl7h7 remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.061 [debug] request_id=j6t3p1i9tpbjdqpfg9vu4tvirnvsl7h7 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.TopicController.show_topic/2
Parameters: %{"topic" => "kastlex"}
Pipelines: [:api, :auth]
14:53:11.061 [error] request_id=j6t3p1i9tpbjdqpfg9vu4tvirnvsl7h7 remote_ip=127.0.0.1 Unathorized: user=[name: "wrong_topic", show_topic: ["some-other-topic"]] action=show_topic method=GET params=%{"topic" => "kastlex"}
14:53:11.061 [info] request_id=j6t3p1i9tpbjdqpfg9vu4tvirnvsl7h7 remote_ip=127.0.0.1 Sent 403 in 460µs
14:53:11.061 [debug] request_id=j6t3p1i9tpbjdqpfg9vu4tvirnvsl7h7 remote_ip=127.0.0.1 Kastlex.API.V1.TopicController halted in Kastlex.Plug.EnsurePermissions.call/2
.14:53:11.062 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-61902-8
14:53:11.063 [info] Reloading credentials from passwd.yml
14:53:11.065 [info] request_id=svjl0ruvdbtsoeot78coo3kf7m5q9prk remote_ip=127.0.0.1 GET /api/v1/brokers
14:53:11.065 [debug] request_id=svjl0ruvdbtsoeot78coo3kf7m5q9prk remote_ip=127.0.0.1 accept header: "application/json"
14:53:11.065 [debug] request_id=svjl0ruvdbtsoeot78coo3kf7m5q9prk remote_ip=127.0.0.1 Processing with Kastlex.API.V1.BrokerController.list_brokers/2
Parameters: %{}
Pipelines: [:api, :auth]
14:53:11.065 [info] request_id=svjl0ruvdbtsoeot78coo3kf7m5q9prk remote_ip=127.0.0.1 Sent 200 in 278µs
.14:53:11.066 [info] Reloading permissions from /var/folders/g9/rf1gdyrs2993f9w6x8hy92600000gn/T//briefly-1511/briefly-617991-66104-8
14:53:11.067 [info] Reloading credentials from passwd.yml
14:53:11.068 [info] request_id=3sicc5ardvbm23l8gi7rq7gritv6suf4 remote_ip=127.0.0.1 GET /api/v1/brokers
14:53:11.068 [debug] request_id=3sicc5ardvbm23l8gi7rq7gritv6suf4 remote_ip=127.0.0.1 Processing with Kastlex.API.V1.BrokerController.list_brokers/2
Parameters: %{}
Pipelines: [:api, :auth]
14:53:11.068 [error] request_id=3sicc5ardvbm23l8gi7rq7gritv6suf4 remote_ip=127.0.0.1 Unathorized: user=[] action=list_brokers method=GET params=%{}
14:53:11.068 [info] request_id=3sicc5ardvbm23l8gi7rq7gritv6suf4 remote_ip=127.0.0.1 Sent 403 in 106µs
14:53:11.068 [debug] request_id=3sicc5ardvbm23l8gi7rq7gritv6suf4 remote_ip=127.0.0.1 Kastlex.API.V1.BrokerController halted in Kastlex.Plug.EnsurePermissions.call/2
.
Finished in 11.8 seconds
27 tests, 5 failures
Randomized with seed 159933
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment