Skip to content

Commit

Permalink
[MGPG-79] Fix integration test execution in environments without tty
Browse files Browse the repository at this point in the history
  • Loading branch information
Syquel committed Mar 10, 2021
1 parent a272e7d commit 8171fa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public void testInteractiveWithoutPassphrase() throws Exception
// then
assertThat( "Maven execution must fail", invocationResult.getExitCode(), not( 0 ) );
assertThat(
"Maven execution failed because pinentry input prompt timed out",
"Maven execution failed because no pinentry program is available",
buildLogContent,
containsString( "[GNUPG:] FAILURE sign 83886142" )
containsString( "[GNUPG:] FAILURE sign 67108949" )
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/gnupg/gpg-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
ignore-cache-for-signing

# Prevent pinentry input prompts from blocking integration tests
pinentry-timeout 1
pinentry-program pinentry-non-existent

0 comments on commit 8171fa1

Please sign in to comment.