Skip to content

Added typed RPM Remote API Client - #311

Draft
Redtigercod4 wants to merge 21 commits into
pulp:mainfrom
Redtigercod4:feat/rpm-remote-api-client
Draft

Added typed RPM Remote API Client#311
Redtigercod4 wants to merge 21 commits into
pulp:mainfrom
Redtigercod4:feat/rpm-remote-api-client

Conversation

@Redtigercod4

Copy link
Copy Markdown

Summary

Built out a fully-typed API client for RPM remotes, extending the pattern from the RPM Repository client. Covers standard CRUD endpoints from RpmRemoteViewSet and models against Pulp Core behaviours. This is backed by a suite of integration test that run against a live Pulp instance.

Changes

  1. Added typed RPM Remote API client (list, retrieve. create. update, delete) built off RpmRemoteSerializer.
  2. Added GenericRemoteFilterParams to common.ts for name/pulp_last_updated filtering.
  3. Reused DispatchedTaskResponse from the RPM Repository client for update (200/202) and delete (202).
  4. Added integration tests against a live Pulp instance using node:test.
  5. Added extractIdentifierFromPrn helper to the shared test client.

Out of Scope

  1. The create() test covering embedded credentials in the remote url as per PulpCore removed, confirmed intended functionality from Pulp team.
  2. UI/component consumption of this client.

Blockers (In order)

  1. Add shared base types for Repositories, Publications, Remotes and Distributions #307
  2. Added typed RPM Repository API Client #308

Linked issues

  1. Track: Typed API Client for RPM Plugin #309

Sources

  1. https://github.com/pulp/pulpcore/tree/main
  2. https://github.com/pulp/pulp_rpm

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