policy/drools-pdp.git
6 years agoEliminate hanging when updating Drools containers 91/12391/1
Ralph Straubs [Thu, 14 Sep 2017 08:51:45 +0000 (03:51 -0500)]
Eliminate hanging when updating Drools containers

'PolicyContainer.updateToVersion(...)' now hangs unless the Drools session
threads are stopped prior to the update. This wasn't an issue in the past,
and it isn't clear what causes it to happen now. It also happened in the
Junit tests I am currently working on.

In any case, the 'updateToVersion' method has now been changed to stop
the threads prior to an update attempt, do the update, and then restart
the threads.

Change-Id: I577a67c6e99a68bcbe3c2f476f93c0a72b93451a
Issue-ID: POLICY-234
Signed-off-by: Ralph Straubs <rs8887@att.com>
6 years agowait until port is open in HttpClient junit tests 87/12187/1
Jorge Hernandez [Wed, 13 Sep 2017 12:28:12 +0000 (07:28 -0500)]
wait until port is open in HttpClient junit tests

As a note, HttpServer tests have retries at the http level.

Hopefully this will resolve some timing issues and intermittent junits
failures in LF jenkins environment.

Issue-ID: POLICY-109
Change-Id: I44628b60d4912be5fc4639e0048791f5655bbd01
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoMerge "missing check for noop sinks"
Jorge Hernandez [Tue, 12 Sep 2017 21:21:00 +0000 (21:21 +0000)]
Merge "missing check for noop sinks"

6 years agoMerge "Added junits for policy-util classes"
Jorge Hernandez [Tue, 12 Sep 2017 20:20:14 +0000 (20:20 +0000)]
Merge "Added junits for policy-util classes"

6 years agoAdded junits for policy-util classes 57/10857/3
Magnusen, Drew (dm741q) [Thu, 7 Sep 2017 14:12:46 +0000 (09:12 -0500)]
Added junits for policy-util classes

Added junits to increase coverage of the policy-util module.
Patch 1: Moved Parent and Child class to within ReflectionUtilTest class.

Issue-ID: POLICY-214
Change-Id: Ic5882c02a65ba1c924ec1381901a2a971fe72911
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agomissing check for noop sinks 75/11975/1
Jorge Hernandez [Tue, 12 Sep 2017 15:27:08 +0000 (10:27 -0500)]
missing check for noop sinks

Change-Id: If7167415c361fad2478809ac6c41981beaadacd6
Issue-ID: POLICY-119
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoCleanup project's name in Sonar 23/11323/1
Jessica Wagantall [Fri, 8 Sep 2017 20:34:37 +0000 (13:34 -0700)]
Cleanup project's name in Sonar

The name parameter in the root pom.xml should
match the project name in gerrit to reflect consistency
in Sonar.

Change-Id: Ic266276a2cc9537897dba90b4887b38cd0efed4d
Issue-id: CIMAN-65
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoSmall change to please sonar 33/10833/6
Magnusen, Drew (dm741q) [Thu, 7 Sep 2017 13:55:17 +0000 (08:55 -0500)]
Small change to please sonar

Added a 'Thread.currentThread().interrupt()' in a catch of the run method of TTControllerTask
at the direction of sonar.

Added dump of exception to logger.

Issue-ID: POLICY-213
Change-Id: I2bdd74eacedb6d1950c5c730430d7f723ce494bc
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agoSupport environment configurations 03/10703/2
Jorge Hernandez [Thu, 7 Sep 2017 05:07:32 +0000 (00:07 -0500)]
Support environment configurations

This enables PDP-D to have knowledge of any installation
property or else configured via OS environment variable
or as an environment file.

This allows the user to query or set via REST API of programmatically
through PolicyEngine any environment variable.

It also provides a means to make data globally available to all
drools applications.

For example:

http://localhost:9696/policy/pdp/engine/environment> get
HTTP/1.1 200 OK
Content-Length: 749
Content-Type: application/json
Date: Wed, 06 Sep 2017 23:53:57 GMT
Server: Jetty(9.3.14.v20161028)

{
    "DCAE_SERVERS": "",
    "DCAE_TOPIC": "",
    "DMAAP_SERVERS": "",
    "ENGINE_MANAGEMENT_HOST": "0.0.0.0",
    "ENGINE_MANAGEMENT_PASSWORD": "",
    "ENGINE_MANAGEMENT_PORT": "9696",
    "ENGINE_MANAGEMENT_USER": "",
    "HEALTHCHECK_PASSWORD": "",
    "HEALTHCHECK_USER": "",
    "JAVA_HOME": "/usr/lib/jvm/java-8-oracle",
    "M2_HOME": "/usr/share/maven",
    "PAP_HOST": "",
    "PAP_PASSWORD": "",
    "PAP_USERNAME": "",
    "PDPD_CONFIGURATION_API_KEY": "",
    "PDPD_CONFIGURATION_API_SECRET": "",
    "PDPD_CONFIGURATION_CONSUMER_GROUP": "",
    "PDPD_CONFIGURATION_CONSUMER_INSTANCE": "",
    "PDPD_CONFIGURATION_PARTITION_KEY": "",
    "PDPD_CONFIGURATION_SERVERS": "",
    "PDPD_CONFIGURATION_TOPIC": "PDPD-CONFIGURATION",
    "PDP_HOST": "",
    "PDP_PASSWORD": "",
    "PDP_USERNAME": "",
    "POLICY_HOME": "/home/policy/snapshot",
    "SQL_HOST": "",
    "SQL_PASSWORD": "",
    "SQL_USER": ""
}

policy@newton:~/snapshot/config$ echo -n "http://one.com/aai" | http --verbose PUT :9696/policy/pdp/engine/environment/AAI_URL Content-Type:text/plain Accept:text/plain
PUT /policy/pdp/engine/environment/AAI_URL HTTP/1.1
Accept: text/plain
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 18
Content-Type: text/plain
Host: localhost:9696
User-Agent: HTTPie/0.9.2

http://one.com/aai

HTTP/1.1 200 OK
Content-Length: 0
Content-Type: text/plain
Date: Thu, 07 Sep 2017 00:05:05 GMT
Server: Jetty(9.3.14.v20161028)

policy@newton:~/snapshot/config$ echo -n "http://one.com/aai2" | http --verbose PUT :9696/policy/pdp/engine/environment/AAI_URL Content-Type:text/plain Accept:text/plain
PUT /policy/pdp/engine/environment/AAI_URL HTTP/1.1
Accept: text/plain
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 19
Content-Type: text/plain
Host: localhost:9696
User-Agent: HTTPie/0.9.2

