Skip to content

Commit

Permalink
[AS7-1180] add test case for read installed drivers list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Zhang authored and kabir committed Jul 6, 2011
1 parent 618bd25 commit 1509436
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,27 @@ public void testAddAndRemoveSameName() throws Exception {
}
}

@Test
public void testReadInstalledDrivers() throws Exception {

final ModelNode address = new ModelNode();
address.add("subsystem", "datasources");
address.protect();

final ModelNode operation = new ModelNode();
operation.get(OP).set("installed-drivers-list");
operation.get(OP_ADDR).set(address);

final ModelNode result = getModelControllerClient().execute(operation);
Assert.assertEquals(SUCCESS, result.get(OUTCOME).asString());

final ModelNode result2 = result.get(RESULT).get(0);
Assert.assertTrue(result2 != null);
Assert.assertTrue(result2.hasDefined("driver-module-name"));
Assert.assertTrue(result2.hasDefined("module-slot"));
Assert.assertTrue(result2.hasDefined("driver-name"));
}

public List<ModelNode> marshalAndReparseDsResources() throws Exception {

final ModelNode address = new ModelNode();
Expand Down

0 comments on commit 1509436

Please sign in to comment.