Commit 4ff73b81 authored by Jérome Perrin's avatar Jérome Perrin

skip exiftool tests

We don't have exiftool in the slapos software release, this saves us
from security issues with exiftool
parent fc590d35
...@@ -49,6 +49,7 @@ func TestIsExifFile(t *testing.T) { ...@@ -49,6 +49,7 @@ func TestIsExifFile(t *testing.T) {
} }
func TestNewCleanerWithValidFile(t *testing.T) { func TestNewCleanerWithValidFile(t *testing.T) {
t.Skip("no exiftool")
input, err := os.Open("testdata/sample_exif.jpg") input, err := os.Open("testdata/sample_exif.jpg")
require.NoError(t, err) require.NoError(t, err)
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
...@@ -65,6 +66,7 @@ func TestNewCleanerWithValidFile(t *testing.T) { ...@@ -65,6 +66,7 @@ func TestNewCleanerWithValidFile(t *testing.T) {
} }
func TestNewCleanerWithInvalidFile(t *testing.T) { func TestNewCleanerWithInvalidFile(t *testing.T) {
t.Skip("no exiftool")
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
defer cancel() defer cancel()
......
...@@ -62,6 +62,7 @@ func TestUploadTempPathRequirement(t *testing.T) { ...@@ -62,6 +62,7 @@ func TestUploadTempPathRequirement(t *testing.T) {
} }
func TestUploadHandlerForwardingRawData(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) { ts := testhelper.TestServerWithHandler(regexp.MustCompile(`/url/path\z`), func(w http.ResponseWriter, r *http.Request) {
if r.Method != "PATCH" { if r.Method != "PATCH" {
t.Fatal("Expected PATCH request") t.Fatal("Expected PATCH request")
...@@ -286,6 +287,7 @@ func TestUploadProcessingFile(t *testing.T) { ...@@ -286,6 +287,7 @@ func TestUploadProcessingFile(t *testing.T) {
} }
func TestInvalidFileNames(t *testing.T) { func TestInvalidFileNames(t *testing.T) {
t.Skip("no exiftool")
testhelper.ConfigureSecret() testhelper.ConfigureSecret()
tempPath, err := ioutil.TempDir("", "uploads") tempPath, err := ioutil.TempDir("", "uploads")
...@@ -327,6 +329,7 @@ func TestInvalidFileNames(t *testing.T) { ...@@ -327,6 +329,7 @@ func TestInvalidFileNames(t *testing.T) {
} }
func TestUploadHandlerRemovingExif(t *testing.T) { func TestUploadHandlerRemovingExif(t *testing.T) {
t.Skip("no exiftool")
tempPath, err := ioutil.TempDir("", "uploads") tempPath, err := ioutil.TempDir("", "uploads")
require.NoError(t, err) require.NoError(t, err)
defer os.RemoveAll(tempPath) defer os.RemoveAll(tempPath)
...@@ -377,6 +380,7 @@ func TestUploadHandlerRemovingExif(t *testing.T) { ...@@ -377,6 +380,7 @@ func TestUploadHandlerRemovingExif(t *testing.T) {
} }
func TestUploadHandlerRemovingInvalidExif(t *testing.T) { func TestUploadHandlerRemovingInvalidExif(t *testing.T) {
t.Skip("no exiftool")
tempPath, err := ioutil.TempDir("", "uploads") tempPath, err := ioutil.TempDir("", "uploads")
require.NoError(t, err) require.NoError(t, err)
defer os.RemoveAll(tempPath) 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