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

Feature/add dke ping for health messages #221

Merged
merged 17 commits into from
Nov 1, 2024

Commits on Aug 19, 2024

  1. Remove Ar2QA and update URLs in QA

    Deleted the `Ar2QA` class to eliminate redundancy and adjusted the URL constants in `QA` class to point to the correct QA environment. This streamlines the QA environment handling within the codebase.
    saschadoemer committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    9d0c50b View commit details
    Browse the repository at this point in the history
  2. Add support for MQTT communication unit and DKE ping

    Introduced MQTT_COMMUNICATION_UNIT in OnboardingResponseRepository and added a corresponding fixture. Updated certification details and added DKE_PING to SystemMessageType for improved system messaging capabilities.
    saschadoemer committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    007b310 View commit details
    Browse the repository at this point in the history
  3. Add Ping Service implementation

    Introduced PingService interface and its implementation, PingServiceImpl, to handle the pinging of health interfaces using MQTT protocol. Created PingParameters class for encapsulating ping request parameters and updated MessageEncoder to support encoding of ping messages. Also added a PingServiceTest class to validate the sending of health messages.
    saschadoemer committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    8d2c786 View commit details
    Browse the repository at this point in the history
  4. Correct formatting in AbstractIntegrationTest

    Fixed the indentation of the end-private-key line in AbstractIntegrationTest. Also removed unused import statements in PingServiceTest to clean up the code.
    saschadoemer committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    aa1f4a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Enable test and update registration code and onboarding response

    Re-enabled the `onboardCommunicationUnitAndSaveToFile` test and updated its registration code. Also updated the `communication-unit.json` with new device and authentication details.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    7c6168e View commit details
    Browse the repository at this point in the history
  2. Update farming software JSON and adjust onboarding test

    Updated the `farming-software.json` with new device identifiers, connection criteria, and authentication details. Also, modified the test fixture to enable the onboarding test and updated the registration code accordingly.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    02118bc View commit details
    Browse the repository at this point in the history
  3. Add new onboarding response JSON and update test classes

    Added a new `mqtt-communication-unit.json` file for onboarding responses. Corrected the file name reference in `OnboardingResponseRepository` and updated the registration code in the `MqttCommunicationUnitFixture` test case, while also re-enabling the previously disabled test.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    98d2bea View commit details
    Browse the repository at this point in the history
  4. Update telemetry platform onboarding response and test fixture

    Replaced telemetry platform onboarding details with new identifiers and updated the registration code in the test fixture. Also, enabled the previously disabled test for onboarding.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    ca9bea0 View commit details
    Browse the repository at this point in the history
  5. Remove obsolete onboarding responses JSON files

    Deleted JSON files for deactivated and removed farming software as well as telemetry platform to clean up outdated resources. These files are no longer needed and have been removed to maintain a leaner project repository.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b791653 View commit details
    Browse the repository at this point in the history
  6. Remove obsolete onboarding responses JSON files

    Deleted JSON files for deactivated and removed farming software as well as telemetry platform to clean up outdated resources. These files are no longer needed and have been removed to maintain a leaner project repository.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    269b4e0 View commit details
    Browse the repository at this point in the history
  7. Refactor MQTT test cases for better integration

    Updated `PingServiceTest` to extend `AbstractIntegrationTest` and added necessary imports and services for MQTT testing. Modified `MqttCommunicationUnitFixture` to use MQTT instead of REST and added a logger for message delivery confirmation. Adjusted onboarding response JSON to match the new configuration.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    c636aed View commit details
    Browse the repository at this point in the history
  8. Enhance MQTT Ping Service tests and fix onboarding fixture

    Refactored `PingServiceTest` to include message delivery and arrival checks. Updated `MqttCommunicationUnitFixture` to match the new test structure and modified the registration code in onboarding parameters. This ensures robust message handling and consistency in tests.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    a9c30f7 View commit details
    Browse the repository at this point in the history
  9. Refactor PingServiceTest and enhance message handling.

    Refactored the `PingServiceTest` to use instance variables instead of static. Enhance the `messageArrived` method to decode and validate incoming messages, improving test reliability and logging.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    aab8019 View commit details
    Browse the repository at this point in the history
  10. Remove unused imports and exception handling

    Removed unused import statements from three test classes to clean up the code. Additionally, eliminated the unnecessary throws declaration in `messageArrived` method in `PingServiceTest.java`.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    1355624 View commit details
    Browse the repository at this point in the history
  11. Update project version to 3.3.0

    Bump the parent project and all sub-modules from version 3.2.1 to 3.3.0. This ensures all modules are aligned with the latest version for consistency.
    saschadoemer committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b083269 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Refactor: Change async ping method to throw exception

    The `sendAsync` method in `PingServiceImpl` now throws a `RuntimeException`, instructing users to use the synchronous method instead. This change ensures clarity on the method's availability and usage.
    saschadoemer committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    22ecc98 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' of https://github.com/DKE-Data/agrirouter-sdk-java

    …into feature/add-dke-ping-for-health-messages
    
    # Conflicts:
    #	agrirouter-sdk-java-api/pom.xml
    #	agrirouter-sdk-java-convenience/pom.xml
    #	agrirouter-sdk-java-impl/pom.xml
    #	agrirouter-sdk-java-tests/pom.xml
    #	pom.xml
    saschadoemer committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    1639e7f View commit details
    Browse the repository at this point in the history