Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add e2e specs for oras pull #693

Merged
merged 20 commits into from
Dec 14, 2022
Merged

Conversation

qweeah
Copy link
Contributor

@qweeah qweeah commented Nov 17, 2022

Resolves: #567

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2022

Codecov Report

Merging #693 (0e4837c) into main (4dd772c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #693   +/-   ##
=======================================
  Coverage   72.23%   72.23%           
=======================================
  Files          14       14           
  Lines         515      515           
=======================================
  Hits          372      372           
  Misses        114      114           
  Partials       29       29           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah added the E2E testing End-to-end testing related issues or pull requests label Nov 23, 2022
}
ORAS("pull", Reference(Host, repo, tag), "-v", "--config", files[0], "-o", pullRoot).
MatchStatus([]match.StateKey{
{Digest: "fd6ed2f36b54", Name: "application/vnd.oci.image.manifest.v1+json"},
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it use ocispec.MediaTypeImageManifest in terms of consistency? see line 104-105

}
ORAS("pull", Reference(Host, repo, tag), "-v", "--config", fmt.Sprintf("%s:%s", files[0], "???"), "-o", pullRoot).
MatchStatus([]match.StateKey{
{Digest: "fd6ed2f36b54", Name: "application/vnd.oci.image.manifest.v1+json"},
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated also the config type

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@shizhMSFT shizhMSFT merged commit 239e145 into oras-project:main Dec 14, 2022
TerryHowe pushed a commit to TerryHowe/oras that referenced this pull request Feb 2, 2023
Resolves: oras-project#567
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E testing End-to-end testing related issues or pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2e: add test specs for oras pull command
3 participants