diff options
author | Chenfei Gao <cgao@research.att.com> | 2019-04-02 08:55:17 -0400 |
---|---|---|
committer | Chenfei Gao <cgao@research.att.com> | 2019-04-03 16:56:17 -0400 |
commit | e156fb8bf79ee361793af0aef4db5228c4c16f20 (patch) | |
tree | f2cb030cf8811a1912d311baac3e7cc3dd874699 /packages/policy-api-tarball | |
parent | a53aca032be0550f856c7eb8de5c8d492b7dd0ca (diff) |
Implement policy provider functions
Includes:
a) Implement policy provider functions
b) Implement policy type provider functions
c) Implement legacy guard policy provider functions
d) Implement legacy operational policy provider functions
e) Modify API endpoints to align with provider functions
f) Hook up API statistics counter
Junit tests for providers and new endpoints will be in next patch/review.
Issue-ID: POLICY-1441
Change-Id: I113de95f6e0ea5f5436c072536f5e9a178988e5e
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Diffstat (limited to 'packages/policy-api-tarball')
-rw-r--r-- | packages/policy-api-tarball/src/main/resources/etc/defaultConfig.json | 8 | ||||
-rw-r--r-- | packages/policy-api-tarball/src/main/resources/etc/s3pConfig.json | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/packages/policy-api-tarball/src/main/resources/etc/defaultConfig.json b/packages/policy-api-tarball/src/main/resources/etc/defaultConfig.json index f7aaf393..260fac52 100644 --- a/packages/policy-api-tarball/src/main/resources/etc/defaultConfig.json +++ b/packages/policy-api-tarball/src/main/resources/etc/defaultConfig.json @@ -7,5 +7,13 @@ "password": "zb!XztG34", "https": true, "aaf": false + }, + "databaseProviderParameters": { + "name": "PolicyProviderParameterGroup", + "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl", + "databaseUrl": "jdbc:mariadb://localhost:3306/policy", + "databaseUser": "policy", + "databasePassword": "UDAxaWNZ", + "persistenceUnit": "ToscaConceptMariaDBTest" } } diff --git a/packages/policy-api-tarball/src/main/resources/etc/s3pConfig.json b/packages/policy-api-tarball/src/main/resources/etc/s3pConfig.json index 6df43f77..e0ed3fb9 100644 --- a/packages/policy-api-tarball/src/main/resources/etc/s3pConfig.json +++ b/packages/policy-api-tarball/src/main/resources/etc/s3pConfig.json @@ -7,5 +7,13 @@ "password": "zb!XztG34", "https": true, "aaf": false + }, + "databaseProviderParameters": { + "name": "PolicyProviderParameterGroup", + "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl", + "databaseUrl": "jdbc:mariadb://localhost:3306/policy", + "databaseUser": "policy", + "databasePassword": "UDAxaWNZ", + "persistenceUnit": "ToscaConceptMariaDBTest" } }
\ No newline at end of file |