http://one.com/aai2

HTTP/1.1 200 OK
Content-Length: 18
Content-Type: text/plain
Date: Thu, 07 Sep 2017 00:05:45 GMT
Server: Jetty(9.3.14.v20161028)

http://one.com/aai

policy@newton:~/snapshot/config$ http :9696/policy/pdp/engine/environment/AAI_URL

HTTP/1.1 200 OK
Content-Length: 19
Content-Type: application/json
Date: Thu, 07 Sep 2017 05:14:57 GMT
Server: Jetty(9.3.14.v20161028)

http://one.com/aai2

Change-Id: I1fcd610938af751977bb2db925b57b4e5b3f7ba4
Issue-ID: POLICY-162
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoAdded junit for test-transaction feature 11/10611/2
Magnusen, Drew (dm741q) [Wed, 6 Sep 2017 17:22:33 +0000 (12:22 -0500)]
Added junit for test-transaction feature

Single junit was added for test-transaction feature.
Junit does not test full functionality of the feature,
but does test some of the peripheral methods.

Also fixed small indentation error in assemble_zip.xml.

Issue-ID: POLICY-198
Change-Id: Iad7a98be45eb8ef6701bf8381aa764d2dd1ca9c7
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agoSupport Utils Libraries for CL Lab Integration 95/9595/2
Jorge Hernandez [Thu, 31 Aug 2017 05:09:45 +0000 (00:09 -0500)]
Support Utils Libraries for CL Lab Integration

There is a companion review in the drools-applications repo.

This also includes workarounds to the recent oparent dependency
introduction that breaks runtime (with the version-check-maven-plugin).

It manifested by loading control loops and failing to load some classes
due to different versions (in a lab environment).

The issue was that underlying drools libraries use 3.2.5 and oparent
has included a had dependency with transitive dependencies for some maven
libraries in 3.2.3 and lower version xml parsers.   Bottomoline, the
classpath at runtime was formed by the union of both, with some
libraries being resolved to the oparent one, and others to the drools
one.   These errors are very obscured to debug.

Additional clean up of dependencies versions and order of build
was introduced to avoid issues loading dependencies at runtime in a
lab environment (non-junit)..

Change-Id: If4f4201e08f7e6e1f3619f557434c1b2e23e47a5
Issue-ID: POLICY-162
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoAdded new test transaction feature 99/8799/7
Magnusen, Drew (dm741q) [Fri, 25 Aug 2017 15:20:46 +0000 (10:20 -0500)]
Added new test transaction feature

Added test transaction feature which is used to test the health
of policy controllers.

Issue-ID: POLICY-177
Change-Id: I9a966be73f040c01e208bffd1dd67e8d858c1d37
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agojunits in policy-management 65/8965/2
Jorge Hernandez [Mon, 28 Aug 2017 18:51:08 +0000 (13:51 -0500)]
junits in policy-management

- add additional junits for policy-management module
- allow for no configuration pdp-d start up.
- minor changes junits for policy-endpoints to avoid
  race conditions in jenkins environment, starting up, and
  shutting down servers.

Issue-ID: POLICY-109
Change-Id: Ibccefeb5d7cf762da27fe3282887df18d79db5df
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agorename scripts and clean up eclipse warnings 29/8629/1
Jorge Hernandez [Thu, 24 Aug 2017 14:24:33 +0000 (09:24 -0500)]
rename scripts and clean up eclipse warnings

rename scripts to follow convention that executable scripts should not
have file extensions.

clean up some warnings in eclipse

Issue-ID: POLICY-162
Change-Id: I82be87925c3a8264381795535d33cee04924ae92
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoAdd access.log to jetty server 27/8427/3
jrh3 [Wed, 23 Aug 2017 13:40:28 +0000 (09:40 -0400)]
Add access.log to jetty server

Added a single line to the code that creates the jetty server so that
it will log messages in access.log format.  Also added lines to various
logback.xml files to actually write the output from the jetty server
to the access.log.

Made some revisions per comments:
- removed spaces around parameters
- added "Out" suffix
- changed suffix of archived files
- changed size to 1MB

Modified logback*.xml files to include jetty "access log" content in
the already-existing network.log.

Issue-Id: POLICY-161
Change-Id: I3e3769c06a22aaffea0e09abbec3387cc62f246f
Signed-off-by: jrh3 <jrh3@att.com>
6 years agoAdd feature-session-persistence 39/8039/5
Kevin McKiou [Tue, 22 Aug 2017 21:08:06 +0000 (16:08 -0500)]
Add feature-session-persistence

This commit adds the feature-session-persistence module
which will persist drools session data to allow stateful
transactions which can persist across node restarts and
failovers. It also picks up recent changes to the master
branch to avoid merge conflicts.

Issue-ID: POLICY-133
Change-Id: Ifdcd8280ea6df07db79562f1b01fa90296a8b878
Signed-off-by: Kevin McKiou <km097d@att.com>
6 years agoAdding changes to resolve pom.xml 77/8277/2
Viswanath Kumar Skand Priya [Tue, 22 Aug 2017 11:54:33 +0000 (11:54 +0000)]
Adding changes to resolve pom.xml

Issue-ID: POLICY-175
Change-Id: I3be1db6fdc1e070aff98c99fa9089a946ef7d6a3
Signed-off-by: Viswanath KSP <viswanath.kumarskandpriya@verizon.com>
6 years agosonar criticals and some majors 11/8111/2
Jorge Hernandez [Sun, 20 Aug 2017 18:12:13 +0000 (13:12 -0500)]
sonar criticals and some majors

Issue-ID: POLICY-114
Change-Id: I5fe12b6538379a4d018bb76173247fe53fba21d7
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoExpand acces dependencies to ONAP repos. 43/8043/1
Jorge Hernandez [Fri, 18 Aug 2017 21:39:45 +0000 (16:39 -0500)]
Expand acces dependencies to ONAP repos.

Make public ONAP drools-applications repos at runtime or
during development testing to ensure that no dependencies
are missed, nor all of them need to be published in
the private nexus repository.

This will be benefitial at runtime and also during control
loop development as control loops archetypes could be
used from anywhere.

Change-Id: I787b5afaf5c525f83326e924d6b9bcf85f9a7662
Issue-ID: POLICY-159
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoRemove MojoHaus Maven plug-in from pom file 65/7865/1
Temoc Rodriguez [Thu, 17 Aug 2017 15:24:55 +0000 (08:24 -0700)]
Remove MojoHaus Maven plug-in from pom file

Remove MojoHaus License Maven plug-in from main pom.xml file.

