Skip to content

[DPE-11496] (PART 7) CI/CD migration to single-kernel: K8s-only tests - #426

Merged
xavipg003 merged 2 commits into
dpe-11496-6from
dpe-11496-7
Nov 20, 2026
Merged

xavipg003 merged 2 commits into
dpe-11496-6from
dpe-11496-7

Conversation

@xavipg003

Copy link
Copy Markdown
Contributor

Description

This PR continues moving the PostgreSQL integration tests from the VM and K8s charm repos into the single kernel library. Builds on #425.

It brings over the remaining K8s-only charm tests. With this, every charm test module from the VM and K8s repos has an equivalent in the single kernel library. Terraform deployment tests remain out of scope.

What's included

  • K8s-only tests:
    • test_filesystem_layout, test_headless_service, test_ldap, test_trust.
    • ha_tests/test_restart (pytest-operator).
  • Shared helper: remove_charm_code in charm/ha_tests/helpers.py, used by test_restart.
  • Spread: K8s-only tasks for the five modules, restricted to github-ci-k8s.

How the merge was done

  • Preserve the original test scenarios, keeping the framework each test already used.
  • Use the shared test charm fixtures and helpers (app_name, charm, charm_resources, ...) and absolute imports.
  • Mark the modules k8s_only, so they are skipped on VM.
  • test_ldap keeps the original skip based on the libjuju major version.
  • test_trust keeps its fixed application name and trust=False on purpose, as that is what it tests.

@xavipg003
xavipg003 added this pull request to stack #411 November 13, 2026 09:37
@xavipg003
xavipg003 force-pushed the dpe-11496-7 branch 3 times, most recently from 638b35c to 2c4ea52 Compare November 16, 2026 13:59
@xavipg003
xavipg003 marked this pull request as ready for review November 16, 2026 14:06
@xavipg003
xavipg003 requested a review from a team as a code owner November 16, 2026 14:06
@xavipg003
xavipg003 force-pushed the dpe-11496-7 branch 3 times, most recently from f58788d to 969d44e Compare November 19, 2026 08:21
@xavipg003
xavipg003 force-pushed the dpe-11496-7 branch 2 times, most recently from b18b789 to 60bd32c Compare November 19, 2026 11:32
@xavipg003
xavipg003 merged commit 653f23a into 16/edge Nov 20, 2026
4 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants