Skip to content

Commit

Permalink
Merge pull request #122 from opencloud-eu/chore/branding-thumnails-te…
Browse files Browse the repository at this point in the history
…st-data

chore: remove or change branded test files in thumbnail service
  • Loading branch information
JammingBen authored Jan 28, 2025
2 parents 876f1a5 + 64afb38 commit 2857b6d
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 4 deletions.
Binary file modified services/thumbnails/pkg/preprocessor/test_assets/empty.mp3
Binary file not shown.
Binary file not shown.
Binary file modified services/thumbnails/pkg/preprocessor/test_assets/ggs_test.ggs
Binary file not shown.
6 changes: 3 additions & 3 deletions services/thumbnails/pkg/thumbnail/thumbnail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func BenchmarkGet(b *testing.B) {
Checksum: "1872ade88f3013edeb33decd74a4f947",
}
cwd, _ := os.Getwd()
p := filepath.Join(cwd, "../../testdata/oc.png")
p := filepath.Join(cwd, "../../testdata/test.png")
f, _ := os.Open(p)
defer f.Close()
img, ext, _ := image.Decode(f)
Expand Down Expand Up @@ -150,8 +150,8 @@ func TestPreviewGenerationTooBigImage(t *testing.T) {
fileName string
mimeType string
}{
{name: "png", mimeType: "image/png", fileName: "../../testdata/oc.png"},
{name: "gif", mimeType: "image/gif", fileName: "../../testdata/oc.gif"},
{name: "png", mimeType: "image/png", fileName: "../../testdata/test.png"},
{name: "jpg", mimeType: "image/jpeg", fileName: "../../testdata/test.jpg"},
{name: "ggs", mimeType: "application/vnd.geogebra.slides", fileName: "../../testdata/test.ggs"},
}

Expand Down
Binary file removed services/thumbnails/testdata/oc.gif
Binary file not shown.
Binary file removed services/thumbnails/testdata/oc.png
Binary file not shown.
1 change: 0 additions & 1 deletion services/thumbnails/testdata/test.ggp

This file was deleted.

Binary file modified services/thumbnails/testdata/test.ggs
Binary file not shown.
Binary file added services/thumbnails/testdata/test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added services/thumbnails/testdata/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2857b6d

Please sign in to comment.