- tx.submit().checkedGet();
- LOG.info("DataStore test data cleaned up");
- } catch (TransactionCommitFailedException e) {
- LOG.info("Failed to cleanup DataStore test data");
+ tx.commit().get();
+ LOG.debug("DataStore config test data cleaned up");
+ } catch (final InterruptedException | ExecutionException e) {
+ LOG.info("Failed to cleanup DataStore configtest data");
+ throw new IllegalStateException(e);
+ }
+
+ tx = dataBroker.newWriteOnlyTransaction();
+ tx.put(LogicalDatastoreType.OPERATIONAL, TEST_EXEC_IID, data);
+ try {
+ tx.commit().get();
+ LOG.debug("DataStore operational test data cleaned up");
+ } catch (final InterruptedException | ExecutionException e) {
+ LOG.info("Failed to cleanup DataStore operational test data");