@@ -3,11 +3,10 @@ package config_test
33import (
44 "testing"
55
6+ "github.com/artefactual-sdps/preprocessing-base/internal/config"
67 "github.com/artefactual-sdps/temporal-activities/bagcreate"
78 "gotest.tools/v3/assert"
89 "gotest.tools/v3/fs"
9-
10- "github.com/artefactual-sdps/preprocessing-base/internal/config"
1110)
1211
1312const testConfig = `# Config
@@ -66,7 +65,7 @@ func TestConfig(t *testing.T) {
6665 name : "Errors when configuration values are not valid" ,
6766 configFile : "preprocessing.toml" ,
6867 wantFound : true ,
69- wantErr : `invalid configuration:
68+ wantErr : `invalid configuration
7069SharedPath: missing required value
7170Temporal.TaskQueue: missing required value
7271Temporal.WorkflowName: missing required value` ,
@@ -83,7 +82,7 @@ workflowName = "preprocessing"
8382maxConcurrentSessions = -1
8483` ,
8584 wantFound : true ,
86- wantErr : `invalid configuration:
85+ wantErr : `invalid configuration
8786Worker.MaxConcurrentSessions: -1 is less than the minimum value (1)` ,
8887 },
8988 {
@@ -98,7 +97,7 @@ workflowName = "preprocessing"
9897checksumAlgorithm = "unknown"
9998` ,
10099 wantFound : true ,
101- wantErr : `invalid configuration:
100+ wantErr : `invalid configuration
102101Bagit.ChecksumAlgorithm: invalid value "unknown", must be one of (md5, sha1, sha256, sha512)` ,
103102 },
104103 {
0 commit comments