use of com.sun.identity.cli.CLIRequest in project OpenAM by OpenRock.
the class AuthConfigTest method listAuthInstances.
@Parameters({ "realm" })
@Test(groups = { "cli-authconfig", "ops", "list-auth-instances" })
public void listAuthInstances(String realm) throws CLIException {
String[] param = { realm };
entering("listAuthInstances", param);
String[] args = { "list-auth-instances", CLIConstants.PREFIX_ARGUMENT_LONG + IArgument.REALM_NAME, realm };
CLIRequest req = new CLIRequest(null, args, getAdminSSOToken());
cmdManager.addToRequestQueue(req);
cmdManager.serviceRequestQueue();
exiting("listAuthInstances");
}
use of com.sun.identity.cli.CLIRequest in project OpenAM by OpenRock.
the class DataStoreTest method createDataStore.
@Parameters({ "realm" })
@Test(groups = { "cli-datastore", "ops", "create-datastore" })
public void createDataStore(String realm) throws CLIException {
String[] param = { realm };
entering("createDataStore", param);
String[] args = { "create-datastore", CLIConstants.PREFIX_ARGUMENT_LONG + IArgument.REALM_NAME, realm, CLIConstants.PREFIX_ARGUMENT_LONG + DatastoreOptions.DATASTORE_NAME, TEST_DATASTORE_NAME, CLIConstants.PREFIX_ARGUMENT_LONG + DatastoreOptions.DATASTORE_TYPE, TEST_DATASTORE_TYPE, CLIConstants.PREFIX_ARGUMENT_LONG + IArgument.ATTRIBUTE_VALUES, "sunIdRepoClass=com.sun.identity.idm.plugins.files.FilesRepo", "sunFilesIdRepoDirectory=/tmp/clitestdatastore" };
CLIRequest req = new CLIRequest(null, args, getAdminSSOToken());
cmdManager.addToRequestQueue(req);
cmdManager.serviceRequestQueue();
exiting("createDataStore");
}
use of com.sun.identity.cli.CLIRequest in project OpenAM by OpenRock.
the class DataStoreTest method listDataStores.
@Parameters({ "realm" })
@Test(groups = { "cli-datastore", "ops", "list-datastores" })
public void listDataStores(String realm) throws CLIException {
String[] param = { realm };
entering("listDataStores", param);
String[] args = { "list-datastores", CLIConstants.PREFIX_ARGUMENT_LONG + IArgument.REALM_NAME, realm };
CLIRequest req = new CLIRequest(null, args, getAdminSSOToken());
cmdManager.addToRequestQueue(req);
cmdManager.serviceRequestQueue();
exiting("listDataStores");
}
use of com.sun.identity.cli.CLIRequest in project OpenAM by OpenRock.
the class AuthConfigTest method listAuthConfigurations.
@Parameters({ "realm" })
@Test(groups = { "cli-authconfig", "ops", "list-auth-cfgs" })
public void listAuthConfigurations(String realm) throws CLIException, AMConfigurationException {
String[] param = { realm };
entering("listAuthConfigurations", param);
String[] args = { "list-auth-cfgs", CLIConstants.PREFIX_ARGUMENT_LONG + IArgument.REALM_NAME, realm };
CLIRequest req = new CLIRequest(null, args, getAdminSSOToken());
cmdManager.addToRequestQueue(req);
cmdManager.serviceRequestQueue();
exiting("listAuthConfigurations");
}
use of com.sun.identity.cli.CLIRequest in project OpenAM by OpenRock.
the class AuthConfigTest method createAuthInstance.
@Parameters({ "realm" })
@Test(groups = { "cli-authconfig", "ops", "create-auth-instance" })
public void createAuthInstance(String realm) throws CLIException, AMConfigurationException {
String[] param = { realm };
entering("createAuthInstance", param);
String[] args = { "create-auth-instance", CLIConstants.PREFIX_ARGUMENT_LONG + IArgument.REALM_NAME, realm, CLIConstants.PREFIX_ARGUMENT_LONG + AuthOptions.AUTH_INSTANCE_NAME, TEST_AUTH_INSTANCE, CLIConstants.PREFIX_ARGUMENT_LONG + AuthOptions.AUTH_INSTANCE_TYPE, TEST_AUTH_TYPE };
CLIRequest req = new CLIRequest(null, args, getAdminSSOToken());
cmdManager.addToRequestQueue(req);
cmdManager.serviceRequestQueue();
exiting("createAuthInstance");
}
Aggregations