diff options
author | sebdet <sebastien.determe@intl.att.com> | 2019-04-26 13:04:08 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2019-04-26 13:04:08 +0200 |
commit | 5415b26467f198856b3149c11827a93e2ed8a72a (patch) | |
tree | 71546e21f21b3a0fe1b373bf291d69e0d9caa101 /src/test/java/org/onap | |
parent | 373b07b5c7f7e74cffb3a7250a691cb649856b94 (diff) |
Change Yaml to Json payload
Change the operational policy payload from Yaml to a JSon, yaml being
embedded as URLEncoded
Issue-ID: CLAMP-359
Change-Id: I8c97bb155e6136ce37c29a65a7d9d85e21fedd61
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/test/java/org/onap')
-rw-r--r-- | src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java b/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java index 76e29c31f..b12ca89f5 100644 --- a/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java +++ b/src/test/java/org/onap/clamp/policy/microservice/OperationalPolicyPayloadTest.java @@ -43,8 +43,10 @@ public class OperationalPolicyPayloadTest { JsonObject jsonConfig = new GsonBuilder().create().fromJson( ResourceFileUtil.getResourceAsString("tosca/operational-policy-properties.json"), JsonObject.class); OperationalPolicy policy = new OperationalPolicy("testPolicy", null, jsonConfig); - assertThat(policy.createPolicyPayload()) + assertThat(policy.createPolicyPayloadYaml()) .isEqualTo(ResourceFileUtil.getResourceAsString("tosca/operational-policy-payload.yaml")); + assertThat(policy.createPolicyPayload()) + .isEqualTo(ResourceFileUtil.getResourceAsString("tosca/operational-policy-payload.json")); } @Test |