ZeppelinHubRepo implements NotebookRepo { @Override public void remove(String noteId, AuthenticationInfo subject) throws IOException { restApiClient.asyncDel(noteId); LOG.info("ZeppelinHub REST API removing note {} ", noteId); } ZeppelinHubRepo(ZeppelinConfiguration conf); @Override List<NoteInfo> list(AuthenticationInfo subject); @Override Note get(String noteId, AuthenticationInfo subject); @Override void save(Note note, AuthenticationInfo subject); @Override void remove(String noteId, AuthenticationInfo subject); @Override void close(); @Override Revision checkpoint(String noteId, String checkpointMsg, AuthenticationInfo subject); @Override Note get(String noteId, Revision rev, AuthenticationInfo subject); @Override List<Revision> revisionHistory(String noteId, AuthenticationInfo subject); static final String TOKEN_HEADER; }
@Test public void testRemoveNote() throws IOException { repo.remove("AAAAA", null); }
@Test public void testRemoveNoteError() throws IOException { repo.remove("BBBBB", null); }