diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-10-06 12:58:38 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-10-06 12:59:37 +0300 |
commit | 4617855cbc9c83289062c17d3be5a39a4ead48ff (patch) | |
tree | 271488ab6a61e8f4183a1f7f38882bb12c0f0d02 /vid-automation/src/main | |
parent | 69257dc9c6f3e04b677eecffbf8f3ebb535b0be1 (diff) |
Add partner-name header sending to SDC
Issue-ID: VID-253
Change-Id: I471ceea513b62f5bc83f8496e15b647f7d888926
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-automation/src/main')
-rw-r--r-- | vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java index d5f8b84cd..ad8dfb3ac 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java @@ -1,12 +1,19 @@ package org.onap.simulator.presetGenerator.presets.BasePresets; -/** - * Created by itzikliderman on 27/12/2017. - */ +import java.util.Map; + public abstract class BaseSDCPreset extends BasePreset { @Override protected String getRootPath() { return "/sdc/v1/catalog/services"; } + + @Override + public Map<String, String> getRequestHeaders() { + Map<String, String> map = super.getRequestHeaders(); + map.put("X-ONAP-PartnerName", "VID.VID"); + return map; + } + } |