Fix some failing Tests
- Add explicit IDs to fixtures to avoid getting ints - Remove ordering dependencies in assertions
This commit is contained in:
committed by
Mike Dalessio
parent
6c04b56f4b
commit
c97ea9131f
+4
-2
@@ -1,11 +1,13 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
active_webhook_tracker:
|
||||
webhook: active
|
||||
id: <%= ActiveRecord::FixtureSet.identify("active_webhook_tracker", :uuid) %>
|
||||
webhook: active_uuid
|
||||
consecutive_failures_count: 1
|
||||
first_failure_at: <%= 1.hour.ago %>
|
||||
|
||||
inactive_webhook_tracker:
|
||||
webhook: inactive
|
||||
id: <%= ActiveRecord::FixtureSet.identify("inactive_webhook_tracker", :uuid) %>
|
||||
webhook: inactive_uuid
|
||||
consecutive_failures_count: 1
|
||||
first_failure_at: <%= 1.hour.ago %>
|
||||
|
||||
Vendored
+15
-10
@@ -1,40 +1,45 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
successfully_completed:
|
||||
webhook: active
|
||||
event: logo_published
|
||||
id: <%= ActiveRecord::FixtureSet.identify("successfully_completed_delivery", :uuid) %>
|
||||
webhook: active_uuid
|
||||
event: logo_published_uuid
|
||||
state: completed
|
||||
request: '<%= { headers: {} }.to_json %>'
|
||||
response: '<%= { code: 200, headers: {} }.to_json %>'
|
||||
created_at: <%= 1.week.ago %>
|
||||
|
||||
unsuccessfully_completed:
|
||||
webhook: active
|
||||
event: logo_assignment_jz
|
||||
id: <%= ActiveRecord::FixtureSet.identify("unsuccessfully_completed_delivery", :uuid) %>
|
||||
webhook: active_uuid
|
||||
event: logo_assignment_jz_uuid
|
||||
state: completed
|
||||
request: '<%= { headers: {} }.to_json %>'
|
||||
response: '<%= { code: 422, headers: {} }.to_json %>'
|
||||
created_at: <%= 1.week.ago + 1.hour %>
|
||||
|
||||
errored:
|
||||
webhook: active
|
||||
event: layout_published
|
||||
id: <%= ActiveRecord::FixtureSet.identify("errored_delivery", :uuid) %>
|
||||
webhook: active_uuid
|
||||
event: layout_published_uuid
|
||||
state: errored
|
||||
request: '<%= { headers: {} }.to_json %>'
|
||||
response: '<%= { error: "destination_unreachable" }.to_json %>'
|
||||
created_at: <%= 1.week.ago %>
|
||||
|
||||
pending:
|
||||
webhook: active
|
||||
event: shipping_closed
|
||||
id: <%= ActiveRecord::FixtureSet.identify("pending_delivery", :uuid) %>
|
||||
webhook: active_uuid
|
||||
event: shipping_closed_uuid
|
||||
state: pending
|
||||
request: null
|
||||
response: null
|
||||
created_at: <%= 2.day.ago %>
|
||||
|
||||
in_progress:
|
||||
webhook: active
|
||||
event: logo_assignment_km
|
||||
id: <%= ActiveRecord::FixtureSet.identify("in_progress_delivery", :uuid) %>
|
||||
webhook: active_uuid
|
||||
event: logo_assignment_km_uuid
|
||||
state: in_progress
|
||||
request: null
|
||||
response: null
|
||||
|
||||
Reference in New Issue
Block a user