Skip to content

Conversation

@PawelSnoch
Copy link
Contributor

📝 Description

Adds extra integration tests for Metrics & Alerts

✔️ How to Test

make test-int TEST_CASE=test_metrics
make test-int TEST_CASE=test_alerts

@PawelSnoch PawelSnoch requested a review from a team as a code owner November 5, 2025 12:58
@PawelSnoch PawelSnoch requested review from Copilot, yec-akamai and zliang-akamai and removed request for a team November 5, 2025 12:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds integration tests for CLI monitoring and alert commands to improve test coverage. The changes focus on testing token retrieval, alert help output, and alert definition viewing.

  • Renames variables from dashboard_id to service_type for clarity
  • Adds test for token-get command error handling
  • Adds tests for alerts help command and definition-view command

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/integration/monitor/test_metrics.py Renames variables for clarity and adds test for token-get command with invalid entity IDs
tests/integration/monitor/test_alerts.py Adds help command test and definition-view test (currently skipped)
tests/integration/helpers.py Adds helper function to validate help command action lists

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



@pytest.mark.skip
def test_list_alert_definitions_for_service_type(get_service_type):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, techdocs PR was merged and I can remove skip notation for this test. It should work

Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

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

Looks good and works well!

Copy link
Contributor

@vshanthe vshanthe left a comment

Choose a reason for hiding this comment

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

LGTM

@PawelSnoch PawelSnoch merged commit 0b5b673 into linode:dev Nov 13, 2025
14 checks passed
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.

3 participants