Skip to content

Commit

Permalink
Update tests to reflect new HC public pgp keys. (#11446) (#11449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff authored Apr 23, 2021
1 parent 3b74fa1 commit 7d3cc08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion command/operator_generate_root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func TestOperatorGenerateRootCommand_Run(t *testing.T) {
t.Parallel()

pgpKey := "keybase:hashicorp"
pgpFingerprint := "91a6e7f85d05c65630bef18951852d87348ffc4c"
pgpFingerprint := "c874011f0ab405110d02105534365d9472d7468f"

client, closer := testVaultServer(t)
defer closer()
Expand Down
4 changes: 2 additions & 2 deletions command/operator_rekey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func TestOperatorRekeyCommand_Run(t *testing.T) {
t.Parallel()

pgpKey := "keybase:hashicorp"
pgpFingerprints := []string{"91a6e7f85d05c65630bef18951852d87348ffc4c"}
pgpFingerprints := []string{"c874011f0ab405110d02105534365d9472d7468f"}

client, closer := testVaultServer(t)
defer closer()
Expand Down Expand Up @@ -396,7 +396,7 @@ func TestOperatorRekeyCommand_Run(t *testing.T) {
t.Parallel()

pgpKey := "keybase:hashicorp"
// pgpFingerprints := []string{"91a6e7f85d05c65630bef18951852d87348ffc4c"}
// pgpFingerprints := []string{"c874011f0ab405110d02105534365d9472d7468f"}

client, keys, closer := testVaultServerUnseal(t)
defer closer()
Expand Down
2 changes: 1 addition & 1 deletion helper/pgpkeys/flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestPubKeyFilesFlagSetKeybase(t *testing.T) {
exp := []string{
"0f801f518ec853daff611e836528efcac6caa3db",
"cf3d4694c9f57b28cb4092c2eb832c67eb5e8957",
"91a6e7f85d05c65630bef18951852d87348ffc4c",
"c874011f0ab405110d02105534365d9472d7468f",
}

if !reflect.DeepEqual(fingerprints, exp) {
Expand Down
2 changes: 1 addition & 1 deletion helper/pgpkeys/keybase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestFetchKeybasePubkeys(t *testing.T) {

exp := []string{
"0f801f518ec853daff611e836528efcac6caa3db",
"91a6e7f85d05c65630bef18951852d87348ffc4c",
"c874011f0ab405110d02105534365d9472d7468f",
}

if !reflect.DeepEqual(fingerprints, exp) {
Expand Down

0 comments on commit 7d3cc08

Please sign in to comment.