Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Dec 27, 2023
1 parent 2b0f74c commit 5e8387f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/suite/plugin/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ var _ = Describe("notation plugin install", func() {
})
})

It("with content inside zip archive is too large", func() {
It("with content inside zip archive exceeds 256 MiB size limit", func() {
Host(nil, func(notation *utils.ExecOpts, _ *Artifact, vhost *utils.VirtualHost) {
notation.ExpectFailure().Exec("plugin", "install", "--file", NotationE2EMaliciousPluginArchivePath+"/largeFileZip.zip", "-v").
MatchErrContent("Error: plugin installation failed: file reached the 256 MiB size limit\n")
})
})

It("with content inside tar.gz archive is too large", func() {
It("with content inside tar.gz archive exceeds 256 MiB size limit", func() {
Host(nil, func(notation *utils.ExecOpts, _ *Artifact, vhost *utils.VirtualHost) {
notation.ExpectFailure().Exec("plugin", "install", "--file", NotationE2EMaliciousPluginArchivePath+"/largeFileTarGzip.tar.gz", "-v").
MatchErrContent("Error: plugin installation failed: file reached the 256 MiB size limit\n")
Expand Down

0 comments on commit 5e8387f

Please sign in to comment.