Issue-ID: POLICY-116
Change-Id: I3acfba5a998733006e04c8109ba9821c0c0c9573
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
6 years agoMerge "Fix "critical" Sonar issue"
Jorge Hernandez [Wed, 16 Aug 2017 18:52:57 +0000 (18:52 +0000)]
Merge "Fix "critical" Sonar issue"

6 years agoadd hibernate JPA libraries in base 55/7755/2
Jorge Hernandez [Wed, 16 Aug 2017 17:41:11 +0000 (12:41 -0500)]
add hibernate JPA libraries in base

To make feature development easier for DB-enabled features

Change-Id: I7f69ecfbbfb9eaac92f698bdb787ce881eec39f0
Issue-ID: POLICY-96
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoFix "critical" Sonar issue 49/7749/1
Ralph Straubs [Wed, 16 Aug 2017 15:31:18 +0000 (10:31 -0500)]
Fix "critical" Sonar issue

Change-Id: I46e59d9a017722370cff4112250bcdfa0f0d0b23
Issue-ID: POLICY-160
Signed-off-by: Ralph Straubs <rs8887@att.com>
6 years agoadd persistence libraries in the installation base 71/7671/1
Jorge Hernandez [Wed, 16 Aug 2017 00:12:25 +0000 (19:12 -0500)]
add persistence libraries in the installation base

to make db-enabled features to not worry about their
packaging in the copy-dependencies plugin in the
pom.xml

Change-Id: Ie20a61978f75d4dbe82ac7aba5f6d259fb412f22
Issue-ID: POLICY-96
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoMerge "Support of DB-enabled features"
Jorge Hernandez [Tue, 15 Aug 2017 15:13:30 +0000 (15:13 +0000)]
Merge "Support of DB-enabled features"

6 years agoSupport of DB-enabled features 77/7477/1
Jorge Hernandez [Mon, 14 Aug 2017 18:34:53 +0000 (13:34 -0500)]
Support of DB-enabled features

Isolation and data migration support overall and on a per
feature basis.

policy@drools:/opt/app/policy$ policy.sh status

[drools-pdp-controllers]
 L []: Policy Management (no pidfile) is NOT running
1 cron jobs installed.

[features]
name                 version         status
----                 -------         ------
eelf                 1.1.0           disabled
healthcheck          1.1.0           disabled
session-persistence  1.1.0           enabled

[migration]
session-persistence: upgrade out-of-sync: 0 -> 201702

policy@drools:/opt/app/policy$ features enable session-persistence
session-persistence: upgrade out-of-sync: 0 -> 201702

name                 version         status
----                 -------         ------
eelf                 1.1.0           disabled
healthcheck          1.1.0           disabled
session-persistence  1.1.0           enabled

policy@drools:/opt/app/policy$ db-migrator -s session-persistence -o upgrade
upgrade: 0 -> 201702

> upgrade 201701-blah.upgrade.sql
--------------
create table blah (a varchar(15), b varchar(20))
--------------

> upgrade 201702-blah2.upgrade.sql
--------------
create table blah2 (a varchar(15), b varchar(20))
--------------

session-persistence: OK: upgrade (201702)

policy@drools:/opt/app/policy$ db-migrator -s ALL -o report
+---------------------+---------+
| name                | version |
+---------------------+---------+
| session-persistence | 201702  |
+---------------------+---------+
+--------------------------+-----------+---------+---------------------+
| script                   | operation | success | atTime              |
+--------------------------+-----------+---------+---------------------+
| 201701-blah.upgrade.sql  | upgrade   | 1       | 2017-08-14 16:01:32 |
| 201702-blah2.upgrade.sql | upgrade   | 1       | 2017-08-14 16:01:32 |
+--------------------------+-----------+---------+---------------------+

policy@drools:/opt/app/policy$ features disable session-persistence

name                 version         status
----                 -------         ------
eelf                 1.1.0           disabled
healthcheck          1.1.0           disabled
session-persistence  1.1.0           disabled

policy@drools:/opt/app/policy$ db-migrator -s ALL -o downgrade
downgrade: 201702 -> 0

> downgrade 201702-blah2.downgrade.sql
--------------
drop table if exists blah2
--------------

> downgrade 201701-blah.downgrade.sql
--------------
drop table if exists blah
--------------

session-persistence: OK: downgrade (0)

policy@drools:/opt/app/policy$ db-migrator -s ALL -o report
+---------------------+---------+
| name                | version |
+---------------------+---------+
| session-persistence | 0       |
+---------------------+---------+
+----------------------------+-----------+---------+---------------------+
| script                     | operation | success | atTime              |
+----------------------------+-----------+---------+---------------------+
| 201701-blah.upgrade.sql    | upgrade   | 1       | 2017-08-14 16:01:32 |
| 201702-blah2.upgrade.sql   | upgrade   | 1       | 2017-08-14 16:01:32 |
| 201701-blah.downgrade.sql  | downgrade | 1       | 2017-08-14 16:13:49 |
| 201702-blah2.downgrade.sql | downgrade | 1       | 2017-08-14 16:13:49 |
+----------------------------+-----------+---------+---------------------+
session-persistence: OK @ 0

Change-Id: Ie185f5d7a8463cb349ac452d8c2b4b05928b3e56
Issue-ID: POLICY-96
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoRemove eclipse checkstyle warnings 67/7467/1
Pamela Dragosh [Mon, 14 Aug 2017 17:42:40 +0000 (13:42 -0400)]
Remove eclipse checkstyle warnings

Add this should remove Eclipse warnings:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (execution: check-style, phase: process-sources)

Issue-Id: POLICY-166
Change-Id: I609ebced831458e1fa56c57a30bceb3512c0dc7f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdd 'install' and 'uninstall' to 'features' script 03/7103/3
Ralph Straubs [Wed, 9 Aug 2017 12:32:29 +0000 (07:32 -0500)]
Add 'install' and 'uninstall' to 'features' script

Note that the 'install' option looks for a 'base.conf' script in the
current directory, as well as the '${POLICY_HOME}/config' directory.
The assumption is 'base.conf' is saved here when the initial DroolsPDP
install is complete.

Issue-ID: POLICY-163
Change-Id: I995c685ca8ff896f3d8a027324e30673075e0c1f
Signed-off-by: Ralph Straubs <rs8887@att.com>
6 years agoMerge "placement of sql files during feature operations"
Jorge Hernandez [Tue, 8 Aug 2017 16:52:49 +0000 (16:52 +0000)]
Merge "placement of sql files during feature operations"

6 years agoplacement of sql files during feature operations 83/6983/1
Jorge Hernandez [Tue, 8 Aug 2017 12:44:21 +0000 (07:44 -0500)]
placement of sql files during feature operations

