@Override public OperationResult provisioningSelfTest(Task task) { OperationResult testResult = new OperationResult(PROVISIONING_SELF_TEST); // Give provisioning chance to run its own self-test provisioningService.provisioningSelfTest(testResult, task); testResult.computeStatus(); return testResult; }
@Test public void test050SelfTest() throws Exception { final String TEST_NAME = "test050SelfTest"; TestUtil.displayTestTitle(this, TEST_NAME); // GIVEN Task task = createTask(TEST_NAME); OperationResult testResult = new OperationResult(AbstractBasicDummyTest.class + "." + TEST_NAME); // WHEN provisioningService.provisioningSelfTest(testResult, task); // THEN testResult.computeStatus(); IntegrationTestTools.display(testResult); display("test result", testResult); // There may be warning about illegal key size on some platforms. As far as it is warning and not error we are OK // the system will fall back to a interoperable key size if (testResult.getStatus() != OperationResultStatus.SUCCESS && testResult.getStatus() != OperationResultStatus.WARNING) { AssertJUnit.fail("Self-test failed: "+testResult); } }