diff options
author | MichaelMorris <michael.morris@est.tech> | 2019-04-25 11:31:45 +0000 |
---|---|---|
committer | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-05-02 05:51:46 +0000 |
commit | ac9387ceb0d2a4f1e1dd85be4e6d7818ab83363d (patch) | |
tree | 7c7d78f6837410e2b212f1075767b87964133aac /common/src/main/java/org | |
parent | 5e1bc9f09bec49b57bde13a1c96158eb2b8290da (diff) |
Fixed issues found in integration testing
Issue-ID: SO-1814
Change-Id: Ica6929e10cb40d535657eefc9786090af996ba32
Signed-off-by: MichaelMorris <michael.morris@est.tech>
(cherry picked from commit df6508f90ffb0247b94a7357035e36af61b4f207)
Diffstat (limited to 'common/src/main/java/org')
-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); |