diff options
author | Eylon Malin <eylon.malin@intl.att.com> | 2019-10-31 08:24:28 +0200 |
---|---|---|
committer | Eylon Malin <eylon.malin@intl.att.com> | 2019-10-31 08:24:28 +0200 |
commit | 2faaef3c1c05fcef0cbcda7f77f6c173826e57b6 (patch) | |
tree | b706700bb396599de60b7064767a4705dc3e1f4f /vid-automation/src/main/java/org/onap | |
parent | ccc560d4e557df5a8df1748c87820b5eebc4a262 (diff) |
assert headers in AAI base preset
Issue-ID: VID-253
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: Ic86ed177602f997f5040351f4a4fb3c79ed545a2
Diffstat (limited to 'vid-automation/src/main/java/org/onap')
-rw-r--r-- | vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java index 3e99a38d9..c3c89c5d6 100644 --- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java @@ -1,12 +1,20 @@ package org.onap.simulator.presetGenerator.presets.BasePresets; -/** - * Created by itzikliderman on 27/12/2017. - */ +import java.util.Map; + public abstract class BaseAAIPreset extends BasePreset { @Override protected String getRootPath() { return "/aai/v.."; } + + @Override + public Map<String, String> getRequestHeaders() { + Map<String, String> map = super.getRequestHeaders(); + map.put("X-ONAP-PartnerName", "VID.VID"); + map.put("X-InvocationID", "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}"); + map.put("X-ONAP-RequestID", "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}"); + return map; + } } |