use of org.apache.cloudstack.api.command.admin.template.RegisterTemplateCmdByAdmin in project cloudstack by apache.
the class RegisterTemplateCmdByAdminTest method testZoneidAndZoneIdListEmpty.
@Test
public void testZoneidAndZoneIdListEmpty() throws ResourceAllocationException {
try {
registerTemplateCmdByAdmin = new RegisterTemplateCmdByAdmin();
registerTemplateCmdByAdmin.execute();
} catch (ServerApiException e) {
if (e.getErrorCode() != ApiErrorCode.PARAM_ERROR) {
Assert.fail("Api should fail when both zoneid and zoneids aren't passed");
}
}
}
Aggregations