This commit only takes care of enabling disabling global visibility
of sql files on a per database basis, when a feature is enabled/disabled.

Performing the actual databases upgrade operations will be provided
in a subsequent commit.

Issue-ID: POLICY-66
Change-Id: Ia82e5ccb3a9f02e9d937ce4791fdca4204b8f9e8
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoMerge "[POLICY-151] drools-pdp integration with oparent"
Jorge Hernandez [Mon, 7 Aug 2017 20:08:26 +0000 (20:08 +0000)]
Merge "[POLICY-151] drools-pdp integration with oparent"

6 years ago[POLICY-151] drools-pdp integration with oparent 09/6609/1
Guo Ruijing [Thu, 3 Aug 2017 11:32:09 +0000 (11:32 +0000)]
[POLICY-151] drools-pdp integration with oparent

Change-Id: Id419034816ea047276484e20c5e211a3fba5ec7a
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
6 years ago[POLICY-114] fix some sonar criticals 83/6583/1
Jorge Hernandez [Wed, 2 Aug 2017 23:16:28 +0000 (18:16 -0500)]
[POLICY-114] fix some sonar criticals

Change-Id: Ic79b3d81ac814948ce3a956fe4c32b8a9b5c0009
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoMerge "[POLICY-66] healtcheck feature config and db prep"
Pamela Dragosh [Wed, 2 Aug 2017 16:10:22 +0000 (16:10 +0000)]
Merge "[POLICY-66] healtcheck feature config and db prep"

6 years ago[POLICY-66] healtcheck feature config and db prep 45/6545/1
Jorge Hernandez [Wed, 2 Aug 2017 14:48:57 +0000 (09:48 -0500)]
[POLICY-66] healtcheck feature config and db prep

initial commit pre-intro of db support on per feature basis

Change-Id: Ie790764bc58f773da381ae88b6f7476fbd2af2e5
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-145] fix typo in features files 17/6517/1
Jorge Hernandez [Tue, 1 Aug 2017 23:41:39 +0000 (18:41 -0500)]
[POLICY-145] fix typo in features files

Change-Id: Idb9d40e5818dbd2b3f4633888df413ffc077c89d
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-72] forgot one onap-staging 65/6465/1
Pamela Dragosh [Tue, 1 Aug 2017 01:31:31 +0000 (21:31 -0400)]
[POLICY-72] forgot one onap-staging

Change-Id: Ib5c7ce30b31b03f3dfc2f914946e934a6b201cc2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years ago[POLICY-72] missed onap repo ids 43/6443/1
Jorge Hernandez [Mon, 31 Jul 2017 20:35:01 +0000 (15:35 -0500)]
[POLICY-72] missed onap repo ids

Change-Id: Id71d2d0f551fa5404920a0ab5347db077eb53767
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-72] put back ecomp server ids. 39/6439/1
Jorge Hernandez [Mon, 31 Jul 2017 20:07:43 +0000 (15:07 -0500)]
[POLICY-72] put back ecomp server ids.

Change-Id: I41df0afcf9c721c6a614027eb92e84d3c2c3aab5
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-72] replace openecomp for drools-pdp 99/5799/4
Guo Ruijing [Fri, 28 Jul 2017 08:23:01 +0000 (08:23 +0000)]
[POLICY-72] replace openecomp for drools-pdp

Change-Id: I8aa8e32d3ba10f7c655b50e97aaf6865514d4777
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
6 years ago[POLICY-52] pdp-d: PolicyEngine junits 97/6297/2
Jorge Hernandez [Thu, 27 Jul 2017 15:46:21 +0000 (10:46 -0500)]
[POLICY-52] pdp-d: PolicyEngine junits

Change-Id: I8c85d75d7eddd7c959ed4cfb7167b58d9c7c9854
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoMerge "[POLICY-119] noop endpoint and refactoring"
Pamela Dragosh [Thu, 27 Jul 2017 11:39:55 +0000 (11:39 +0000)]
Merge "[POLICY-119] noop endpoint and refactoring"

6 years ago[POLICY-119] noop endpoint and refactoring 71/6271/2
Jorge Hernandez [Wed, 26 Jul 2017 15:09:16 +0000 (10:09 -0500)]
[POLICY-119] noop endpoint and refactoring

noop endpoint was added to support communication between drools-applications
and policy-framework using the common "PolicyEngine.deliver(topic, message)"
mechanins.   The endpoint type will be noop.   This can be used for testing
sanity of any given drools-application from the framework.

An intial refactoring of the endpoints hierarchy was added too.

Change-Id: I62dbe75f511dd6215406fbd7cf0dd5a88bc1efc3
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-109] set up parent pom for sonar 89/6289/1
Jorge Hernandez [Thu, 27 Jul 2017 00:00:54 +0000 (19:00 -0500)]
[POLICY-109] set up parent pom for sonar

Change-Id: I89ba6326d5f1bedcd072772945f547cb339456e9
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-66] policy.sh policy-management-controller 17/6217/1
Jorge Hernandez [Tue, 25 Jul 2017 14:54:28 +0000 (09:54 -0500)]
[POLICY-66] policy.sh policy-management-controller

Explicit invokation of policy-management-controller in policy.sh
since it loops through scripts picks up others it shouldn't when
an operation is selected.
Benign but not stetic.

Change-Id: I140ca6b0501b3368e9eac0b3ddf947b59c74e426
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-66] consolidate script naming + location 81/6181/1
Jorge Hernandez [Mon, 24 Jul 2017 13:48:51 +0000 (08:48 -0500)]
[POLICY-66] consolidate script naming + location

consolidate scripting convention by all adopting not .sh for
bash scripts.  Location is under policy-management/src/main/server-gen/bin/
so they are inherited by lab installations that don't use the
packages directory.

Change-Id: Ibcbd4bffad38e87cb3b644deb768120b1a6b2cbb
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-8] clean pdp-d from sonar blockers 45/6145/1
Jorge Hernandez [Fri, 21 Jul 2017 13:43:43 +0000 (08:43 -0500)]
[POLICY-8] clean pdp-d from sonar blockers

Change-Id: I25427a0505e2fdd2b0b939f652452cb4f9f07f02
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-52] enabled properties http junit test 19/6119/2
Jorge Hernandez [Thu, 20 Jul 2017 18:58:25 +0000 (13:58 -0500)]
[POLICY-52] enabled properties http junit test

will also take care of some race conditions seen in gerrit
triggered jenkin jobs as it brings up / tears down
http servers per junit test method.

