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

AppResources Controller Refactor with Integration Testing for OpenTSDB #311

Conversation

zack-rma
Copy link
Collaborator

Problem Description

Fixes #220.

Solution

Implements integration testing against OpenTSDB.

Builds upon changes in #274

how you tested the change

Includes integration tests.

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

Currently there exists a failing test case due to an unknown EventPort value for the compproc app used in testing. This is causing a connection failure, with the specific location of the issue identified by TODO tasks.

@MikeNeilson
Copy link
Collaborator

MikeNeilson commented Dec 31, 2024 via email

Copy link
Collaborator

@rma-rripken rma-rripken left a comment

Choose a reason for hiding this comment

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

Resolve my other comments

@zack-rma zack-rma marked this pull request as ready for review December 31, 2024 19:40
@zack-rma zack-rma changed the title Integration Testing Implementation for AppResources AppResources Controller Refactor with Integration Testing for OpenTSDB Jan 16, 2025
@zack-rma zack-rma self-assigned this Jan 16, 2025
@zack-rma zack-rma force-pushed the feature/task_cwms_support_app_resources_it branch from 8b357a4 to 56096c3 Compare January 29, 2025 19:14
@zack-rma zack-rma requested a review from adamkorynta January 30, 2025 23:44
@zack-rma
Copy link
Collaborator Author

After some discussion, it seems this controller will need to have its functionality verified. It is unclear if this was used in the web UI and whether it was operational before the refactor. There is no current method of obtaining a process ID when starting an app, which is required to obtain a lock in the CP_COMP_PROC_LOCK table. This table is also used to check for running processes and their statuses. We'll likely need to investigate the Toolkit's methods of obtaining a PID and see if it can be used here.

@adamkorynta
Copy link
Contributor

superceded by: #354

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 AppResources controller Refactor AppResources controller
4 participants