Fix issue 2192: dsconfig delete-backend doesn't work
The delete-xxx sub-command was silently failing in non-interactive mode because it was silently prompting for confirmation and defaulting to "no". This change also re-enables the file system entry cache unit tests which were failing as a result of this bug.
| | |
| | | |
| | | // Confirm deletion. |
| | | private boolean confirmDeletion(ConsoleApplication app) throws CLIException { |
| | | if (app.isInteractive()) { |
| | | Message prompt = INFO_DSCFG_CONFIRM_DELETE.get(relation |
| | | .getUserFriendlyName()); |
| | | app.println(); |
| | |
| | | .getUserFriendlyName()); |
| | | app.printVerboseMessage(msg); |
| | | return false; |
| | | } else { |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | } |
| | |
| | | /** |
| | | * Tests cache persistence with consistent backend. |
| | | */ |
| | | @Test(enabled=false, groups = "slow") |
| | | @Test(groups = "slow") |
| | | @SuppressWarnings("unchecked") |
| | | public void testCachePersistence() |
| | | throws Exception |
| | |
| | | /** |
| | | * Tests cache persistence with inconsistent backend. |
| | | */ |
| | | @Test(enabled=false, groups = "slow") |
| | | @Test(groups = "slow") |
| | | @SuppressWarnings("unchecked") |
| | | public void testCachePersistenceInconsistent() |
| | | throws Exception |