Change-Id: I0b18073ebfaab3a6f0d08efee1edacd8d5d9e3ca
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-88] validation of query pre-execution 75/6075/3
Jorge Hernandez [Wed, 19 Jul 2017 23:54:02 +0000 (18:54 -0500)]
[POLICY-88] validation of query pre-execution

Change-Id: Ie02de9aca434c3d80b9e34126990e3b9995747bb
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-9] Mac .DS_Store is annoying 17/5917/1
Pamela Dragosh [Tue, 18 Jul 2017 18:28:57 +0000 (14:28 -0400)]
[POLICY-9] Mac .DS_Store is annoying

Change-Id: Id1acdd31cfabbaa24677c26fb65c79228a0a8093
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years ago[POLICY-66] self-contained features support 99/5899/2
Jorge Hernandez [Tue, 18 Jul 2017 06:06:39 +0000 (01:06 -0500)]
[POLICY-66] self-contained features support

installation/enable/disable of self contained package features:

Feature 3rd party dependencies, configuration files, and
custom installation scripts do not need to be packaged within the policy
core base to be used.

Change-Id: I35a472e63bd0f9f7aa6cd0c112d41d2b4604a892
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-78] Upgrade Drools and Guava Versions 61/5861/1
Ralph Straubs [Mon, 17 Jul 2017 15:16:44 +0000 (10:16 -0500)]
[POLICY-78] Upgrade Drools and Guava Versions

Change-Id: Iaa17e84c6d9ba45ec3703a70d932da873d0b45a9
Signed-off-by: Ralph Straubs <rs8887@att.com>
6 years ago[POLICY-75] Problems with KieScanner 51/5851/1
Ralph Straubs [Mon, 17 Jul 2017 09:23:23 +0000 (04:23 -0500)]
[POLICY-75] Problems with KieScanner

1) Change the 'PolicySession.DefaultThreadModel' thread so it
   continually calls 'fireUntilHalt' until it is explicitly stopped by
   the 'stop()' method. This allows it to restart after 'KieScanner'
   triggers an update.

2) Remove call to 'startScanner' in 'PolicyContainer' constructor --
   we saw at least one case where 'KieScanner' would repeatedly update
   the Drools container every 60 seconds.

Change-Id: I0d0e6c5650cef12ca00cf88f9b8cc52323bb6317
Signed-off-by: Ralph Straubs <rs8887@att.com>
7 years ago[POLICY-66] rename of policy-healthcheck 29/5629/1
Jorge Hernandez [Fri, 30 Jun 2017 18:29:03 +0000 (13:29 -0500)]
[POLICY-66] rename of policy-healthcheck

using "feature-" naming convention.

Change-Id: I13d6b75750d369ed9e61f3c9c9408b31eac6bb2d
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-30] optional loadable eelf feature 41/5241/2
Jorge Hernandez [Mon, 26 Jun 2017 13:05:30 +0000 (08:05 -0500)]
[POLICY-30] optional loadable eelf feature

for backwards compatibility purposes or if desired to
use EELF and common-framework (from policy-common) for
logging purposes in miscellaneous environments.   It supports
EELF/Common Framework style logging at the same time than
traditional logging.

This functionality is an optional loadable module.

policy-docker changes need to be made to optionally
unpack to make it active (in a different submission).

started marking feature projects with feature prefix in
project name to give a clear picture to the community which
modules are features vs. code base.

Change-Id: I5076c462409f03415ce54f0c9b5f50b78abb18f9
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-30] telemetry script 25/5225/1
Jorge Hernandez [Fri, 23 Jun 2017 11:33:43 +0000 (06:33 -0500)]
[POLICY-30] telemetry script

Change-Id: Iad43bf9c30de174527fb6a29c216dae6e3ea1a17
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-30] remove problematic layers 21/5221/1
Jorge Hernandez [Thu, 22 Jun 2017 22:17:28 +0000 (17:17 -0500)]
[POLICY-30] remove problematic layers

add configurability through telemetry API

Change-Id: I77ebde12a417d421b98646c32dc74824f4494c2e
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-21] PDP-D gets stuck during shutdown 27/5027/4
Ralph Straubs [Wed, 14 Jun 2017 08:56:05 +0000 (03:56 -0500)]
[POLICY-21] PDP-D gets stuck during shutdown

The fix for this problem is included in the following enhancements:

1) Define a new nested interface 'PolicySession.ThreadModel', which makes
   it possible for features to control the thread or threads processing
   a 'KieSession'.

   The nested class 'PolicySession.DefaultThreadModel' implements the
   default version, which uses 'KieSession.fireUntilHalt()' instead of
   polling 'KieSession.fireAllRules()'.

   A new method 'selectThreadModel(PolicySession session)' has been added
   to 'PolicySessionFeatureAPI' to enable this selection.

2) Update thread names when 'KieContainer.updateToVersion(...)' is called

Change-Id: Ic48089fe5660501e2e3d42b87501697211a9d0fe
Signed-off-by: Ralph Straubs <rs8887@att.com>
7 years ago[POLICY-8] cleaned up unused code 45/4645/1
Jorge Hernandez [Mon, 5 Jun 2017 14:51:55 +0000 (09:51 -0500)]
[POLICY-8] cleaned up unused code

Change-Id: Ifebf67db574e1c4eadf9d50ca0f178ab7ddba033
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years agoChange 'policy-core' to support app persistence 15/4615/3
Ralph Straubs [Fri, 2 Jun 2017 16:10:04 +0000 (11:10 -0500)]
Change 'policy-core' to support app persistence

This includes the following:

1) A new hook method 'newPolicySession(PolicySession)' that is called after
   the session has been created and initialized

2) Support for "adjunct" objects in 'PolicySession'

3) Added 'try/catch' blocks around feature method invocations

4) Added 'default' methods to interface 'PolicySessionFeatureAPI'

5) Removed 'PolicySessionFeatureAPI.isPersistenceEnabled()'

Conflicts:

policy-core/src/main/java/org/openecomp/policy/drools/core/PolicySessionFeatureAPI.java

Change-Id: Ibc6d9eeacb6118d617e6c5ac53f6cef4c6ee1417
Signed-off-by: Ralph Straubs <rs8887@att.com>
7 years ago[POLICY-9,POLICY-18] warnings + Controller hooks 07/4607/3
Jorge Hernandez [Fri, 2 Jun 2017 03:51:59 +0000 (22:51 -0500)]
[POLICY-9,POLICY-18] warnings + Controller hooks

1. clean up policy-utils warnings.  drools-pdp project has
   no warnings now.

2. add new Policy Controller hooks for feature programmability.

