use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method duplicateSMIS.
@Test
public void duplicateSMIS() {
final String ipAddress = "smis_provider_ip";
final ServiceCodeException exception = new ServiceCodeException(API_PARAMETER_INVALID, "Duplicate NetworkSystem SMI-S provider already exists at IP address: {0}", new Object[] { ipAddress });
assertApiBadParameters("Duplicate NetworkSystem SMI-S provider already exists at IP address: " + ipAddress, exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method parentNotRoot.
@Test
public void parentNotRoot() {
final ServiceCodeException exception = new ServiceCodeException(API_PARAMETER_INVALID, "Parent tenant is not root tenant", null);
assertApiBadParameters("Parent tenant is not root tenant", exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method markedForDeletion.
@Test
public void markedForDeletion() {
final URI id = createTestId("AuthnProvider");
final ServiceCodeException exception = new ServiceCodeException(API_PARAMETER_INVALID, "AuthnProvider {0} is marked for deletion", new Object[] { id });
assertApiBadParameters("AuthnProvider " + id + " is marked for deletion", exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method cannotRegisterType.
@Test
public void cannotRegisterType() {
final String type = "systemType";
final ServiceCodeException exception = new ServiceCodeException(API_PARAMETER_INVALID, "Cannot register systems with type: {0}", new Object[] { type });
assertApiBadParameters("Cannot register systems with type: " + type, exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method nameExists.
@Test
public void nameExists() {
final ServiceCodeException exception = new ServiceCodeException(API_PARAMETER_INVALID, "A NetworkSystem with the same name already exists.", null);
assertApiBadParameters("A NetworkSystem with the same name already exists.", exception);
}
Aggregations