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.
- checksums.yaml +4 -4
- data/README.md +9 -105
- data/lib/nulogy_message_bus_producer/subscription_event.rb +0 -3
- data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +6 -6
- data/lib/nulogy_message_bus_producer/version.rb +1 -1
- data/lib/nulogy_message_bus_producer.rb +1 -17
- data/spec/dummy/bin/setup +8 -9
- data/spec/dummy/bin/yarn +15 -7
- data/spec/dummy/config/application.rb +11 -6
- data/spec/dummy/config/boot.rb +2 -4
- data/spec/dummy/config/cable.yml +2 -2
- data/spec/dummy/config/environments/development.rb +29 -7
- data/spec/dummy/config/environments/production.rb +45 -15
- data/spec/dummy/config/environments/test.rb +24 -7
- data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
- data/spec/dummy/config/initializers/content_security_policy.rb +30 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
- data/spec/dummy/config/initializers/new_framework_defaults_6_1.rb +67 -0
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/config.ru +1 -0
- data/spec/dummy/db/schema.rb +1 -4
- data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +1 -3
- data/spec/spec_helper.rb +1 -0
- data/spec/support/skip.rb +9 -0
- data/spec/support/test_graphql_schema.rb +0 -2
- metadata +96 -65
- data/db/migrate/20210330204121_add_event_type_to_subscription_events.rb +0 -9
- data/spec/dummy/log/development.log +0 -2553
- data/spec/dummy/log/test.log +0 -46636
- 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
|