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

RoutingResources Controller Refactor with Integration Testing for OpenTSDB #316

Conversation

zack-rma
Copy link
Collaborator

@zack-rma zack-rma commented Jan 4, 2025

Problem Description

Fixes #243 .

Solution

Implements integration testing on refactored controller against OpenTSDB.

how you tested the change

Includes integration tests. Some testing still in progress.

Where the following done:

  • Tests. Check all that apply:
    • Unit tests created or modified that run during ant test.
    • Integration tests created or modified that run during integration testing
      (Formerly called regression tests.)
    • Test procedure descriptions for manual testing
  • Was relevant documentation updated?
  • Were relevant config element (e.g. XML data) updated as appropriate

If you aren't sure leave unchecked and we will help guide you to want needs changing where.

@zack-rma
Copy link
Collaborator Author

zack-rma commented Jan 4, 2025

Requires OpenDCS Toolkit modifications found in this PR: opendcs/opendcs#909

@zack-rma zack-rma marked this pull request as ready for review January 14, 2025 18:00
@zack-rma zack-rma requested a review from rma-rripken January 14, 2025 18:00
@zack-rma zack-rma changed the title Integration Testing for RoutingResources Controller Refactor RoutingResources Controller Refactor with Integration Testing for OpenTSDB Jan 16, 2025
@zack-rma zack-rma self-assigned this Jan 16, 2025
@zack-rma zack-rma marked this pull request as draft January 20, 2025 18:38
@zack-rma zack-rma marked this pull request as ready for review February 4, 2025 19:59
@zack-rma zack-rma force-pushed the feature/task_cwms_support_routing_resources_it branch from 513a950 to 88ba624 Compare February 20, 2025 23:06
@adamkorynta adamkorynta marked this pull request as draft February 21, 2025 16:53
@zack-rma
Copy link
Collaborator Author

Build failure from sonar task

@zack-rma zack-rma marked this pull request as ready for review February 22, 2025 00:20
@zack-rma zack-rma requested a review from adamkorynta February 22, 2025 00:20
boolean backLogValid = false;
Long dacqEventId = null;
Long timeInMillis = null;
if (backlog != null && !backlog.trim().isEmpty())
Copy link
Contributor

Choose a reason for hiding this comment

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

extract to its own method

DatabaseIO dbIo = null;
try
{
dbIo = getLegacyDatabase();
Copy link
Contributor

Choose a reason for hiding this comment

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

move this call out of the try/catch (make sure to update all methods like this)

}
}

public static void storeDacqEvent(DacqEvent event) throws DatabaseException
Copy link
Contributor

Choose a reason for hiding this comment

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

These methods are reused between multiple tests?

@zack-rma
Copy link
Collaborator Author

Superseded by: #347

@zack-rma zack-rma closed this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

OpenTSDB: Create Integration Tests for RoutingResources controller Refactor RoutingResources controller
3 participants