diff options
author | Byung-Woo Jun <byung-woo.jun@est.tech> | 2019-05-02 11:01:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-02 11:01:02 +0000 |
commit | 0149a3b05af8417fa544c7b4138e8e3f8507e1cf (patch) | |
tree | cbbf64eed9b452717ca6a3db2bc59573f47965a1 /common | |
parent | 3d74a5add7424aa490f70e2a4453048028f5d882 (diff) | |
parent | ac9387ceb0d2a4f1e1dd85be4e6d7818ab83363d (diff) |
Merge "Fixed issues found in integration testing" into dublin
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/rest/service/HttpRestServiceProviderImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/main/java/org/onap/so/rest/service/HttpRestServiceProviderImpl.java b/common/src/main/java/org/onap/so/rest/service/HttpRestServiceProviderImpl.java index 8e6ebab43a..a627e82802 100644 --- a/common/src/main/java/org/onap/so/rest/service/HttpRestServiceProviderImpl.java +++ b/common/src/main/java/org/onap/so/rest/service/HttpRestServiceProviderImpl.java @@ -96,7 +96,7 @@ public class HttpRestServiceProviderImpl implements HttpRestServiceProvider { private <T> Optional<T> createOptional(final ResponseEntity<T> response, final String url, final HttpMethod httpMethod) { - if (!response.getStatusCode().equals(HttpStatus.OK)) { + if (!response.getStatusCode().equals(HttpStatus.OK) && !response.getStatusCode().equals(HttpStatus.CREATED)) { final String message = "Unable to invoke HTTP " + httpMethod + " using URL: " + url + ", Response Code: " + response.getStatusCode(); LOGGER.error(message); |