Commit d90ce165 authored by Jérome Perrin's avatar Jérome Perrin Committed by Alain Takoudjou

skip exiftool tests

We don't have exiftool in the slapos software release, this saves us
from security issues with exiftool
parent 35ae4851
......@@ -67,6 +67,7 @@ func TestFileTypeFromSuffix(t *testing.T) {
}
func TestNewCleanerWithValidFile(t *testing.T) {
t.Skip("no exiftool")
input, err := os.Open("testdata/sample_exif.jpg")
require.NoError(t, err)
ctx, cancel := context.WithCancel(context.Background())
......@@ -83,6 +84,7 @@ func TestNewCleanerWithValidFile(t *testing.T) {
}
func TestNewCleanerWithInvalidFile(t *testing.T) {
t.Skip("no exiftool")
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
......
......@@ -57,6 +57,7 @@ func TestUploadTempPathRequirement(t *testing.T) {
}
func TestUploadHandlerForwardingRawData(t *testing.T) {
t.Skip("no exiftool")
ts := testhelper.TestServerWithHandler(regexp.MustCompile(`/url/path\z`), func(w http.ResponseWriter, r *http.Request) {
require.Equal(t, "PATCH", r.Method, "method")
......@@ -318,6 +319,7 @@ func TestUploadProcessingFile(t *testing.T) {
}
func TestInvalidFileNames(t *testing.T) {
t.Skip("no exiftool")
testhelper.ConfigureSecret()
tempPath, err := ioutil.TempDir("", "uploads")
......@@ -362,6 +364,7 @@ func TestInvalidFileNames(t *testing.T) {
}
func TestUploadHandlerRemovingExif(t *testing.T) {
t.Skip("no exiftool")
content, err := ioutil.ReadFile("exif/testdata/sample_exif.jpg")
require.NoError(t, err)
......@@ -380,6 +383,7 @@ func TestUploadHandlerRemovingExif(t *testing.T) {
}
func TestUploadHandlerRemovingExifTiff(t *testing.T) {
t.Skip("no exiftool")
content, err := ioutil.ReadFile("exif/testdata/sample_exif.tiff")
require.NoError(t, err)
......@@ -398,6 +402,7 @@ func TestUploadHandlerRemovingExifTiff(t *testing.T) {
}
func TestUploadHandlerRemovingExifInvalidContentType(t *testing.T) {
t.Skip("no exiftool")
content, err := ioutil.ReadFile("exif/testdata/sample_exif_invalid.jpg")
require.NoError(t, err)
......@@ -415,6 +420,7 @@ func TestUploadHandlerRemovingExifInvalidContentType(t *testing.T) {
}
func TestUploadHandlerRemovingExifCorruptedFile(t *testing.T) {
t.Skip("no exiftool")
content, err := ioutil.ReadFile("exif/testdata/sample_exif_corrupted.jpg")
require.NoError(t, err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment