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

NATS messaging integration test #113

Merged
merged 4 commits into from
Jan 17, 2025
Merged

NATS messaging integration test #113

merged 4 commits into from
Jan 17, 2025

Conversation

ktatarnikovhiro
Copy link
Collaborator

@ktatarnikovhiro ktatarnikovhiro commented Jan 15, 2025

PR Summary for NATS messaging integration test

Key Changes:

  1. Updated Dependencies:

    • Cargo.lock and Cargo.toml files updated with new dependencies and versions.
    • Added dependencies such as once_cell, dashmap, futures, and pin-project.
  2. New Modules Added:

    • context.rs: Implements a new Context struct to manage node configurations and runtime.
    • context_builder.rs: Provides a builder for creating and initializing the Context.
  3. New Test Files:

    • rhio/src/tests/configuration.rs
    • rhio/src/tests/fake_rhio_server.rs
    • rhio/src/tests/message_replication.rs
    • rhio/src/tests/mod.rs
  4. Code Refactoring:

    • main.rs: Major refactor to use ContextBuilder for configuration setup.
    • nats/actor.rs: Refactored NatsActor to use a new NatsClient interface.
  5. Hash Derives:

    • Added Hash derive to NatsConfig and NatsCredentials structs.
  6. Removal of Old Code:

    • Removed redundant code from main.rs that handled configuration and node setup.

Copy link

ellipsis-dev bot commented Jan 15, 2025

Your free trial has expired. To keep using Ellipsis, sign up at https://app.ellipsis.dev or contact us.

… into integration-tests

# Conflicts:
#	Cargo.lock
#	rhio/src/main.rs
Copy link

@Shockedshodan Shockedshodan left a comment

Choose a reason for hiding this comment

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

LGTM.

rhio/src/tests/configuration.rs Outdated Show resolved Hide resolved
rhio/src/nats/client/fake/server.rs Show resolved Hide resolved
rhio/src/nats/client/nats.rs Show resolved Hide resolved
@ktatarnikovhiro ktatarnikovhiro merged commit 01f1315 into main Jan 17, 2025
7 checks passed
@ktatarnikovhiro ktatarnikovhiro deleted the integration-tests branch January 17, 2025 13:40
@adzialocha
Copy link
Collaborator

Great work @ktatarnikovhiro ! ✊🤩

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.

4 participants