Skip to content

Integration test: cPanel server module (real-server lifecycle) #42

Description

@Panelica

Part of the server-module integration testing epic #41. help-wanted — needs access to a real cPanel server.

The cPanel adapter is implemented and unit/contract-tested with mocked HTTP, but it has not been verified end-to-end against a live cPanel. Please add a Server pointing at a real cPanel, attach a product, and drive the full lifecycle from PNLCS, reporting what works and what breaks.

Lifecycle checklist

  • testConnection — credentials + reachability succeed, and fail cleanly with a wrong key/host
  • create — provisioning a new account creates it on the panel; PNLCS stores the returned id/username in module_data; the account is usable
  • suspend — suspends the live account; customer site/login blocked
  • unsuspend — restores the account
  • changePassword — new password actually works on the panel
  • changePackage — upgrade/downgrade applies the new plan/limits
  • usageUpdate — disk/bandwidth usage is read back correctly into PNLCS
  • terminate — removes the account on the panel; no orphan left
  • listPackages — the panel's packages are listed for mapping

For each: note the request/response, HTTP status, and any panel-side result. Screenshots/logs welcome. File issues (or link fixes) for anything that misbehaves.

Module: modules/Servers/CPanel/CPanelModule.php.
Note: cPanel/WHM (UAPI/WHM API). Note: the module tests are currently markTestSkipped('CPanelModule not yet available.') in ServerModuleTest — this is a test-harness limitation, the module IS implemented (modules/Servers/CPanel/CPanelModule.php, real WHM calls). Part of this task is confirming that on a live WHM.

No prior code needed — the deliverable is a verification report; fixes follow from what it finds. Comment on #41 to claim this panel.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:server-adapterServer adapters (Panelica, cPanel, Plesk, DA, Proxmox, Custom)help-wantedExtra attention or community input welcome

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions