Skip to content

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

Merged
vbatts merged 1 commit intoopencontainers:mainfrom
sargun:add-conformance-for-push
Sep 19, 2021
Merged

Add conformance test verifying that cross-repo mount fails "open"#296
vbatts merged 1 commit intoopencontainers:mainfrom
sargun:add-conformance-for-push

Conversation

@sargun
Copy link
Copy Markdown
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 sargun@sargun.me

resp, err := client.Do(req)
Expect(err).To(BeNil())
Expect(resp.StatusCode()).To(Equal(http.StatusAccepted))
Expect(resp.GetRelativeLocation()).To(ContainSubstring(crossmountNamespace))
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.

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 <sargun@sargun.me>
@sargun sargun force-pushed the add-conformance-for-push branch from 544cc0f to 9173aad Compare September 15, 2021 20:04
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