Let tests run independently
@@ -28,19 +28,7 @@ import (
"github.com/stretchr/testify/require"
)
-func Test_ObjectHTTP(t *testing.T) {
- t.Run("GET", findObject)
- t.Run("HEAD", headObject)
- t.Run("PUT", putObject)
- t.Run("PATCH", patchObject)
- t.Run("DELETE", deleteObject)
- t.Run("PostReference", postReference)
- t.Run("PutReferences", putReferences)
- t.Run("DeleteReference", deleteReference)
- t.Run("Query", query)
-}
-
-func findObject(t *testing.T) {
+func TestFindObject(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPGet"
@@ -97,7 +85,7 @@ func findObject(t *testing.T) {
helper.AssertRequestFail(t, resp, err, nil)
}
-func headObject(t *testing.T) {
+func TestHeadObject(t *testing.T) {
t.Parallel()
cls := "TestObjectHTTPHead"
// test setup
@@ -129,7 +117,7 @@ func headObject(t *testing.T) {
helper.AssertRequestFail(t, resp, err, nil)
}
-func putObject(t *testing.T) {
+func TestPutObject(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPUpdate"
@@ -208,7 +196,7 @@ func putObject(t *testing.T) {
assert.Equal(t, expected, actual)
}
-func patchObject(t *testing.T) {
+func TestPatchObject(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPPatch"
@@ -307,7 +295,7 @@ func patchObject(t *testing.T) {
}
}
-func deleteObject(t *testing.T) {
+func TestDeleteObject(t *testing.T) {
t.Parallel()
var (
id = strfmt.UUID("21111111-1111-1111-1111-111111111111")
@@ -410,7 +398,7 @@ func deleteObject(t *testing.T) {
}
}
-func postReference(t *testing.T) {
+func TestPostReference(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPAddReference"
@@ -480,7 +468,7 @@ func postReference(t *testing.T) {
}
}
-func putReferences(t *testing.T) {
+func TestPutReferences(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPUpdateReferences"
@@ -595,7 +583,7 @@ func putReferences(t *testing.T) {
}
}
-func deleteReference(t *testing.T) {
+func TestDeleteReference(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPDeleteReference"
@@ -717,7 +705,7 @@ func deleteReference(t *testing.T) {
}
}
-func query(t *testing.T) {
+func TestQuery(t *testing.T) {
t.Parallel()
var (
cls = "TestObjectHTTPQuery"
