Skip to content

Commit

Permalink
Add application/vnd.oci.image.index.v1+json to accepted media types
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Nov 24, 2024
1 parent 8fe0e38 commit 246dff8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class DockerDistributionIntegrationSpec extends Specification {
def alpineDescriptor = dockerClient.descriptor("alpine:edge")

then:
alpineDescriptor.content.descriptor.mediaType == "application/vnd.docker.distribution.manifest.list.v2+json"
alpineDescriptor.content.descriptor.mediaType in [
"application/vnd.docker.distribution.manifest.list.v2+json",
"application/vnd.oci.image.index.v1+json"]
alpineDescriptor.content.descriptor.digest =~ "sha256:[a-f\\d]{64}"
alpineDescriptor.content.descriptor.propertySize =~ "\\d{3,4}"
alpineDescriptor.content.platforms.find { it.architecture == "amd64" && it.os == "linux" }
Expand All @@ -33,7 +35,9 @@ class DockerDistributionIntegrationSpec extends Specification {
def debianDescriptor = dockerClient.descriptor("debian:latest")

then:
debianDescriptor.content.descriptor.mediaType == "application/vnd.docker.distribution.manifest.list.v2+json"
debianDescriptor.content.descriptor.mediaType in [
"application/vnd.docker.distribution.manifest.list.v2+json",
"application/vnd.oci.image.index.v1+json"]
debianDescriptor.content.descriptor.digest =~ "sha256:[a-f\\d]{64}"
debianDescriptor.content.descriptor.propertySize =~ "\\d{3,4}"
debianDescriptor.content.platforms.find { it.architecture == "amd64" && it.os == "linux" }
Expand Down

0 comments on commit 246dff8

Please sign in to comment.