From 04a527e543e0ecc35441e67f4c991713c5519326 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Thu, 11 Apr 2019 11:29:16 -0400 Subject: Fix junits broken with policy-id change Several junit tests were broken when the json-encoded names were changed for the fields within ToscaPolicyIdentifierOptVersion. This review fixes those junit tests. Change-Id: I963190b7792a2ebc3165ef04c74f4671c41c37da Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- .../resources/simpleDeploy/getPolicyReqNullVersion.json | 2 +- main/src/test/resources/simpleDeploy/request.json | 4 ++-- main/src/test/resources/simpleDeploy/requestBase.json | 4 ++-- .../resources/simpleDeploy/updateGroupReqMultiple.json | 16 ++++++++-------- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'main') diff --git a/main/src/test/resources/simpleDeploy/getPolicyReqNullVersion.json b/main/src/test/resources/simpleDeploy/getPolicyReqNullVersion.json index bf2d132b..5f9f8c9e 100644 --- a/main/src/test/resources/simpleDeploy/getPolicyReqNullVersion.json +++ b/main/src/test/resources/simpleDeploy/getPolicyReqNullVersion.json @@ -1,7 +1,7 @@ { "policies": [ { - "name": "policyA" + "policy-id": "policyA" } ] } diff --git a/main/src/test/resources/simpleDeploy/request.json b/main/src/test/resources/simpleDeploy/request.json index 060637cc..0336f3fd 100644 --- a/main/src/test/resources/simpleDeploy/request.json +++ b/main/src/test/resources/simpleDeploy/request.json @@ -1,8 +1,8 @@ { "policies": [ { - "name": "policyA", - "version": "1.2.3" + "policy-id": "policyA", + "policy-version": "1.2.3" } ] } diff --git a/main/src/test/resources/simpleDeploy/requestBase.json b/main/src/test/resources/simpleDeploy/requestBase.json index 67fcdcb6..c65a3ae3 100644 --- a/main/src/test/resources/simpleDeploy/requestBase.json +++ b/main/src/test/resources/simpleDeploy/requestBase.json @@ -1,4 +1,4 @@ { - "name": "policyA", - "version": "1.2.3" + "policy-id": "policyA", + "policy-version": "1.2.3" } diff --git a/main/src/test/resources/simpleDeploy/updateGroupReqMultiple.json b/main/src/test/resources/simpleDeploy/updateGroupReqMultiple.json index 3d4684cc..fa367835 100644 --- a/main/src/test/resources/simpleDeploy/updateGroupReqMultiple.json +++ b/main/src/test/resources/simpleDeploy/updateGroupReqMultiple.json @@ -1,20 +1,20 @@ { "policies": [ { - "name": "policyA", - "version": "1.2.3" + "policy-id": "policyA", + "policy-version": "1.2.3" }, { - "name": "policyB", - "version": "1.2.3" + "policy-id": "policyB", + "policy-version": "1.2.3" }, { - "name": "policyC", - "version": "1.2.3" + "policy-id": "policyC", + "policy-version": "1.2.3" }, { - "name": "policyD", - "version": "1.2.3" + "policy-id": "policyD", + "policy-version": "1.2.3" } ] } -- cgit 1.2.3-korg