Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
549353b94f |
@@ -18,6 +18,8 @@ import (
|
|||||||
// vault, replaced that vault's keys, so that none of its secrets could be
|
// vault, replaced that vault's keys, so that none of its secrets could be
|
||||||
// decrypted any more. Each must refuse, change nothing, and leave every
|
// decrypted any more. Each must refuse, change nothing, and leave every
|
||||||
// vault's secret readable through its passphrase unlocker.
|
// vault's secret readable through its passphrase unlocker.
|
||||||
|
//
|
||||||
|
//nolint:paralleltest // t.Setenv forbids parallel subtests
|
||||||
func TestCreateExistingVaultChangesNothing(t *testing.T) {
|
func TestCreateExistingVaultChangesNothing(t *testing.T) {
|
||||||
t.Setenv(secret.EnvMnemonic, testMnemonic)
|
t.Setenv(secret.EnvMnemonic, testMnemonic)
|
||||||
t.Setenv(secret.EnvUnlockPassphrase, testPassphrase)
|
t.Setenv(secret.EnvUnlockPassphrase, testPassphrase)
|
||||||
@@ -96,6 +98,8 @@ func TestCreateExistingVaultChangesNothing(t *testing.T) {
|
|||||||
// `secret vault create` stopped at the passphrase prompt left a vault with
|
// `secret vault create` stopped at the passphrase prompt left a vault with
|
||||||
// no unlocker, which neither command would then create again. Each must ask
|
// no unlocker, which neither command would then create again. Each must ask
|
||||||
// for the passphrase before writing anything.
|
// for the passphrase before writing anything.
|
||||||
|
//
|
||||||
|
//nolint:paralleltest // t.Setenv forbids parallel subtests
|
||||||
func TestStopAtPassphrasePromptLeavesNothing(t *testing.T) {
|
func TestStopAtPassphrasePromptLeavesNothing(t *testing.T) {
|
||||||
t.Setenv(secret.EnvMnemonic, testMnemonic)
|
t.Setenv(secret.EnvMnemonic, testMnemonic)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user