diff options
author | MichaelMorris <michael.morris@est.tech> | 2019-04-25 11:31:45 +0000 |
---|---|---|
committer | MichaelMorris <michael.morris@est.tech> | 2019-04-25 11:31:45 +0000 |
commit | df6508f90ffb0247b94a7357035e36af61b4f207 (patch) | |
tree | 3a513e4690d69dbf6cbfe309f38a6bc22df2a3ca /common/src | |
parent | 1058540684e0d35dcd4d1623f217db3c150ba8d6 (diff) |
Fixed issues found in integration testing
Issue-ID: SO-1814
Change-Id: Ica6929e10cb40d535657eefc9786090af996ba32
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Diffstat (limited to 'common/src')
-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); |