Last active
September 4, 2016 23:54
-
-
Save blatyo/5da03570e32d8ace2d6a882ac9042c60 to your computer and use it in GitHub Desktop.
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 .process with no meta it creates a message record (WireTap.MessageConsumerTest) | |
test/consumers/message_consumer_test.exs:35 | |
match (=) failed | |
The following variables were pinned: | |
message_body = %{"action_code" => 4, "institution_id" => "INS-3887fd5a-6e00-90ce-06f0-3e446c0233a3", "job" => %{"checked_at" => "2016-08-03T12:53:05.942Z[Etc/UTC]", "created_at" => "2016-08-03T12:52:36Z[Etc/UTC]", "finished_at" => "2016-08-03T12:53:05Z[Etc/UTC]", "job_id" => "JOB-d2011b94-423a-eebe-6f98-cf370558d029", "job_status" => %{"job_status_id" => 6, "job_status_name" => "COMPLETED"}, "started_at" => "2016-08-03T12:52:36Z[Etc/UTC]", "updated_at" => "2016-08-03T12:53:05Z[Etc/UTC]"}, "member_id" => "MBR-95b5b0d9-f315-7930-1975-a97eaafa1a6f", "previous_job_status" => %{"job_status_id" => 4, "job_status_name" => "TRANSFERRED"}, "ready_for_import" => true} | |
meta = %{} | |
code: %{correlation_id: nil, created_at: _, event: "updated", id: _, message: ^message_body, meta: ^meta, producer: "mx", profile_id: nil, rabbit_meta: %{"routing_key" => "mx.updated.job"}, resource: "job", result: ""} = message | |
rhs: %WireTap.Message{__meta__: #Ecto.Schema.Metadata<:loaded, "messages">, | |
correlation_id: nil, | |
created_at: #Ecto.DateTime<2016-08-26 02:06:55.779433>, | |
event: "updated", id: 37, | |
inserted_at: #Ecto.DateTime<2016-08-26 02:06:55>, | |
message: %{"action_code" => 4, | |
"institution_id" => "INS-3887fd5a-6e00-90ce-06f0-3e446c0233a3", | |
"job" => %{"checked_at" => "2016-08-03T12:53:05.942Z[Etc/UTC]", | |
"created_at" => "2016-08-03T12:52:36Z[Etc/UTC]", | |
"finished_at" => "2016-08-03T12:53:05Z[Etc/UTC]", | |
"job_id" => "JOB-d2011b94-423a-eebe-6f98-cf370558d029", | |
"job_status" => %{"job_status_id" => 6, | |
"job_status_name" => "COMPLETED"}, | |
"started_at" => "2016-08-03T12:52:36Z[Etc/UTC]", | |
"updated_at" => "2016-08-03T12:53:05Z[Etc/UTC]"}, | |
"member_id" => "MBR-95b5b0d9-f315-7930-1975-a97eaafa1a6f", | |
"meta" => %{}, | |
"previous_job_status" => %{"job_status_id" => 4, | |
"job_status_name" => "TRANSFERRED"}, | |
"ready_for_import" => true}, meta: %{}, producer: "mx", | |
profile_id: nil, rabbit_meta: %{"routing_key" => "mx.updated.job"}, | |
resource: "job", result: "", | |
updated_at: #Ecto.DateTime<2016-08-26 02:06:55>} | |
stacktrace: | |
test/consumers/message_consumer_test.exs:43: (test) |
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 .process with no meta it creates a message record (WireTap.MessageConsumerTest) | |
test/consumers/message_consumer_test.exs:35 | |
match (match?) failed | |
The following variables were pinned: | |
message_body = %{"action_code" => 4, "institution_id" => "INS-3887fd5a-6e00-90ce-06f0-3e446c0233a3", "job" => %{"checked_at" => "2016-08-03T12:53:05.942Z[Etc/UTC]", "created_at" => "2016-08-03T12:52:36Z[Etc/UTC]", "finished_at" => "2016-08-03T12:53:05Z[Etc/UTC]", "job_id" => "JOB-d2011b94-423a-eebe-6f98-cf370558d029", "job_status" => %{"job_status_id" => 6, "job_status_name" => "COMPLETED"}, "started_at" => "2016-08-03T12:52:36Z[Etc/UTC]", "updated_at" => "2016-08-03T12:53:05Z[Etc/UTC]"}, "member_id" => "MBR-95b5b0d9-f315-7930-1975-a97eaafa1a6f", "previous_job_status" => %{"job_status_id" => 4, "job_status_name" => "TRANSFERRED"}, "ready_for_import" => true} | |
meta = %{} | |
code: match?(%{correlation_id: nil, created_at: _, event: "updated", id: _, message: ^message_body, meta: ^meta, producer: "mx", profile_id: nil, rabbit_meta: %{"routing_key" => "mx.updated.job"}, resource: "job", result: ""}, message) | |
rhs: %WireTap.Message{__meta__: #Ecto.Schema.Metadata<:loaded, "messages">, | |
correlation_id: nil, | |
created_at: #Ecto.DateTime<2016-08-26 01:50:50.204976>, | |
event: "updated", id: 35, | |
inserted_at: #Ecto.DateTime<2016-08-26 01:50:50>, | |
message: %{"action_code" => 4, | |
"institution_id" => "INS-3887fd5a-6e00-90ce-06f0-3e446c0233a3", | |
"job" => %{"checked_at" => "2016-08-03T12:53:05.942Z[Etc/UTC]", | |
"created_at" => "2016-08-03T12:52:36Z[Etc/UTC]", | |
"finished_at" => "2016-08-03T12:53:05Z[Etc/UTC]", | |
"job_id" => "JOB-d2011b94-423a-eebe-6f98-cf370558d029", | |
"job_status" => %{"job_status_id" => 6, | |
"job_status_name" => "COMPLETED"}, | |
"started_at" => "2016-08-03T12:52:36Z[Etc/UTC]", | |
"updated_at" => "2016-08-03T12:53:05Z[Etc/UTC]"}, | |
"member_id" => "MBR-95b5b0d9-f315-7930-1975-a97eaafa1a6f", | |
"meta" => %{}, | |
"previous_job_status" => %{"job_status_id" => 4, | |
"job_status_name" => "TRANSFERRED"}, | |
"ready_for_import" => true}, meta: %{}, producer: "mx", | |
profile_id: nil, rabbit_meta: %{"routing_key" => "mx.updated.job"}, | |
resource: "job", result: "", | |
updated_at: #Ecto.DateTime<2016-08-26 01:50:50>} | |
stacktrace: | |
test/consumers/message_consumer_test.exs:43: (test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment