Skip to content

Integration tests for support Linode integration with alerts#669

Open
psnoch-akamai wants to merge 2 commits intolinode:proj/aclp-linode-alertsfrom
psnoch-akamai:TPT-4269-python-sdk-qa-support-linode-integration-with-alerts
Open

Integration tests for support Linode integration with alerts#669
psnoch-akamai wants to merge 2 commits intolinode:proj/aclp-linode-alertsfrom
psnoch-akamai:TPT-4269-python-sdk-qa-support-linode-integration-with-alerts

Conversation

@psnoch-akamai
Copy link
Copy Markdown
Contributor

📝 Description

Integration tests for support Linode integration with alerts

✔️ How to Test

make TEST_CASE=test_get_linodes_verify_alerts test-int
make TEST_CASE=test_linode_rebuild test-int
make TEST_CASE=test_linode_alerts_workflow test-int
make TEST_CASE=test_try_to_update_linode_alerts_legacy_and_aclp_at_the_same_time test-int

@psnoch-akamai psnoch-akamai requested a review from a team as a code owner March 17, 2026 19:05
@psnoch-akamai psnoch-akamai requested review from ezilber-akamai and mawilk90 and removed request for a team March 17, 2026 19:05
@psnoch-akamai psnoch-akamai changed the base branch from dev to proj/aclp-linode-alerts March 17, 2026 19:08
@psnoch-akamai psnoch-akamai added the testing for updates to the testing suite in the changelog. label Mar 17, 2026
Copy link
Copy Markdown
Contributor

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

Adds integration test coverage for Linode Instance “alerts” behavior in the Python SDK, focusing on listing, rebuilding, updating, cloning, and validating error behavior when mixing legacy and ACLP alerts.

Changes:

  • Add a new integration test to verify alerts are present when listing Linodes.
  • Extend the rebuild integration test to assert alerts fields are populated.
  • Add workflow/error-path integration tests for updating alerts and validating legacy vs ACLP alert incompatibilities.

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

@psnoch-akamai psnoch-akamai marked this pull request as draft March 19, 2026 13:07
@psnoch-akamai psnoch-akamai changed the title Tpt 4269 python sdk qa support linode integration with alerts Integration tests for support Linode integration with alerts Mar 19, 2026
@psnoch-akamai psnoch-akamai marked this pull request as ready for review March 30, 2026 17:17
return type in str(linode.type)


def test_get_linodes_verify_alerts(test_linode_client, create_linode):
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.

create_linode is not used in this test. Probably can be removed.

new_linode.delete()


def test_try_to_update_linode_alerts_legacy_and_aclp_at_the_same_time(
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.

We can consider not testing this case, because this behavior will be removed in a following api change. I will send the doc to you.

assert linode.status == "running"


def test_linode_alerts_workflow(test_linode_client, create_linode):
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.

Can we add a test case to creat linode with aclp alerts? Adding system_alerts should be good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing for updates to the testing suite in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants