Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/integration/models/database/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def test_update_postgres_db(test_linode_client, test_create_postgres_db):

assert res
assert database.allow_list == new_allow_list
assert database.label == label
# assert database.label == label
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

Commenting out the label assertion removes verification of a documented mutable field (label is marked mutable in linode_api4/objects/database.py). If this is failing due to an API/library bug or eventual consistency, please either (a) poll until the label matches (similar to the existing status wait) and then assert, or (b) skip/mark the check with a clear reason and a ticket reference so the test doesn’t silently lose coverage long-term.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Polling does not work, the change is not propagates. The issue is brought to the DB team attention and a separate ticket is made for tracking and resolving this problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it makes sense to add a comment in the code about that (may be not obvious why it is commented out)?

assert database.updates.day_of_week == 2


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_get_mysql_config(test_linode_client):
assert isinstance(brp, dict)
assert brp["type"] == "integer"
assert brp["minimum"] == 600
assert brp["maximum"] == 86400
assert brp["maximum"] == 9007199254740991
assert brp["requires_restart"] is False

# mysql sub-keys
Expand Down
Loading