diff options
author | Amichai Hemli <amichai.hemli@intl.att.com> | 2019-10-06 13:17:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-10-06 13:17:32 +0000 |
commit | fccae62442353fea229184159a56e7a49ad3638c (patch) | |
tree | 1815f424036de84a8eb8ec959b73fe5ffb695646 /vid-automation/src/main | |
parent | 85f3d5c59775259524ac2a51c5976d09a004e56c (diff) | |
parent | 4617855cbc9c83289062c17d3be5a39a4ead48ff (diff) |
Merge "Add partner-name header sending to SDC"
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; + } + } |