diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2024-06-21 19:57:25 +0100 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2024-07-01 13:24:52 +0100 |
commit | 51589bc07dcf6a17f0e165ef3195b0a238c7ca69 (patch) | |
tree | 6d55d64e5d11b985d0ffa903623caea03454b8ad /main/src/test/resources | |
parent | 6342bf64b7bacdaafb4524e6809fddd1f27de9fc (diff) |
Code coverage and sonar fixes for PAP
Issue-ID: POLICY-5058
Change-Id: I85efd6b0b2ac498959bbaf23ebe1b2ba6e1c320e
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'main/src/test/resources')
-rw-r--r-- | main/src/test/resources/application-test-db.yaml | 14 | ||||
-rw-r--r-- | main/src/test/resources/simpleDeploy/createGroupDuplicateSubGroups.json | 53 |
2 files changed, 67 insertions, 0 deletions
diff --git a/main/src/test/resources/application-test-db.yaml b/main/src/test/resources/application-test-db.yaml new file mode 100644 index 00000000..725a3a76 --- /dev/null +++ b/main/src/test/resources/application-test-db.yaml @@ -0,0 +1,14 @@ +spring: + datasource: + url: jdbc:h2:mem:testdb + driverClassName: org.h2.Driver + jpa: + hibernate: + ddl-auto: create-drop + naming: + physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl + implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy + open-in-view: false + +pap: + name: "PapGroupDB" diff --git a/main/src/test/resources/simpleDeploy/createGroupDuplicateSubGroups.json b/main/src/test/resources/simpleDeploy/createGroupDuplicateSubGroups.json new file mode 100644 index 00000000..fa98b62a --- /dev/null +++ b/main/src/test/resources/simpleDeploy/createGroupDuplicateSubGroups.json @@ -0,0 +1,53 @@ +{ + "groups": [ + { + "name": "groupA", + "version": "200.2.3", + "description": "my description", + "pdpGroupState": "ACTIVE", + "properties": { + "hello": "world" + }, + "pdpSubgroups": [ + { + "pdpType": "pdpTypeA", + "desiredInstanceCount": 1, + "properties": { + "abc": "def" + }, + "supportedPolicyTypes": [ + { + "name": "typeA", + "version": "100.2.3" + } + ], + "pdpInstances": [ + { + "instanceId": "pdpA" + } + ], + "policies": [] + }, + { + "pdpType": "pdpTypeA", + "desiredInstanceCount": 1, + "properties": { + "abc": "def" + }, + "supportedPolicyTypes": [ + { + "name": "typeA", + "version": "100.2.3" + } + ], + "pdpInstances": [ + { + "instanceId": "pdpA" + } + ], + "policies": [] + } + ] + } + ] +} |