Skip to content

TPT-4130: Add Valkey Managed Database integration tests - #932

Draft
anmsharm1 wants to merge 6 commits into
linode:devfrom
anmsharm1:DBAAS1-1774
Draft

anmsharm1 wants to merge 6 commits into
linode:devfrom
anmsharm1:DBAAS1-1774

Conversation

@anmsharm1

Copy link
Copy Markdown

📝 Description

What does this PR do and why is this change necessary?

Adds integration test coverage for Valkey Managed Databases, including engine and type discovery, database listing and viewing, engine configuration, credentials and SSL, suspend/resume, patching, and snapshot-based fork/restore.

Adds table output handling for valkey-config-view, including readable formatting for nullable configuration parameter types ( backup_minute,  backup_hour, valkey_memory_policy etc. ), such as integer | null or string | null. This is required as Valkey’s config schema includes nullable parameter types represented as lists, such as  ["integer", "null"] .

The new formatting helper renders those as  integer | null.  I modeled add_param_row that now  applies that formatting only when the Valkey handler opts in otherwise its default preserves the existing type formatting for PostgreSQL and MySQL.

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?

Set LINODE_CLI_TOKEN to a token for an account that can create Managed Databases. The integration tests create and delete live database resources. Snapshot restore is skipped by default; set RUN_LONG_TESTS=True to run it.

How do I run the relevant unit/integration tests?

  • make test-unit — passed.
  • make test-int TEST_SUITE=database TEST_CASE=valkey TEST_ARGS='-v' — 10 passed, 1 skipped, 17 deselected.

anmsharm1 and others added 6 commits September 29, 2026 12:17
Render nullable types as a readable union in database configuration tables. Cover Valkey output without changing non-nullable types.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant