aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-21 12:12:44 +0200
committerJakob Unterwurzacher2021-06-21 12:12:44 +0200
commit05b813f2026ebe6bff33cb600775823ee8a7df6e (patch)
tree824954a84a35dde6411fabde1be4dc7c004fc51d /tests
parent689b74835bd38ebaf87ba0e205c10b9594e51863 (diff)
nametransform: rename BadNameFlag to BadnameSuffix
Diffstat (limited to 'tests')
-rw-r--r--tests/cli/cli_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go
index 08c1b83..df36822 100644
--- a/tests/cli/cli_test.go
+++ b/tests/cli/cli_test.go
@@ -764,7 +764,7 @@ func TestBadname(t *testing.T) {
}
// Case 2: File with invalid suffix in plain name but valid cipher file
- file = mnt + "/" + validFileName + nametransform.BadNameFlag
+ file = mnt + "/" + validFileName + nametransform.BadnameSuffix
err = ioutil.WriteFile(file, []byte("Content Case 2."), 0600)
if err != nil {
t.Fatal(err)
@@ -819,12 +819,12 @@ func TestBadname(t *testing.T) {
searchstrings := []string{
validFileName,
- validFileName + nametransform.BadNameFlag,
+ validFileName + nametransform.BadnameSuffix,
"",
- validFileName + invalidSuffix + nametransform.BadNameFlag,
- encryptedfilename[:len(encryptedfilename)-2] + invalidSuffix + nametransform.BadNameFlag,
+ validFileName + invalidSuffix + nametransform.BadnameSuffix,
+ encryptedfilename[:len(encryptedfilename)-2] + invalidSuffix + nametransform.BadnameSuffix,
"",
- validFileName + "wrongPattern" + nametransform.BadNameFlag}
+ validFileName + "wrongPattern" + nametransform.BadnameSuffix}
results := []bool{false, false, true, false, false, true, true}
var filecontent string
var filebytes []byte