Skip to content

DCERR-782: add generic OOB REST connection manager - #332

Merged
alexandraBara merged 5 commits into
developmentfrom
dcerr-782_rest_client_connection_manager
Nov 5, 2026
Merged

alexandraBara merged 5 commits into
developmentfrom
dcerr-782_rest_client_connection_manager

Conversation

@amd-jolibran

Copy link
Copy Markdown
Collaborator

Summary

Adds a generic out-of-band REST connection manager under nodescraper/connection/oob_rest/, alongside the existing redfish/ and oob_ssh/ ones.

It's for controllers that log in with a username/password POST and then serve JSON over HTTPS. The login path and any extra login fields are configurable, so different controllers can be supported without writing a new subclass each time.

It follows the same three-part pattern as the other connection managers. OobRestConnectionParams holds the connection params (host, username, password, port, verify_ssl, timeout, login_path, login_payload_extra). OobRestConnection is the REST transport (authenticate, get, post, close). OobRestConnectionManager connects, authenticates to verify, and disconnects.

Any OOB plugin can reuse this instead of carrying its own REST client.

Test plan

  • pytest test/unit
  • pytest test/functional (if applicable)
  • pre-commit run --all-files

Checklist

  • Added/updated tests (or explained why not)
  • Updated docs/README if behavior changed
  • No secrets or credentials committed

@alexandraBara
alexandraBara merged commit 47c8415 into development Nov 5, 2026
7 checks passed
@alexandraBara
alexandraBara deleted the dcerr-782_rest_client_connection_manager branch November 5, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants