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.

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

PTAL @podman-container-tools/podman-reviewers @podman-container-tools/podman-maintainers

Comment thread test/apiv2/15-manifest.at
EOF
)

# Create manifest lists and populate them at creation time via the `images`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: I would add a case like images=containers-storage:$id_abc_image&images=containers-storage:$id_xyz_image with an assertion of '.manifests | length'=2.

@inknos

inknos commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

LGTM, same with @Honny1 's comment, if you could the case and push the update that would be great, but non blocking

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.

3 participants