Skip to content

Commit

Permalink
test: blob defaults when no content disposition
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed May 10, 2024
1 parent 3c0c714 commit 12e8c22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/pipe/blob/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func TestDefaults(t *testing.T) {
IDs: []string{"foo", "bar"},
ContentDisposition: "inline",
},
{
Bucket: "foobar2",
Provider: "gcs",
},
{
Bucket: "foobar",
Provider: "gcs",
Expand All @@ -97,6 +101,12 @@ func TestDefaults(t *testing.T) {
IDs: []string{"foo", "bar"},
ContentDisposition: "inline",
},
{
Bucket: "foobar2",
Provider: "gcs",
Directory: "{{ .ProjectName }}/{{ .Tag }}",
ContentDisposition: "attachment;filename={{.Filename}}",
},
{
Bucket: "foobar",
Provider: "gcs",
Expand Down

0 comments on commit 12e8c22

Please sign in to comment.