mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix response status in create tenant request
This commit is contained in:
@@ -43,7 +43,7 @@ public class Tenant extends ModelRequest<Tenant>
|
|||||||
.contentType(ContentType.JSON);
|
.contentType(ContentType.JSON);
|
||||||
Response returnedResponse = request.contentType(ContentType.JSON).body(json)
|
Response returnedResponse = request.contentType(ContentType.JSON).body(json)
|
||||||
.post(String.format("%s/%s", restProperties.envProperty().getFullServerUrl(), "alfresco/service/api/tenants")).andReturn();
|
.post(String.format("%s/%s", restProperties.envProperty().getFullServerUrl(), "alfresco/service/api/tenants")).andReturn();
|
||||||
if (!String.valueOf(returnedResponse.getStatusCode()).equals(HttpStatus.OK.toString()))
|
if (!Integer.valueOf(returnedResponse.getStatusCode()).equals(HttpStatus.OK.value()))
|
||||||
{
|
{
|
||||||
throw new Exception(String.format("Tenant is not created: %s", returnedResponse.asString()));
|
throw new Exception(String.format("Tenant is not created: %s", returnedResponse.asString()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user