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

Add conformance test verifying that cross-repo mount fails "open" #296

Merged
merged 1 commit into from
Sep 19, 2021

Conversation

sargun
Copy link
Contributor

@sargun sargun commented Sep 15, 2021

In #281, we stated
that cross-repo mounts without from should start an upload. This is a
requirement to make it so that clients can adopt the changes in
#275 smoothly.

Signed-off-by: Sargun Dhillon [email protected]

resp, err := client.Do(req)
Expect(err).To(BeNil())
Expect(resp.StatusCode()).To(Equal(http.StatusAccepted))
Expect(resp.GetRelativeLocation()).To(ContainSubstring(crossmountNamespace))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is not strictly necessary (though I see it in the next case as well :/). The location header may point to an external service which might not include the namespace in the URL. I think we mostly just want to ensure Location is non-empty.

In opencontainers#281, we stated
that cross-repo mounts without from should start an upload. This is a
requirement to make it so that clients can adopt the changes in
opencontainers#275 smoothly.

Signed-off-by: Sargun Dhillon <[email protected]>
jonjohnsonjr
jonjohnsonjr previously approved these changes Sep 15, 2021
@vbatts vbatts merged commit 635cdf7 into opencontainers:main Sep 19, 2021
@sargun sargun deleted the add-conformance-for-push branch September 20, 2021 16:32
@jdolitsky jdolitsky mentioned this pull request Sep 15, 2022
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 1, 2024
8 tasks
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.

4 participants