Skip to content

test: add apiv2 coverage for the manifest-create images query param#28984

Open
stefan8 wants to merge 1 commit into
podman-container-tools:mainfrom
stefan8:test/apiv2-manifest-create-images-query
Open

test: add apiv2 coverage for the manifest-create images query param#28984
stefan8 wants to merge 1 commit into
podman-container-tools:mainfrom
stefan8:test/apiv2-manifest-create-images-query

Conversation

@stefan8

@stefan8 stefan8 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The libpod manifest-create images query parameter was never covered by the apiv2 tests. This adds cases for it on the v3 and v4 endpoints, and drops the stale required: true from that parameter in the swagger docs (the handler treats it as optional).

Checklist

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all commits (git commit -s).
  • Referenced issues using Fixes: #22258 in commit message (if applicable)
  • Tests have been added/updated (or no tests are needed)
  • Documentation has been updated (or no documentation changes are needed)
  • All commits pass make validatepr (format/lint checks)
  • Release note entered in the section below (or None if no user-facing changes)

Does this PR introduce a user-facing change?

None

@github-actions github-actions Bot added the kind/api-change Change to remote API; merits scrutiny label Jun 19, 2026
@stefan8 stefan8 force-pushed the test/apiv2-manifest-create-images-query branch from 2e8238d to 5339f18 Compare June 19, 2026 09:47
The libpod manifest-create endpoint takes an "images" query parameter that
fills the new list at creation time, but 15-manifest.at never tested it.
Add cases that create a list with images= on both the v4
(/manifests/{name}, 201) and v3 (/manifests/create, 200) endpoints and
check the image ends up in the list.

Also drop the stale "required: true" from the images query parameter in the
swagger docs - the handler treats it as optional, and the existing create
tests (which omit it) already show that.

Fixes: podman-container-tools#22258

Signed-off-by: Grzegorz Szczepanczyk <g.szczepanczyk@getprintbox.com>
@stefan8 stefan8 force-pushed the test/apiv2-manifest-create-images-query branch from 93c4bf5 to 387ee2b Compare June 19, 2026 11:25
@stefan8

stefan8 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

/packit retest-failed

@packit-as-a-service

Copy link
Copy Markdown

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

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

Labels

kind/api-change Change to remote API; merits scrutiny

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant