Now showing errors directly in the POST /bootstrap/create API response.

This avoids needing to check the log file each time.
This commit is contained in:
CalDescent
2021-10-09 11:02:21 +01:00
parent 17e65e422c
commit a3dcacade9
4 changed files with 107 additions and 125 deletions

View File

@@ -43,12 +43,12 @@ public class BootstrapTests extends Common {
}
@Test
public void testCanCreateBootstrap() throws DataException, InterruptedException, TransformationException, IOException {
public void testCheckRepositoryState() throws DataException, InterruptedException, TransformationException, IOException {
try (final Repository repository = RepositoryManager.getRepository()) {
this.buildDummyBlockchain(repository);
Bootstrap bootstrap = new Bootstrap(repository);
assertTrue(bootstrap.canCreateBootstrap());
assertTrue(bootstrap.checkRepositoryState());
}
}