Change-Id: Ie991320e23e73118b235018d15ea66340a841a89
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-6] add missing license information 55/4555/1
Jorge Hernandez [Wed, 31 May 2017 18:58:27 +0000 (13:58 -0500)]
[POLICY-6] add missing license information

Change-Id: I984ec36d3022cb498f99aa3b1a23e8729b0624d8
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-16] generic introduction of swagger 95/4495/1
Jorge Hernandez [Thu, 25 May 2017 21:44:15 +0000 (16:44 -0500)]
[POLICY-16] generic introduction of swagger

On a per-server basis append /swagger.json or /swagger.yaml

ie:

HTTP GET :6969/swagger.json
HTTP GET :9696/swagger.json

Resulting specification can be used by swagger clients.

Change-Id: I4b1a8b53d50b1528664150934b04e92447e4d4d7
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-12] clean policy-persistence mod warnings 27/4127/1
Jorge Hernandez [Thu, 11 May 2017 13:20:10 +0000 (08:20 -0500)]
[POLICY-12] clean policy-persistence mod warnings

Takes care of the following warnings:

--IntegrityAuditIntegrationTest.java

import org.junit.Ignore is never used

import org.openecomp.policy.common.im.AdministrativeStateException
is never used

import org.openecomp.policy.common.im.IntegrityMonitor
is never used

import org.openecomp.policy.common.im.StandbyStatusException
is never used

import org.openecomp.policy.drools.core.DroolsPDPIntegrityMonitor
is never used

import org.apache.commons.logging.Log is never used

import org.apache.commons.logging.LogFactory is never used

value of the field IntegrityAuditIntegrationTest.sleepTime is not used

--IntegrityMonitorProperties.java

import org.apache.commons.logging.Log is never used

import org.apache.commons.logging.LogFactory is never used

--StandbyStateManagementTest.java

import org.openecomp.policy.drools.system.PolicyEngine is never

--RepositoryAudit.java

import java.nio.file.FileVisitor is never used

import java.util.concurrent.Callable is never used

--PMStandbyStateChangeNotifier.java

import org.openecomp.policy.drools.controller.internal.MavenDroolsController
is never used

import org.openecomp.policy.drools.event.comm.TopicEndpoint
is never used

--DroolsSessionEntity.java

The serializable class DroolsSessionEntity does not declare a static final
serialVersionUID field of type long

--DroolsPdpObject.java

Comparable is a raw type. References to generic type Comparable<T> should be parameterized

Comparable is a raw type. References to generic type Comparable<T> should be parameterized

Type safety: The method compareTo(Object) belongs to the raw type Comparable.
References to generic type Comparable<T> should be parameterized

--DroolsPdpsElectionHandler.java

The value of the local variable lowestPriorityPdp is not used

Change-Id: Idd563d74c1d6521f7a3759c441f7fe0597011b67
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-12] tackle policy-persistence/DBaudit.java 11/4111/1
Jorge Hernandez [Wed, 10 May 2017 20:56:01 +0000 (15:56 -0500)]
[POLICY-12] tackle policy-persistence/DBaudit.java

Deals with the following reports:

Description Resource Path Location Type
Resource leak: 'statement' is not closed at this location DbAudit.java
/policy-persistence/src/main/java/org/openecomp/policy/drools/core
line 135 Java Problem

Description Resource Path Location Type
Resource leak: 'statement' is not closed at this location DbAudit.java
/policy-persistence/src/main/java/org/openecomp/policy/drools/core
line 142 Java Problem

Description Resource Path Location Type
Resource leak: 'statement' is not closed at this location DbAudit.java
/policy-persistence/src/main/java/org/openecomp/policy/drools/core
line 160 Java Problem

Change-Id: I16c6698ee9b659add11d3bc62abb38a3d1792049
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-11] Fact queries with variables + features 71/4071/2
Jorge Hernandez [Wed, 10 May 2017 04:42:38 +0000 (23:42 -0500)]
[POLICY-11] Fact queries with variables + features

GET/PUT/DELETE operations through REST API.
Report on optional features (modules) attached to the engine.
Added javadoc comments in Healthcheck module.

Change-Id: Ic8d2c06779dda4024e94ad39bb316211522e4e4c
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years agoBatch submit 05/4005/2
Ralph Straubs [Tue, 9 May 2017 08:43:22 +0000 (03:43 -0500)]
Batch submit

[US866186 1710] Add the state_audit_interval_ms to the
IntegrityMonitor.properties

[US866186 1710] Added comments to the state audit property
(state_audit_interval_ms) which clarify how to turn it off.

[ECOMPD2TD-000] Update version.properties and pom.xml for iter 41

[ECOMPD2TD-000] Update version.properties and pom.xml for iter 41

Revert "[ECOMPD2TD-000] Update version.properties and pom.xml for
iter 41"

This reverts commit 61367d4c87fa6b153f707361537d9f802fb95a6e.

[US250837 1710] Completed first cut of logic changes to
PMStandbyStateChangeNotifier so that each segment of logic is only
executed if a state change actually occurred.

[US250837 1710] First cut on the JUnit for PMStandbyStateChangeNotifier.
At this point I am simply checking the operation by inspecting the logs.

[US250837 1710] Fixed the JUnit so it is not failing and added a note
on how to run the JUnit.

[US250837 1710] Added a method to get previousStandbyStatus from
PMStandbyStateChangeHandler and began using it in JUnit tests.

[US250837 1710] Finished the StandbyStateManagementTest.  This uses the
previousStandbyStatus value to test the function.

[US250837 1710] Clean up of PMStandbyStateChangeNotifier and JUnit test
to make static string values that are used throughout.

[US250837 1710] Found a couple strings that I missed when converting to
static variables.

[US250837 1710] Updated PMStandbyStateChangeNotifier and
StandbyStateManagementTest

[US250837 1710] Added a dedicated db audit persistence unit
auditDroolsPU to taylor the classes which will be audited.

[ECOMPD2TD-1309] Clean up old persistence data

This is an addition to 'policy-persistence' that cleans up
'sessioninfo' records with a 'lastmodificationdate' that is older than
a specified time (default = 900 seconds = 15 minutes).

[ECOMPD2TD-000] Correction to pom.xml versions

Conflicts:

version.properties

Change-Id: I810d358c07e05fd36fa435a6fbb9e538e78b5011
Signed-off-by: Ralph Straubs <rs8887@att.com>
7 years ago[POLICY-11] New REST APIs to obtain facts info 01/3901/1
Jorge Hernandez [Thu, 4 May 2017 14:27:34 +0000 (09:27 -0500)]
[POLICY-11] New REST APIs to obtain facts info

The following REST APIs have been added, shown by example:

