diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-04-26 06:22:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-26 06:22:34 +0000 |
commit | cf71aaf1152f07aefd17cb022335a859ad49b657 (patch) | |
tree | 841d6009d2c4ea52dac3280abddd4d28644da727 /common | |
parent | 0d9e2a9146bc306afe6e6a87381b9f95adae2d78 (diff) | |
parent | df6508f90ffb0247b94a7357035e36af61b4f207 (diff) |
Merge "Fixed issues found in integration testing"
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); |