Skip to content

Run tests for PR #2079 - #2083

Closed
alerickson wants to merge 2 commits into
masterfrom
ociTests
Closed

alerickson wants to merge 2 commits into
masterfrom
ociTests

Conversation

@alerickson

Copy link
Copy Markdown
Member

PR Summary

PR Context

PR Checklist

Upload the config blob using its matching digest and advertise its two-byte size in the OCI manifest. Add focused config and upload regression tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7d4b68cd-b7b7-476b-a441-4e443201413b
Choose the config filename before creating, hashing, and uploading it, and remove the helper's unreported path substitution. Cover publishing with an existing module config.json without overwriting its content.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7d4b68cd-b7b7-476b-a441-4e443201413b
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@alerickson

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The review reports no active issues with the container registry publishing fix and its regression tests.

No open issues 🎉

What changed in this PR

This PR corrects container registry publishing so the uploaded config blob matches the digest and size recorded in the package manifest, and adds regression tests.

Changes:

  • Uploads an empty JSON object ({}) as the config blob and records its byte size in the manifest.
  • Uses a unique config filename to preserve existing module files.
  • Adds tests for config content, digest, manifest metadata, upload failures, and publishing with an existing config.json.
File Description
test/​PublishPSResourceTests/​ContainerRegistryConfig.Tests.ps1 Adds config blob and publishing regression tests using a mock HTTP handler.
src/​code/​ContainerRegistryServerAPICalls.cs Aligns config creation, upload, and manifest metadata.

Review effort: Balanced

@alerickson

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

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.

3 participants