Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Jan 11, 2024
1 parent 38c49aa commit d76b59f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/get_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestGetFile(t *testing.T) {
name: "get image manipulated, if-match==etag",
id: testFiles.ProcessedFiles[1].ID,
opts: []client.GetFileInformationOpt{
client.WithIfMatch(`"38aae548d455b164041743d5a0131d93b94fd0f13b2d6aed278469ce29f2328b"`),
client.WithIfMatch(`"012fe5fec0a590f1c7246938af1918d02cc1514e30b76e0b45ff5ab2123a2b43"`),
client.WithImageSize(600, 200),
client.WithImageQuality(50),
client.WithImageBlur(5),
Expand All @@ -244,14 +244,14 @@ func TestGetFile(t *testing.T) {
Filename: "nhost.jpg",
FileInformationHeader: &client.FileInformationHeader{
CacheControl: "max-age=3600",
ContentLength: 6761,
ContentLength: 6775,
ContentType: "image/jpeg",
Etag: `"38aae548d455b164041743d5a0131d93b94fd0f13b2d6aed278469ce29f2328b"`,
Etag: `"012fe5fec0a590f1c7246938af1918d02cc1514e30b76e0b45ff5ab2123a2b43"`,
LastModified: "Tue, 18 Jan 2022 13:18:04 UTC",
StatusCode: 200,
},
},
expectedSha: "38aae548d455b164041743d5a0131d93b94fd0f13b2d6aed278469ce29f2328b",
expectedSha: "012fe5fec0a590f1c7246938af1918d02cc1514e30b76e0b45ff5ab2123a2b43",
},
{
name: "get image manipulated, if-match!=etag",
Expand All @@ -265,9 +265,9 @@ func TestGetFile(t *testing.T) {
expected: &client.FileInformationHeaderWithReader{
FileInformationHeader: &client.FileInformationHeader{
CacheControl: "max-age=3600",
ContentLength: 6761,
ContentLength: 6775,
ContentType: "image/jpeg",
Etag: `"38aae548d455b164041743d5a0131d93b94fd0f13b2d6aed278469ce29f2328b"`,
Etag: `"012fe5fec0a590f1c7246938af1918d02cc1514e30b76e0b45ff5ab2123a2b43"`,
LastModified: "Tue, 18 Jan 2022 13:18:04 UTC",
StatusCode: 412,
},
Expand Down

0 comments on commit d76b59f

Please sign in to comment.