Commit 86e880fc 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 723bae6c
......@@ -49,6 +49,7 @@ func TestIsExifFile(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())
......@@ -65,6 +66,7 @@ func TestNewCleanerWithValidFile(t *testing.T) {
}
func TestNewCleanerWithInvalidFile(t *testing.T) {
t.Skip("no exiftool")
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
......
......@@ -61,6 +61,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) {
if r.Method != "PATCH" {
t.Fatal("Expected PATCH request")
......@@ -355,6 +356,7 @@ func TestUploadProcessingFile(t *testing.T) {
}
func TestInvalidFileNames(t *testing.T) {
t.Skip("no exiftool")
testhelper.ConfigureSecret()
tempPath, err := ioutil.TempDir("", "uploads")
......@@ -396,6 +398,7 @@ func TestInvalidFileNames(t *testing.T) {
}
func TestUploadHandlerRemovingExif(t *testing.T) {
t.Skip("no exiftool")
tempPath, err := ioutil.TempDir("", "uploads")
require.NoError(t, err)
defer os.RemoveAll(tempPath)
......@@ -446,6 +449,7 @@ func TestUploadHandlerRemovingExif(t *testing.T) {
}
func TestUploadHandlerRemovingInvalidExif(t *testing.T) {
t.Skip("no exiftool")
tempPath, err := ioutil.TempDir("", "uploads")
require.NoError(t, err)
defer os.RemoveAll(tempPath)
......
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