chore: use generic host names in a deploy comment and test labels
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -19,7 +19,7 @@ func TestSealedValueOpensOnlyWhereItBelongs(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
secret := []byte("plainly fake private key")
|
||||
sealed, err := sealer.Seal("default/carina", secret)
|
||||
sealed, err := sealer.Seal("default/host-a", secret)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -33,10 +33,10 @@ func TestSealedValueOpensOnlyWhereItBelongs(t *testing.T) {
|
||||
label string
|
||||
wantErr error
|
||||
}{
|
||||
{name: "own identity, own label", with: own, label: "default/carina"},
|
||||
{name: "backup identity", with: backup, label: "default/carina"},
|
||||
{name: "copied to another record", with: own, label: "default/nebula", wantErr: ErrWrongLabel},
|
||||
{name: "a stranger's identity", with: stranger, label: "default/carina", wantErr: age.ErrIncorrectIdentity},
|
||||
{name: "own identity, own label", with: own, label: "default/host-a"},
|
||||
{name: "backup identity", with: backup, label: "default/host-a"},
|
||||
{name: "copied to another record", with: own, label: "default/host-b", wantErr: ErrWrongLabel},
|
||||
{name: "a stranger's identity", with: stranger, label: "default/host-a", wantErr: age.ErrIncorrectIdentity},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user