Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:added rabbitmq support #142

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Siddharth9890
Copy link

@Siddharth9890 Siddharth9890 commented Oct 5, 2023

Issue #110
image
The rabbitmq instance is working as well using docker compose
@edimossilva

@edimossilva
Copy link
Member

Hey @Siddharth9890 nice work, can you add some specs to the publisher and to the subscriber?

Gemfile Outdated
Comment on lines 35 to 37
gem "bunny"


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gem "bunny"
# Ruby client for RabbitMQ [https://github.com/ruby-amqp/bunny]
gem "bunny"

Gemfile Outdated
Comment on lines 108 to 105
gem "bunny-mock"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated

Suggested change
gem "bunny-mock"

@@ -0,0 +1,28 @@
# spec/services/rabbitmq_publisher_spec.rb
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this file for this path spec/services/*?

let(:rabbitmq_url) { 'amqp://test:test@rabbitmq:5672/' }


it 'should publish messages to queues' do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the indentation of this file? 🙏🏻

@Siddharth9890
Copy link
Author

Hey i tried fixing the linting but i am not sure how to check linting locally in ruby so if there are linting errors please guide me on how to check locally

@leonardobrito
Copy link
Collaborator

Hey i tried fixing the linting but i am not sure how to check linting locally in ruby so if there are linting errors please guide me on how to check locally

You can run locally: docker compose exec web bundle exec bin/lint

@Siddharth9890
Copy link
Author

@leonardobrito done

@leonardobrito
Copy link
Collaborator

@leonardobrito done

Hey @Siddharth9890 looks like we still having some issues with linters 😔, can you take a look again?
After all thank you so much for your contribution. ❤️

55 files inspected, 2 offenses detected

@Siddharth9890
Copy link
Author

hey @leonardobrito i have skip check for linting for the test it is false positive so it will give a warning on internet i was unable to find a solution hence a workaround
image

@leonardobrito
Copy link
Collaborator

hey @leonardobrito i have skip check for linting for the test it is false positive so it will give a warning on internet i was unable to find a solution hence a workaround image

The issue with the lint is because you have more than 1 expectation inside the test case. To solve this you will need to have a separated it case to each expectation. Wdyt @edimossilva? Can we move forward here?

@edimossilva
Copy link
Member

edimossilva commented Oct 11, 2023

hey @leonardobrito i have skip check for linting for the test it is false positive so it will give a warning on internet i was unable to find a solution hence a workaround image

The issue with the lint is because you have more than 1 expectation inside the test case. To solve this you will need to have a separated it case to each expectation. Wdyt @edimossilva? Can we move forward here?

Yes sure, @Siddharth9890 please update the rubocop config to allow it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants