diff options
author | Alexey Sandler <alexey.sandler@intl.att.com> | 2019-10-31 09:42:12 +0200 |
---|---|---|
committer | Alexey Sandler <alexey.sandler@intl.att.com> | 2019-10-31 13:03:18 +0200 |
commit | 5417f56b89f4780b3c43e5430aa38cc1035a2f1c (patch) | |
tree | a7f834c0723f782d25a8fe188081878c0b75a421 /vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java | |
parent | 94b51c73b499978aaddbb115de2b0f16f2d4db96 (diff) |
register SyncRestClient to work with new MetricLogClient Filter
Issue-ID: VID-253
add API test that checks request headers logged tometrics log
Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
Change-Id: Ic2bfb99d40482b939ddaa4ba5c694f1042c3dd69
Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java index 123737f4f..9daf9f4b9 100644 --- a/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTestUtil.java @@ -32,8 +32,6 @@ import static com.xebialabs.restito.semantics.Condition.post; import static com.xebialabs.restito.semantics.Condition.uri; import static com.xebialabs.restito.semantics.Condition.withHeader; import static net.javacrumbs.jsonunit.JsonAssert.assertJsonEquals; -import static org.onap.vid.logging.Headers.PARTNER_NAME; -import static org.onap.vid.utils.Logging.ONAP_REQUEST_ID_HEADER_KEY; import com.fasterxml.jackson.databind.ObjectMapper; import com.xebialabs.restito.semantics.Action; @@ -52,7 +50,6 @@ import org.glassfish.grizzly.http.Method; import org.glassfish.grizzly.http.util.HttpStatus; import org.json.JSONObject; import org.junit.Assert; -import org.onap.portalsdk.core.util.SystemProperties; import org.onap.vid.changeManagement.RelatedInstanceList; import org.onap.vid.changeManagement.RequestDetailsWrapper; import org.onap.vid.changeManagement.WorkflowRequestDetail; @@ -234,10 +231,7 @@ class MsoRestClientTestUtil implements AutoCloseable { withHeader(HttpHeaders.AUTHORIZATION), withHeader(HttpHeaders.ACCEPT), withHeader(HttpHeaders.CONTENT_TYPE), - withHeader(MsoRestClientNew.X_FROM_APP_ID), - withHeader(PARTNER_NAME.getHeaderName(), "VID.VID"), - withHeader(SystemProperties.ECOMP_REQUEST_ID), - withHeader(ONAP_REQUEST_ID_HEADER_KEY) + withHeader(MsoRestClientNew.X_FROM_APP_ID) ); } |