Merge automation from ECOMP's repository
[vid.git] / vid-automation / src / main / java / org / onap / simulator / presetGenerator / presets / aaf / AAFGetBasicAuthPreset.java
1 package org.onap.simulator.presetGenerator.presets.aaf;
2
3 import com.google.common.collect.ImmutableMap;
4 import org.onap.simulator.presetGenerator.presets.BasePresets.BasePreset;
5 import org.springframework.http.HttpMethod;
6
7 import java.util.Map;
8
9 public class AAFGetBasicAuthPreset extends BasePreset {
10     public static final String VALID_AUTH_VALUE = "bTEyMzRAYXR0LmNvbTphYWFh";
11
12     @Override
13     public HttpMethod getReqMethod() {
14         return HttpMethod.GET;
15     }
16
17     @Override
18     public String getReqPath() {
19         return "/authn/basicAuth";
20     }
21
22     @Override
23     protected String getRootPath() {
24         return "";
25     }
26
27     @Override
28     public Map<String, String> getRequestHeaders() {
29         return ImmutableMap.of("Authorization", "Basic " + VALID_AUTH_VALUE);
30     }
31 }