aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java
blob: 8194d87ac5cc7e4e6d2d31397f5ab73768223973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.onap.simulator.presetGenerator.presets.BasePresets;

import vid.automation.test.infra.Features;

/**
 * Created by itzikliderman on 27/12/2017.
 */
public abstract class BaseMSOPreset extends BasePreset {

    public static String getRequestBodyWithTestApiOnly() {
        if (Features.FLAG_ADD_MSO_TESTAPI_FIELD.isActive()) {
            return "" +
                    "{" +
                    "  \"requestDetails\": { " +
                    "    \"requestParameters\": { " +
                    "      \"testApi\": \"GR_API\" " +
                    "    } " +
                    "  } " +
                    "} " +
                    "";
        } else {
            return null;
        }
    }

    @Override
    protected String getRootPath() {
        return "/mso";
    }
}