Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Apr 2, 2024
1 parent e397e3b commit 2efc3e3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/e2e/suite/command/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ var _ = Describe("Remote registry users:", func() {
}))
})

It("should push files with customized config file and mediatype", func() {
repo := pushTestRepo("config/mediatype")
configType := "config/type"
It("should pack with image spec v1.0 when --config is used, --artifact-type is not used, and --image-spec set to auto", func() {
repo := pushTestRepo("my/test/repo")
configType := "my/config/type"
tempDir := PrepareTempFiles()

ORAS("push", RegistryRef(ZOTHost, repo, tag), "--config", fmt.Sprintf("%s:%s", foobar.FileConfigName, configType), foobar.FileBarName, "-v").
Expand All @@ -263,11 +263,11 @@ var _ = Describe("Remote registry users:", func() {
Size: int64(foobar.FileConfigSize),
Digest: foobar.FileConfigDigest,
}))
})

// new test
It("should pack with spec v1.0 when --config is used, --artifactType is not given and --image-spec set to auto", func() {
repo := pushTestRepo("my/test/repo")
configType := "my/config/type"
It("should push files with customized config file and mediatype", func() {
repo := pushTestRepo("config/mediatype")
configType := "config/type"
tempDir := PrepareTempFiles()

ORAS("push", RegistryRef(ZOTHost, repo, tag), "--config", fmt.Sprintf("%s:%s", foobar.FileConfigName, configType), foobar.FileBarName, "-v").
Expand All @@ -285,7 +285,6 @@ var _ = Describe("Remote registry users:", func() {
Size: int64(foobar.FileConfigSize),
Digest: foobar.FileConfigDigest,
}))

})

It("should push files with customized manifest annotation", func() {
Expand Down

0 comments on commit 2efc3e3

Please sign in to comment.