GET policy/pdp/engine/controllers/<controller-name>/drools :
  drools information for controller named <controller-name>

For brevity in URL description, assume:
DROOLS-REL-PATH=policy/pdp/engine/controllers/<controller-name>/drools

GET ${DROOLS-REL-PATH}/<session-name>[?count=true]
  fact classes and count for <session-name> in controller <name>

GET ${DROOLS-REL-PATH}/<session-name>/<classname>
  all fact objects of class <classname> for session <session-name>

GET ${DROOLS-REL-PATH}/<session-name>/<query-name>/<query-id>
  all fact objects returned by drools query named <query-name>
  for the identifier <query-id>
  (need corresponding query definition in drl is necessary)

Change-Id: I2f62931f54a65eec4ef80472ad1af05f30ed83ba
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-10] remove external repo 47/3847/1
Pamela Dragosh [Wed, 3 May 2017 13:22:58 +0000 (09:22 -0400)]
[POLICY-10] remove external repo

Change-Id: Icc2c456757418f3ffa28beba9ed26f933236f08e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoChange name to show Policy Engine for sonar. 53/3753/1
Pamela Dragosh [Fri, 28 Apr 2017 14:50:14 +0000 (10:50 -0400)]
Change name to show Policy Engine for sonar.

Change-Id: I79865c49e52db4619f481c10f3823e7aa5244dd3
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoBatch submit -- force rebuild 75/3575/2
Ralph Straubs [Fri, 21 Apr 2017 09:23:55 +0000 (04:23 -0500)]
Batch submit -- force rebuild

[ECOMPD2TD-1126 1707] Delay the start of the election handler by one
more update interval to allow updatedDate to be set and recoginized by
other nodes.

[ECOMPD2TD-1073 1707] Remove pessimistic locks from DB access to prevent
DB deadlock

[US867397-policy-management-feature-api] Split original FeatureAPI into
three service interfaces.
These are:
- the original FeatureAPI for core
- PolicyControllerFeatureAPI (additional interface methods yet to
  come ..)
- PolicyEngineFeatureAPI (additional interface methods yet to come ..)
Additional extensions will be done in the future.
This is to have equivalent functionality with what it is already there.

[US867397-policy-management-feature-api] Split original FeatureAPI into
three service interfaces.
These are:
- the original FeatureAPI for core
- PolicyControllerFeatureAPI (additional interface methods yet to
  come ..)
- PolicyEngineFeatureAPI (additional interface methods yet to come ..)
Additional extensions will be done in the future.
This is to have equivalent functionality with what it is already there.

[ECOMPD2TD-1167] Avoid redundant dependencies and remove obsolete sql
scripts

[ECOMPD2TD-848] Fix copied from ATT droolspdp repo -- add timestamp to
metric and audit logs

[ECOMPD2TD-1167] update jetty version to 9.3.14

[ECOMPD2TD-1167] pull in policy-core jar as a dependency of
policy-management, instead of zip file

[ECOMPD2TD-1159] Add property to ignore repository audit errors

The property is called 'repository.audit.ignore.errors' -- it resides in
'IntegrityMonitor.properties', and it defaults to 'true'. When true, any
errors that occur in the repository audit are logged, but not reported
to integrity monitor.

[US867397] additional hooks for policy engine, and support operation
take over by feature bypassing further feature processing

[US867397] additional hooks for policy engine, and support operation
take over by feature bypassing further feature processing

[US867397] fix reverse return javadoc comment

[ECOMPD2TD-1192] Select correct persistent session information

This is a modification to 'DroolsPdpsElectionHandler.DesignatedWaiter'.
When going active, the list of persistent sessions needs to come from
the most recent active DroolsPDP. The most recent active DroolsPDP is
tracked in a local variable 'mostRecentPrimary', and the associated
list of sessions needs to be extracted just prior to going active.

The problem was that the list of sessions was extracted after the
current DroolsPDP was set to 'mostRecentPrimary'.

[ECOMPD2TD-1073 1707] Remove pessimistic locks from DB access to
prevent DB deadlock

[US860546] Add workaround for missing logger in message router

[US860546] add DME2 properties to PolicyProperties

[US860546] add DME2 support, pending unit testing

[US860546] updated unit tests for dmaap/DME2

[US860546] removed System.out.println lines from BusConsumer and
BusPublisher

[US860546] modifications and additions to TopicEndpoint tests

[US860546] remove block to append /events to serviceName in
BusConsumer, BusPublisher

[US860546] removing dmaap unit tests with ATT references

[ECOMPD2TD-1167] Audit release repository by default

[ECOMPD2TD-000] Cherry-pick versioning fixes from 1707.39.1 release
branch

[ECOMPD2TD-000] Fix policy-endpoints cambriaClient version

[US865296] ECOMP Policy Logging Compliance, remove redundant timestamp
from metric and audit log for logging compliance

[US865296] ECOMP Policy Logging Compliance, remove TargetVirtualEntity
from audit log, provide name to un-used column

[US865296] ECOMP Policy Logging Compliance, remove Unused from
AuditLogPattern, leave the column blank means un-used.

[US000000] Cleanup and performance improvements

1) Changed 'OrderedServiceImpl' to ensure that the same service instance
   is used in every queue. This gets around the 'ServiceLoader' behavior
   that generates a new instance for each interface the service
   implements.

2) In 'PolicySession': add adaptive poll times within Drools sessions.
   Instead of always polling every 5 seconds, poll frequency increases
   when rules fire, and decreases when they don't. At present, the
   poll delay ranges from 100 milliseconds to 5 seconds, but at some
   point, it would be nice to make this configurable.

3) In 'PolicySession': add tests for 'logger.isDebugEnabled()' in
   session listener methods -- this results in a significant amount of
   real-time savings under load.

[ECOMPD2TD-1126 1707] Changes to the election handler to deal with
situations (race conditions) which can affect the site choice

[ECOMPD2TD-1126 1707] Clean up of site afinity logic.  Minor changes
and a fix of the case where all pdpd are designated or all are
hot standby.

[ECOMPD2TD-1126 1707] Fixed issue with election handler and got all
StandbyStateManagmentTest JUnits working.

[ECOMPD2TD-1126 1707] Hopefully final changes to
DroolsPdpsElectionHandler and StateManagementTest.  Also removed the
ResiliencyTestCases since they were redundant.

[ECOMPD2TD-1126 1707] Found a minor bug in the computeMostRecentPrimary
algorithm which I corrected and added a JUnit to confirm.

[ECOMPD2TD-1126 1707] Removed code that was commented out of election
handler to improve reability.  Added an explanatory note to
StandbyStateManagementTest.

