nulogy_message_bus_producer 4.0.0.alpha → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -105
  3. data/lib/nulogy_message_bus_producer/subscription_event.rb +0 -3
  4. data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +6 -6
  5. data/lib/nulogy_message_bus_producer/version.rb +1 -1
  6. data/lib/nulogy_message_bus_producer.rb +1 -17
  7. data/spec/dummy/bin/setup +8 -9
  8. data/spec/dummy/bin/yarn +15 -7
  9. data/spec/dummy/config/application.rb +11 -6
  10. data/spec/dummy/config/boot.rb +2 -4
  11. data/spec/dummy/config/cable.yml +2 -2
  12. data/spec/dummy/config/environments/development.rb +29 -7
  13. data/spec/dummy/config/environments/production.rb +45 -15
  14. data/spec/dummy/config/environments/test.rb +24 -7
  15. data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
  16. data/spec/dummy/config/initializers/content_security_policy.rb +30 -0
  17. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
  18. data/spec/dummy/config/initializers/new_framework_defaults_6_1.rb +67 -0
  19. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  20. data/spec/dummy/config/locales/en.yml +1 -1
  21. data/spec/dummy/config/storage.yml +34 -0
  22. data/spec/dummy/config.ru +1 -0
  23. data/spec/dummy/db/schema.rb +1 -4
  24. data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +1 -3
  25. data/spec/spec_helper.rb +1 -0
  26. data/spec/support/skip.rb +9 -0
  27. data/spec/support/test_graphql_schema.rb +0 -2
  28. metadata +96 -65
  29. data/db/migrate/20210330204121_add_event_type_to_subscription_events.rb +0 -9
  30. data/spec/dummy/log/development.log +0 -2553
  31. data/spec/dummy/log/test.log +0 -46636
  32. data/spec/integration/lib/nulogy_message_bus_producer_spec.rb +0 -25
@@ -1,25 +0,0 @@
1
- require "integration_spec_helper"
2
-
3
- RSpec.describe NulogyMessageBusProducer do
4
- describe "publishing events" do
5
- it "publishes an event" do
6
- company_uuid = SecureRandom.uuid
7
-
8
- described_class.publish(
9
- topic: "some-topic",
10
- type: "some-type",
11
- company_uuid: company_uuid,
12
- data: {
13
- field: "value"
14
- }
15
- )
16
-
17
- message = NulogyMessageBusProducer::SubscriptionEvent.last
18
-
19
- expect(message).to be_present
20
- expect(message.topic_name).to eq("some-topic")
21
- expect(message.company_uuid).to eq(company_uuid)
22
- expect(message.event_json).to eq({"field" => "value"})
23
- end
24
- end
25
- end