Skip to content

Commit

Permalink
make sure default scenario does not yield remote unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Sep 19, 2023
1 parent c3ec544 commit a75f74a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func prepareFetchVerifyTests(dropPath, targetDir, targetFilePath, hashTargetFile
}

func TestVerify(t *testing.T) {
log, _ := logger.New("", false)
log, obs := logger.NewTesting("TestVerify")
targetDir, err := ioutil.TempDir(os.TempDir(), "")
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -214,6 +214,10 @@ func TestVerify(t *testing.T) {
err = testVerifier.Verify(beatSpec, version, false)
require.NoError(t, err)

// log message informing remote PGP was skipped
logs := obs.FilterMessageSnippet("Skipped remote PGP located at")
require.Equal(t, 0, logs.Len())

os.Remove(artifact)
os.Remove(artifact + ".sha512")
os.RemoveAll(config.DropPath)
Expand Down

0 comments on commit a75f74a

Please sign in to comment.