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

Publish Subscribe integrated test #203

Conversation

ruchirchauhan
Copy link
Contributor

This test tests the complete pub-sub flow to make sure data flows correctly through the pipeline.

Copy link

github-actions bot commented Jul 9, 2024

Code coverage report is ready! 📈

Copy link

github-actions bot commented Jul 9, 2024

Code coverage report is ready! 📈

test/coverage/communication/PublisherTest.cpp Outdated Show resolved Hide resolved
test/coverage/communication/PublisherTest.cpp Outdated Show resolved Hide resolved
test/coverage/communication/PublisherTest.cpp Outdated Show resolved Hide resolved
@gregmedd gregmedd linked an issue Jul 9, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Jul 9, 2024

Code coverage report is ready! 📈

Copy link

Code coverage report is ready! 📈

Copy link

Code coverage report is ready! 📈

Copy link

Code coverage report is ready! 📈

Copy link
Contributor

@gregmedd gregmedd left a comment

Choose a reason for hiding this comment

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

One minor comment left

Comment on lines 98 to 99
EXPECT_EQ(AsString::serialize(topic_),
AsString::serialize(transportSub->sink_filter_));
Copy link
Contributor

Choose a reason for hiding this comment

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

The URI check should probably be against the message and not the local variable:

Suggested change
EXPECT_EQ(AsString::serialize(topic_),
AsString::serialize(transportSub->sink_filter_));
EXPECT_EQ(AsString::serialize(transportMock_->message_.sink()),
AsString::serialize(transportSub->sink_filter_));

Copy link
Contributor Author

@ruchirchauhan ruchirchauhan Jul 11, 2024

Choose a reason for hiding this comment

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

For publish message, sink is empty, I have changed it to transportMock_->message_.attributes().source()

Copy link
Contributor

Choose a reason for hiding this comment

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

If that's the case, shouldn't it be checked against the source filter?

Copy link
Contributor

Choose a reason for hiding this comment

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

@ruchirchauhan - this is still open. If publish methods can only have sources, then shouldn't they be checked against the source filter and not the sink filter?

Copy link

Code coverage report is ready! 📈

@ruchirchauhan
Copy link
Contributor Author

This should be ready to be merged

- This test tests the complete pub-sub flow to make sure
data flows correctly through the pipeline.
Copy link

Code coverage report is ready! 📈

@ruchirchauhan ruchirchauhan deleted the test/communication/pubsub branch July 26, 2024 15:58
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.

Write extra PublisherSubscriberTest for up-cpp
2 participants