Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

DatasourceResources Controller Refactor with Integration Testing for OpenTSDB#323

Merged
adamkorynta merged 5 commits into
opendcs:feature/task_cwms_supportfrom
zack-rma:feature/task_cwms_support_datasource_resources_it
Feb 7, 2025
Merged

DatasourceResources Controller Refactor with Integration Testing for OpenTSDB#323
adamkorynta merged 5 commits into
opendcs:feature/task_cwms_supportfrom
zack-rma:feature/task_cwms_support_datasource_resources_it

Conversation

@zack-rma

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

Copy link
Copy Markdown
Collaborator

Problem Description

Fixes #236.

Solution

Implements integration testing coverage for refactored DatasourceResources controller.

how you tested the change

Integration testing included.

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.

@sonarqubecloud

sonarqubecloud Bot commented Jan 9, 2025

Copy link
Copy Markdown

Comment thread opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/DataSourceResources.java Outdated
Comment thread opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/DataSourceResources.java Outdated
Comment thread opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/DataSourceResources.java Outdated
Comment thread opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/DataSourceResources.java Outdated
Comment thread opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/DataSourceResources.java Outdated

@rma-rripken rma-rripken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Getting there. I think there are some changes that need to be fixed or fixed via rebase

@zack-rma

zack-rma commented Jan 9, 2025

Copy link
Copy Markdown
Collaborator Author

Build will fail since it is dependent on Toolkit changes found here: adamkorynta/opendcs#6

@zack-rma zack-rma requested a review from rma-rripken January 9, 2025 21:26
@zack-rma zack-rma changed the title DatasourceResources Integration Testing for OpenTSDB DatasourceResources Controller Refactor with Integration Testing for OpenTSDB Jan 10, 2025

@rma-rripken rma-rripken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@MikeNeilson

Copy link
Copy Markdown
Collaborator

Build will fail since it is dependent on Toolkit changes found here: adamkorynta/opendcs#6

Are you expecting it to fail with a 401 Not authorized though?

@zack-rma

Copy link
Copy Markdown
Collaborator Author

Build will fail since it is dependent on Toolkit changes found here: adamkorynta/opendcs#6

Are you expecting it to fail with a 401 Not authorized though?

I wasn't. I tried to recreate that error on my end, but haven't been able to yet. I'm unsure of the source of those failures at the moment, but it's possible that there's a testing configuration tweak needed. I'll see if this pops up elsewhere or if I can narrow down the cause.

@zack-rma zack-rma force-pushed the feature/task_cwms_support_datasource_resources_it branch from b440a4f to c26b684 Compare January 29, 2025 18:10
@zack-rma zack-rma requested a review from adamkorynta January 29, 2025 21:59
@zack-rma zack-rma force-pushed the feature/task_cwms_support_datasource_resources_it branch from c26b684 to 15f545e Compare January 30, 2025 23:08
}
catch (ValueNotFoundException ex)
{
throw new DatabaseItemNotFoundException(notFound + dataSourceId + ".");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

need to add the exception parameter

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added exception cause

@adamkorynta adamkorynta merged commit 6d47c42 into opendcs:feature/task_cwms_support Feb 7, 2025
@zack-rma zack-rma removed their assignment Feb 10, 2025
adamkorynta pushed a commit that referenced this pull request Mar 13, 2025
…OpenTSDB (#323)

DataSourceResources Controller refactor with integration testing
adamkorynta pushed a commit that referenced this pull request Mar 24, 2025
…OpenTSDB (#323)

DataSourceResources Controller refactor with integration testing
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

OpenTSDB: Create Integration Tests for DataSourceResources controller Refactor DataSourceResources controller

4 participants