mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Cleanup comments in secondary repo test
This commit is contained in:
parent
9ccdba9df6
commit
da458a55db
@ -42,7 +42,7 @@ func TestFillSecondaryGlobalOpts(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Test if RepositoryFile and PasswordFile are parsed correctly.
|
// Test if RepositoryFile and PasswordCommand are parsed correctly.
|
||||||
Opts: secondaryRepoOptions{
|
Opts: secondaryRepoOptions{
|
||||||
RepositoryFile: "backupDst",
|
RepositoryFile: "backupDst",
|
||||||
PasswordCommand: "echo secretDst",
|
PasswordCommand: "echo secretDst",
|
||||||
@ -69,7 +69,7 @@ func TestFillSecondaryGlobalOpts(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Test must fail on no repo given.
|
// Test must fail as PasswordFile and PasswordCommand are both given
|
||||||
Opts: secondaryRepoOptions{
|
Opts: secondaryRepoOptions{
|
||||||
Repo: "backupDst",
|
Repo: "backupDst",
|
||||||
PasswordFile: "passwordFileDst",
|
PasswordFile: "passwordFileDst",
|
||||||
@ -77,21 +77,21 @@ func TestFillSecondaryGlobalOpts(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Test must fail on no repo given.
|
// Test must fail as PasswordFile does not exist
|
||||||
Opts: secondaryRepoOptions{
|
Opts: secondaryRepoOptions{
|
||||||
Repo: "backupDst",
|
Repo: "backupDst",
|
||||||
PasswordFile: "NonExistingFile",
|
PasswordFile: "NonExistingFile",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Test must fail on no repo given.
|
// Test must fail as PasswordCommand does not exist
|
||||||
Opts: secondaryRepoOptions{
|
Opts: secondaryRepoOptions{
|
||||||
Repo: "backupDst",
|
Repo: "backupDst",
|
||||||
PasswordCommand: "notEmpty",
|
PasswordCommand: "notEmpty",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Test must fail on no repo given.
|
// Test must fail as no password is given.
|
||||||
Opts: secondaryRepoOptions{
|
Opts: secondaryRepoOptions{
|
||||||
Repo: "backupDst",
|
Repo: "backupDst",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user