[US869183] Convert integrity monitor test endpoint to use
HttpServletServer

[US869183] add swagger-maven-plugin, update swagger annotation for
IM test interface

[US860371] Modified existing Dmaap and Ueb code to allow for https
connectivity. HTTP/HTTPS is configurable via controller.properties file

[US860520] Removed extra useHttps() method call from BusConsumer class
where the consumer should be using http. Also, restored pom.xml to
version at time feature branch was created.

[US860520] Removed TopicEndpointTest.java.
Added the ability to configure use of self-signed certificates for
consumer topics. Functionality cannot be added for publisher at
this time.
Removed useHttps parameter field from multiple .builder methods to
allow for greater ability to build source/sink objects without
specifying http vs https connectivity.
Other code cleanup and comments

[US860520] -Deleted sys.out statements used in testing from
 BusConsumer/BusPublisher
-Moved setProps method outside of if/else stub in BusConsumer
-Could not add useHttps or selfSignedCerts to toString methods in
 BusConsumer
-Move setProperty(contenttype, app/json) call outside of if/else
 branch in BusPublisher
-Renamed doesAllowSelfSignedCerts method to is isAllowSelfSignedCerts
 and moved to BusTopicBase
-Moved allowSelfSignedCerts member variable to BusTopicBase class.
 BusTopicBase is ancestor of
 SingleThreadedDmapp*/SingleThreadedUeb*/SingleThreadedBus* classes
 therefore, it will be inherited.
  -This changed resulted in cascading changes to the subclasses of
   BusTopicbase
-Default is now set to disallow self-signed certs
-Added several javadoc param annotations

[US869183 1707] Changes to satisfy dependencies and correct pom syntax

[ECOMPD2TD-1280] move DroolsPDPIntegrityMonitor.RestManager to its
own class

[ECOMPD2TD-1278] Resolve duplicate dependency issues
(cherry-pick from 1707.40.1)

[ECOMPD2TD-1278] revert cambriaClient back to 0.0.1

[ECOMPD2TD-1278] put dmaap version back to 0.2.12

[ECOMPD2TD-1280 1707] Fix Commons-lang3 version and
common-modules version

Conflicts:

policy-endpoints/pom.xml
policy-healthcheck/pom.xml
policy-persistence/pom.xml
pom.xml

Change-Id: I803554bc64c55d2e82a3d6ad9120757f287144fb
Signed-off-by: Ralph Straubs <rs8887@att.com>
7 years agoAllow push on custom repo 69/3369/2
Anaël Closson [Wed, 12 Apr 2017 09:09:25 +0000 (11:09 +0200)]
Allow push on custom repo

Current configuration doesn't give the possibility to fully change
where the artifacts should be pushed. This blocks the possibility
to push artifacts to a custom repository outside of the LF

Change-Id: I573ac8a05b380801b8c6034097ce1e9af18d811c
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
7 years agojavadoc details 43/3243/1
Pamela Dragosh [Mon, 10 Apr 2017 14:24:23 +0000 (10:24 -0400)]
javadoc details

Change-Id: I0d120d4439d9304fa66bf610488c03fdbf3e03c4
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoupdate to ONAP 41/2741/1
Pamela Dragosh [Thu, 30 Mar 2017 13:46:40 +0000 (09:46 -0400)]
update to ONAP

Change-Id: I70594f85eff2b3b0c5091e1c66f399e7140bcccf
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agofix version.properties to 1.1.0 75/2175/1
Pamela Dragosh [Wed, 15 Mar 2017 16:15:19 +0000 (12:15 -0400)]
fix version.properties to 1.1.0

Change-Id: I23b58deb92198d5ef6ff59858a73304af85d1195
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years ago1.1.0-SNAPSHOT 11/2011/1
Pamela Dragosh [Fri, 10 Mar 2017 19:31:17 +0000 (14:31 -0500)]
1.1.0-SNAPSHOT

Change-Id: I2289242f6542657c7d69cfe57b20f2e10178caf6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoupgrade to release-1.0.0 95/1995/1
Pamela Dragosh [Fri, 10 Mar 2017 17:48:17 +0000 (12:48 -0500)]
upgrade to release-1.0.0

Change-Id: I3fda7cab8bf56d5359dab353e0834874cfed4c94
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoadded missing version 25/1325/1
Pamela Dragosh [Thu, 23 Feb 2017 18:16:19 +0000 (13:16 -0500)]
added missing version

Change-Id: Ieb14f966a8393ca3485f58c37f76f0b999a195d1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agofix pom remove duplicate groupId 77/1277/1
Pamela Dragosh [Thu, 23 Feb 2017 11:53:46 +0000 (06:53 -0500)]
fix pom remove duplicate groupId

Change-Id: I4dc9cda11650f62e3cbd3017205d8d09f5523b7a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoupdating gitignore 45/1245/1
Pamela Dragosh [Wed, 22 Feb 2017 20:22:56 +0000 (15:22 -0500)]
updating gitignore

Change-Id: I0880cbe3560c79c38cc641e44da6e2769f2a870d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoupdating gitignore 37/1237/1
Pamela Dragosh [Wed, 22 Feb 2017 20:03:01 +0000 (15:03 -0500)]
updating gitignore

Change-Id: I8eed92eec6f422ce79ecafd1342a5377af8350c5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoadd nexus plugin and reset version 87/687/2
Pamela Dragosh [Fri, 17 Feb 2017 20:31:11 +0000 (15:31 -0500)]
add nexus plugin and reset version

Change-Id: Ie3d674677d18dadcae8b2b97580d4963ff52ed8b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoforgot nexus property 49/549/1
Pamela Dragosh [Thu, 16 Feb 2017 17:38:01 +0000 (12:38 -0500)]
forgot nexus property

Change-Id: Ia958ba7d08bedd171745c0bd2c7322135d0de748
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoadded repositories and distribution management 63/463/1
Pamela Dragosh [Wed, 15 Feb 2017 21:09:00 +0000 (16:09 -0500)]
added repositories and distribution management

Change-Id: Ice21b292776f432ef70bdcca4e7d14722b905cfb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoInitial OpenECOMP policy/drools-pdp commit 59/359/1
Pamela Dragosh [Wed, 15 Feb 2017 00:45:48 +0000 (19:45 -0500)]
Initial OpenECOMP policy/drools-pdp commit

Change-Id: I0072ccab6f40ed32da39667f9f8523b6d6dad2e2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoInitial empty repository
Andrew Grimberg [Tue, 14 Feb 2017 22:57:05 +0000 (22:57 +0000)]
Initial empty repository