dcaegen2/platform/plugins.git
4 years agoFix dcaepolicy reference 99/102899/1 frankfurt 6.0.0-ONAP
Jack Lucas [Tue, 3 Mar 2020 18:35:50 +0000 (13:35 -0500)]
Fix dcaepolicy reference

Issue-ID: DCAEGEN2-2097
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: I7fe5676c2bf33ce3900216156a404572bb2622f0

4 years agoProvide cacert in JKS format for clients 06/101406/3
Jack Lucas [Mon, 3 Feb 2020 22:11:07 +0000 (17:11 -0500)]
Provide cacert in JKS format for clients

Issue-ID: DCAEGEN2-1938
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: Ic9a852bb058075b2b03aa6382ed33e23a4cca8b5

4 years agosonarcloud support 60/101360/1
Vijay Venkatesh Kumar [Fri, 7 Feb 2020 03:40:15 +0000 (03:40 +0000)]
sonarcloud support

Change-Id: I7e66510da92d47da2abb67499c3e347822ddd1ea
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-2065

4 years agoAddress k8s plugin code smells reported by sonar 45/100045/4
Miroslav Los [Wed, 18 Dec 2019 17:28:59 +0000 (18:28 +0100)]
Address k8s plugin code smells reported by sonar

Make 'resources' argument to k8sclient.k8sclient.deploy an
optional kwarg, update its uses and document it.
Split off code reported complex from deploy into functions.
Tweak a nested if in tasks.

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-2006
Change-Id: I13a091de9207bab1c7d4eee3179263c5d994ffbf

4 years agoMerge "R6 tag/path update"
Tony Hansen [Wed, 8 Jan 2020 20:19:32 +0000 (20:19 +0000)]
Merge "R6 tag/path update"

4 years agoFix incorrect committer ID in INFO.yaml 93/100093/1
Jack Lucas [Wed, 8 Jan 2020 14:51:13 +0000 (09:51 -0500)]
Fix incorrect committer ID in INFO.yaml

Issue-ID: DCAEGEN2-2012
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: I788d83e894725e0564633db00d2c71c0e6ff5cda

4 years agoRemove obsolete cdap and docker plugins 60/99760/2
Miroslav Los [Wed, 18 Dec 2019 12:10:24 +0000 (13:10 +0100)]
Remove obsolete cdap and docker plugins

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-1987
Change-Id: I7e7114458a2931b8f1baf915f1714ee8465b86e5

4 years agoR6 tag/path update 29/100029/1
Vijay Venkatesh Kumar [Mon, 6 Jan 2020 17:26:52 +0000 (17:26 +0000)]
R6 tag/path update

Change-Id: I875f6ad6aed651943b00d818daf6cde149150b19
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-1785
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
4 years agoFix tox configuration for coverage 63/99763/2
Miroslav Los [Wed, 18 Dec 2019 12:29:54 +0000 (13:29 +0100)]
Fix tox configuration for coverage

Coverage is unable to report on modules unless PYTHONPATH is set.
Put test results into separate files for python 2 and 3.
Merge coverage of python 2 and 3 in a final report.
Silence warnings on xunit2 pytest output format.

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-2005
Change-Id: I2740231274c153d178e7d9c9103fc70657f7558d

4 years agoCustomize python import for kubernetes plugin 48/99348/4
Miroslav Los [Mon, 9 Dec 2019 17:20:59 +0000 (18:20 +0100)]
Customize python import for kubernetes plugin

Cloudify manager fails to find the plugin without this helper.
The original code, cloudify-python-importer, is unmaintained.
It is just one module, licensed under Apache2.0 as well.
It also needs a python3 fix, hence the module code is added here.

Note that what the modification does should not be necessary,
and a proper root cause and fix needs to be found eventually.

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-1988
Change-Id: I28274dff902204362d7f5b6f97ac3381ff8b5411

4 years agoUpdate versions for all plugins 40/99340/1
Miroslav Los [Mon, 9 Dec 2019 14:57:46 +0000 (15:57 +0100)]
Update versions for all plugins

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-1986
Change-Id: Id4cc1cd9c6c5fb0c013f950b11b7799fa9f4fcfa

4 years agoUpdate DCAE Committer in INFO.yaml 06/99106/2
JoeOLeary [Tue, 3 Dec 2019 21:05:02 +0000 (21:05 +0000)]
Update DCAE Committer in INFO.yaml

Issue-ID: DCAEGEN2-1891
Signed-off-by: JoeOLeary <joseph.o.leary@est.tech>
Change-Id: I6cb1fcf2f3ddd12709df48ef7547b8c27b13acf1

4 years agoSupport python3 in all plugins 57/98857/3
Miroslav Los [Tue, 26 Nov 2019 13:20:36 +0000 (14:20 +0100)]
Support python3 in all plugins

Unify tox/requirements/setup.py requirement specifications.
Do not set upper version limits if possible.
Drop uuid as dependency included with standard library.
Drop import of unmaintained cloudify_importer without python3 version.
Use PEP 508 URLs in requirements for non-PyPI (github) releases.
Use cloudify-common 5 release; pre-release package for python3.
Rewrite uses of map with loops/comprehensions.

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-1956
Change-Id: I7b3ceb97a628e3af5bda3178d182f4207069e86d

4 years agoDCAEGEN2-1920 enhance policy plugin for error conditions 21/98421/3
Schmalzried, Terry (ts862m) [Thu, 14 Nov 2019 18:07:56 +0000 (13:07 -0500)]
DCAEGEN2-1920 enhance policy plugin for error conditions

Issue-ID: DCAEGEN2-1920
Change-Id: I7e1b08cb008f60d7f08ed2db41236a03b8490287
Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
4 years agoR6 tag update 38/96438/1
Vijay Venkatesh Kumar [Mon, 30 Sep 2019 18:51:54 +0000 (18:51 +0000)]
R6 tag update

Change-Id: I1cbbee3dd24600907d2d5625179e92bb74ef4c48
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-1785

4 years agoMove DR subscriber creation before container start 66/91566/2 elalto 5.0.1-ONAP 5.0.2-ONAP
Jack Lucas [Wed, 3 Jul 2019 15:13:25 +0000 (11:13 -0400)]
Move DR subscriber creation before container start

Also update Kubernetes client library version
Fix bug that allowed generating a too-long k8s deployment name.

Issue-ID: DCAEGEN2-1651
Issue-ID: DCAEGEN2-1653
Issue-ID: DCAEGEN2-1667
Change-Id: Ied859073fb01d8623278cf9e58c1dcc26fed1712
Signed-off-by: Jack Lucas <jflucas@research.att.com>
4 years agoAdd TLS support for client-only apps 19/90719/2
Jack Lucas [Tue, 25 Jun 2019 22:52:55 +0000 (18:52 -0400)]
Add TLS support for client-only apps

Also enhance unit tests to do more robust checking of results.

Issue-ID: DCAEGEN2-1550
Change-Id: Icf6e5357d828e19db73bb58b98fd60e9f111d0dc
Signed-off-by: Jack Lucas <jflucas@research.att.com>
4 years agoFix xpath syntax for CentOS 93/88393/1
Jack Lucas [Thu, 23 May 2019 17:59:12 +0000 (13:59 -0400)]
Fix xpath syntax for CentOS

Change-Id: I5f287b9541a20713b25a573879e44a4f37099141
Issue-ID: DCAEGEN2-1520
Signed-off-by: Jack Lucas <jflucas@research.att.com>
4 years agoFix CentOS incompatibilities in mvn-phase-lib 67/88367/1
Jack Lucas [Thu, 23 May 2019 14:57:07 +0000 (10:57 -0400)]
Fix CentOS incompatibilities in mvn-phase-lib

Issue-ID: DCAEGEN2-1520
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: Ica41de308a32767a6f1c4ce178d2460adfa2f61b

4 years agoStop building CDAP and Docker plugins 66/88266/3
Jack Lucas [Wed, 22 May 2019 14:45:49 +0000 (10:45 -0400)]
Stop building CDAP and Docker plugins

Also remove relationships plugin test case that has different
expected results on Ubuntu and CentOS. (Should not change
test coverage statistics.)

Change-Id: I027e13ee92ff1c799d38d8ad9939c4aff73022c3
Issue-ID: DCAEGEN2-1524
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoR5 tag update 56/87056/1
Vijay Venkatesh Kumar [Mon, 6 May 2019 16:15:58 +0000 (16:15 +0000)]
R5 tag update

Change-Id: I3822177c6b0e0ee08a647fd31a0a34532d52751d
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-1481

5 years agoFix DR subscriber failure 48/85848/1 dublin 4.0.0-ONAP
Jack Lucas [Fri, 19 Apr 2019 19:14:25 +0000 (15:14 -0400)]
Fix DR subscriber failure

Issue-ID: DCAEGEN2-1009
Change-Id: Ieb770b6562123dda78fd4b8c8c514d30767ad7fb
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoInitial commit for clamp-policy plugin 80/83480/6
Vignesh K [Wed, 27 Mar 2019 12:04:08 +0000 (17:34 +0530)]
Initial commit for clamp-policy plugin
Addressed review comments

Issue-ID: DCAEGEN2-1129

Change-Id: Icdf95bdbf7c3ec2f201d5d57544ef6d206f3c5fa
Signed-off-by: Vignesh K <vignesh.k041@wipro.com>
5 years agoChange kubeconfig file location 96/83896/2
Jack Lucas [Mon, 1 Apr 2019 22:00:19 +0000 (18:00 -0400)]
Change kubeconfig file location

By putting kubeconfig in its own directory, we make
sure updates to the underlying configMap become
visible to the plugin without restarting CM.

Issue-ID: DCAEGEN2-1136
Change-Id: Ifbc5bed31cdcf285b1cf845427679f631eaa4645
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoadd comment on 63 label length, fix _parse_volumes 49/82749/2
Jason Luo [Wed, 20 Mar 2019 01:04:13 +0000 (01:04 +0000)]
add comment on 63 label length, fix _parse_volumes

change to v['container'].get('mode') to allow mode value be absent

Issue-ID: DCAEGEN2-1126

Change-Id: I12fe257995f466238f64b06e6cf80f3cc2654c5b
Signed-off-by: Jason Luo <cl4531@att.com>
5 years agoAdd multi-cluster support 10/82510/3
Jack Lucas [Mon, 11 Mar 2019 21:43:37 +0000 (17:43 -0400)]
Add multi-cluster support

Issue-ID: DCAEGEN2-1136
Change-Id: I314e5d8c501198b3e87c45813201498935c7bacc
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoadd liveness probe, fix readiness prob exec 91/81891/5
Jason Luo [Sun, 10 Mar 2019 00:36:25 +0000 (00:36 +0000)]
add liveness probe, fix readiness prob exec

liveness and readiness probes may run script with
arguments, ports and volumes are optional instead
of mandatory, test_tasks.py accept ports[] and
volumes[]
fix the issue of labels which are logner than 63

Issue-ID: DCAEGEN2-1126
Change-Id: Id2f893adc300bf508c0512a51b3665872d36f674
Signed-off-by: Jason Luo <cl4531@att.com>
5 years agoFix k8s plugin version in type file 78/81878/1
Jack Lucas [Fri, 8 Mar 2019 22:27:42 +0000 (17:27 -0500)]
Fix k8s plugin version in type file

Issue-ID: DCAEGEN2-987
Change-Id: I74a17b3c8d79f12b77a7e7dd4b57b3fde2e77147
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoUndeploy k8s artifacts on timeout 38/79838/1
Jack Lucas [Tue, 5 Mar 2019 16:43:01 +0000 (11:43 -0500)]
Undeploy k8s artifacts on timeout

Issue-ID: DCAEGEN2-987
Change-Id: I35a2dcdb7b7f1b7280dba6593a9ee2b8921b6df9
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoAdd k8sclient unit tests 00/79400/1
Jack Lucas [Wed, 27 Feb 2019 16:38:13 +0000 (11:38 -0500)]
Add k8sclient unit tests

Change-Id: I4b664865618bf87822af325e2c2dd43e71c0bdac
Issue-ID: DCAEGEN2-1261
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoAdd resource_config to specify CPU and menory 37/79137/4
Jason Luo [Mon, 25 Feb 2019 22:01:05 +0000 (22:01 +0000)]
Add resource_config to specify CPU and menory

Enhance K8s plugin used by DCAE Platform to specify CPU and memory

Issue-ID: DCAEGEN2-1126

Change-Id: I2431b0b7f67f855122ed4494aa21cad0f99dcc37
Signed-off-by: Jason Luo <cl4531@att.com>
5 years agouse new onap-dcae-dcaepolicy-lib 53/75953/2
Schmalzried, Terry (ts862m) [Thu, 17 Jan 2019 19:44:29 +0000 (14:44 -0500)]
use new onap-dcae-dcaepolicy-lib

Issue-ID: DCAEGEN2-1086
Change-Id: I64f994e99b417f4d79ac95f64aa9596bb77ce8f0
Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
5 years agofix typos 95/72195/1
Stanislav Chlebec [Thu, 8 Nov 2018 10:49:24 +0000 (11:49 +0100)]
fix typos

Change-Id: I95954edbf2827292a5da500330ba43781cc2cd8d
Signed-off-by: Stanislav Chlebec <stanislav.chlebec@pantheon.tech>
Issue-ID: AAF-582

5 years agoR4 tag update 91/71791/1
Vijay Venkatesh Kumar [Sat, 3 Nov 2018 07:04:56 +0000 (07:04 +0000)]
R4 tag update

Change-Id: I3c248253f40dc31d055f263ada3b6dd1e6375a6b
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-937

5 years agoUpdate plugin version in k8s type file 81/70381/1 casablanca 3.0.0-ONAP 3.0.1-ONAP
Jack Lucas [Fri, 12 Oct 2018 19:19:26 +0000 (15:19 -0400)]
Update plugin version in k8s type file

Issue-ID: DCAEGEN2-796
Change-Id: Ic89231138ec7da7004334547031fef26df03032c
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoAdd support for UDP port mapping 79/70379/1
Jack Lucas [Fri, 12 Oct 2018 15:30:05 +0000 (11:30 -0400)]
Add support for UDP port mapping

Issue-ID: DCAEGEN2-796
Change-Id: I09038d0bc7154b989f9ce9e328da57aac0020597
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoDon't change to https when use_tls is set 47/67447/1
Andrew Gauld [Tue, 18 Sep 2018 19:19:46 +0000 (15:19 -0400)]
Don't change to https when use_tls is set

The k8s plugin's behavior of setting the health check probe type
scheme to https when it was http and the use_tls flag is set is
causing a problem for the Policy Handler.  This change leaves the
health check type alone, so, if it was http, it stays http even if
use_tls is set.

Change-Id: If004876f5142889abe0b24aeb4c0fdedaea3ab2b
Issue-ID: DCAEGEN2-591
Signed-off-by: Andrew Gauld <ag1282@att.com>
5 years agoinclude registry on tls image 79/67179/1
vagrant [Mon, 17 Sep 2018 06:56:45 +0000 (06:56 +0000)]
include registry on tls image

Change-Id: Ic109995f29922ca3a28107970fa1aae5246b9b67
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-790

5 years agoUpdate image name for default TLS_IMAGE 67/67067/1
Andrew Gauld [Mon, 17 Sep 2018 18:45:46 +0000 (14:45 -0400)]
Update image name for default TLS_IMAGE

Change-Id: If7a30270d07ce6283f4c24ca3802e23a5cbf70b5
Issue-ID: DCAEGEN2-790
Signed-off-by: Andrew Gauld <ag1282@att.com>
5 years agoAdd support for TLS init container 29/65529/1
Jack Lucas [Mon, 10 Sep 2018 12:14:29 +0000 (12:14 +0000)]
Add support for TLS init container

Change-Id: I118af2c8a0294ffc89e045f8cdae24dfb7e57ab6
Issue-ID: DCAEGEN2-591
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoUse managed guava version 97/62597/2
Gary Wu [Fri, 24 Aug 2018 22:21:35 +0000 (15:21 -0700)]
Use managed guava version

Use centrally managed guava version specified in
oparent.  Includes upgrade to oparent 1.2.0.

This change was submitted by script and may include
additional whitespace or formatting changes.

Change-Id: I8ceadffca9d6424727582ebb7297b1dd36207b7c
Issue-ID: INT-619
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
5 years agoAdd modules to tox.ini coverage spec 25/61625/1
Jack Lucas [Tue, 21 Aug 2018 15:20:53 +0000 (15:20 +0000)]
Add modules to tox.ini coverage spec

Change-Id: I617b7f3b8a7b8ec068c16355530351aad0122062
Issue-ID: DCAEGEN2-723
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoAdd checks on runtime props for uninstall 39/61139/1
Jack Lucas [Fri, 17 Aug 2018 21:27:26 +0000 (21:27 +0000)]
Add checks on runtime props for uninstall

Change-Id: Ib2e37713068e77126914d1af3bc238fc0119ef93
Issue-ID: DCAEGEN2-695
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoFix k8splugin to accept intervals as strings 83/58283/3
Jack Lucas [Tue, 31 Jul 2018 21:10:25 +0000 (21:10 +0000)]
Fix k8splugin to accept intervals as strings

Also update type file to point to new plugin version
Add unit tests for parsing interval
Change RE to be non-Python specific
Use uppercase for RE constant and unit conversion factors

Issue-ID: DCAEGEN2-649
Change-Id: I1de728b3efd0725d4a3da996d95ec61e68f56ab4
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoMerge "Add INFO.yaml file"
Vijay Venkatesh Kumar [Fri, 27 Jul 2018 21:27:05 +0000 (21:27 +0000)]
Merge "Add INFO.yaml file"

5 years agoMerge "Make docker node type consistent with k8s"
Jack Lucas [Fri, 27 Jul 2018 19:42:21 +0000 (19:42 +0000)]
Merge "Make docker node type consistent with k8s"

5 years agoAdd INFO.yaml file 73/46073/2
Jessica Wagantall [Fri, 4 May 2018 00:16:17 +0000 (17:16 -0700)]
Add INFO.yaml file

Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information

Change-Id: Ic6adb472e733d08cbed931e369fc47507fbfef5d
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoAdd policy update notification support 03/57603/1
Jack Lucas [Wed, 25 Jul 2018 20:33:50 +0000 (20:33 +0000)]
Add policy update notification support

Use k8s terminology instead of Docker terminology
Remove some redundant logging

Change-Id: Ic8e581ebde9ea062a7d0e145465425eec1db57c3
Issue-ID: DCAEGEN2-504
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoMake docker node type consistent with k8s 41/57341/2
Michael Hwang [Fri, 13 Jul 2018 18:05:40 +0000 (14:05 -0400)]
Make docker node type consistent with k8s

Change-Id: I877a041cfa9e272be5835f5956a4c08e16de39b0
Issue-ID: DCAEGEN2-551
Signed-off-by: Michael Hwang <mhwang@research.att.com>
5 years agoMerge "Add support for updating image."
Michael Hwang [Wed, 18 Jul 2018 20:32:08 +0000 (20:32 +0000)]
Merge "Add support for updating image."

5 years agoAdd support for updating image. 63/56663/1
Jack Lucas [Tue, 17 Jul 2018 21:34:22 +0000 (21:34 +0000)]
Add support for updating image.

 - Refactor type file to reduce duplication
 - General code cleanup

Change-Id: I80354736100dcd3544db2f751335d704bd240666
Issue-ID: DCAEGEN2-543
Signed-off-by: Jack Lucas <jflucas@research.att.com>
5 years agoUpdate release tag 67/56567/1
Lusheng Ji [Tue, 17 Jul 2018 02:56:35 +0000 (22:56 -0400)]
Update release tag

Issue-ID: DCAEGEN2-499
Change-Id: I1c28ccd0b5e3322347a6ea00c756086848bff9d6
Signed-off-by: Lusheng Ji <lji@research.att.com>
5 years agoCreate k8s readiness probe 09/55009/1
Jack Lucas [Mon, 18 Jun 2018 14:02:13 +0000 (14:02 +0000)]
Create k8s readiness probe

Change-Id: Iaf222957bc7aa049e3d8d6d1c290435767487387
Issue-ID: DCAEGEN2-503
Signed-off-by: Jack Lucas <jflucas@research.att.com>
6 years agoRemove explicit requirements to make build *any* 57/43757/2 2.0.0-ONAP beijing 2.0.0-ONAP
Michael Hwang [Thu, 19 Apr 2018 17:50:00 +0000 (13:50 -0400)]
Remove explicit requirements to make build *any*

There are certain python dependencies that will cause built wagons
to be tied to the operating system it was built on. Simply removed
almost all explicit dependencies.

Change-Id: I4823f3c32f87e1843f788badf98468a3159074f5
Issue-ID: DCAEGEN2-455
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoSupport for /var/run/secrets/kubernetes.io 53/43353/1
Jack Lucas [Tue, 17 Apr 2018 13:15:46 +0000 (13:15 +0000)]
Support for /var/run/secrets/kubernetes.io

Change-Id: If259892dd332981654bcad6b1e07037afbf31c7d
Issue-ID: DCAEGEN2-447
Signed-off-by: Jack Lucas <jflucas@research.att.com>
6 years agoMerge "2.3.0 dcaepolicyplugin and data types"
Lusheng Ji [Thu, 12 Apr 2018 21:42:15 +0000 (21:42 +0000)]
Merge "2.3.0 dcaepolicyplugin and data types"

6 years ago2.3.0 dcaepolicyplugin and data types 41/42341/3
Alex Shatov [Thu, 12 Apr 2018 21:14:43 +0000 (17:14 -0400)]
2.3.0 dcaepolicyplugin and data types

- discovering consul at consul:8500 instead of localhost:8500
- added and refactored unit tests for discovery -- coverage 78%

Change-Id: I3712fe36df47d6117206d61ca4916c4dbc42d035
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-438

6 years agoChange consul host to be "consul" 23/42523/3
Michael Hwang [Thu, 12 Apr 2018 14:24:30 +0000 (10:24 -0400)]
Change consul host to be "consul"

And not localhost

Change-Id: I68c1cb4bf52e0a39a256c0adc4b6b8fb0db269ac
Issue-ID: DCAEGEN2-442
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoSet up env variables correctly 81/41281/1
Jack Lucas [Thu, 5 Apr 2018 21:44:07 +0000 (21:44 +0000)]
Set up env variables correctly

Change-Id: I4752510a4e36d8dc19d923a817c7fb687d78fa22
Issue-ID: DCAEGEN2-432
Signed-off-by: Jack Lucas <jflucas@research.att.com>
6 years ago2.2.1 dcaepolicyplugin and data types 79/39279/2
Alex Shatov [Tue, 27 Mar 2018 21:12:31 +0000 (17:12 -0400)]
2.2.1 dcaepolicyplugin and data types

- trying to avoid changing code for k8s deployment of
  policy-handler with unknown url to MSB or policy-handler
  at the moment
- expecting optional manual population of the consul-kv
  with config data for dcaepolicyplugin

- when not found service for policy-handler in consul
  -- try finding config for "dcaepolicyplugin" in consul-kv
  -- the config structure is expected to contain
      url to policy_handler
- example of config value for key=dcaepolicyplugin:
{
    "dcaepolicyplugin" : {
        "policy_handler" : {
            "url" : "http://policy-handler:25577"
        }
    }
}
- still drop down to hardcoded default when this config
   not found in consul-kv

- added and refactored unit tests for discovery -- coverage 78%
- making code more PEP8 compliant

Change-Id: Ia176b54ed62631baa30d614785d1937023408ddf
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-419

6 years agoMerge "2.2.0 dcaepolicyplugin and data types"
Lusheng Ji [Tue, 27 Mar 2018 02:18:13 +0000 (02:18 +0000)]
Merge "2.2.0 dcaepolicyplugin and data types"

6 years ago2.2.0 dcaepolicyplugin and data types 65/38665/2
Alex Shatov [Mon, 26 Mar 2018 21:16:29 +0000 (17:16 -0400)]
2.2.0 dcaepolicyplugin and data types

- dcaepolicyplugin to use default policy-handler url
  by dns to discover policy-handler under k8s
  when policy_handler record not found under consul-service
- pending hardcoding the proper dns based url that is to be
   provided by k8s + MSB solution

Change-Id: I8bf49fe29735ec842235c0b58595c7196f5d24ca
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-419

6 years agoSpecify dcaepolicy-lib 2.3.0 in requirements 87/38587/2
Michael Hwang [Mon, 26 Mar 2018 15:08:58 +0000 (11:08 -0400)]
Specify dcaepolicy-lib 2.3.0 in requirements

Change-Id: I2c251e25daea18f5be723b5238a00f40e42ba142
Issue-ID: DCAEGEN2-415
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoMerge "Add DCAE Kubernetes plugin"
Lusheng Ji [Fri, 23 Mar 2018 19:21:59 +0000 (19:21 +0000)]
Merge "Add DCAE Kubernetes plugin"

6 years ago2.1.0 dcaepolicyplugin and data types 73/38173/2
Alex Shatov [Fri, 23 Mar 2018 18:35:12 +0000 (14:35 -0400)]
2.1.0 dcaepolicyplugin and data types

- configAttributes in policy_filter being a stringified json,
   rather than the map due to SDC UI limitations
- safely parse the configAttributes string into json

Change-Id: I934b6254aed285ddab245b440f43403a4fe918fe
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-413

6 years agoAdd DCAE Kubernetes plugin 31/37831/3
Jack Lucas [Thu, 22 Mar 2018 17:43:01 +0000 (17:43 +0000)]
Add DCAE Kubernetes plugin

Change-Id: Ic329f77bb09dcccfd49a34a8f84d387e8da929c6
Issue-ID: DCAEGEN2-410
Signed-off-by: Jack Lucas <jflucas@research.att.com>
6 years agoRevert "Revert "Update docker plugin to use dcaepo 75/37575/1
Michael Hwang [Wed, 21 Mar 2018 20:08:04 +0000 (16:08 -0400)]
Revert "Revert "Update docker plugin to use dcaepo

This reverts commit aa2922da3cf8b83306a49a09bd85114817ae1eba.

Issue-ID: DCAEGEN2-408
Change-Id: Ib622645d2f41d68b3652cbac19c98239bd60a18a
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoAdd pushing wagon as archive 71/36771/5
Lusheng Ji [Mon, 19 Mar 2018 16:08:03 +0000 (12:08 -0400)]
Add pushing wagon as archive

This is the fix needed for using mvn-phase-lib new feature as submitted
at https://gerrit.onap.org/r/#/c/36395/, uploading Cloudify Manager plugins
as zip and tgz files.
Also this change cleans up the mvn-phase-script.sh by removing code that is
redendunt (already in mvn-script-lib).

Issue-ID: DCAEGEN2-206
Change-Id: I922dd10f5423e19535d6f24506585b398028a2eb
Signed-off-by: Lusheng Ji <lji@research.att.com>
6 years agoUpgrade to latest oparent 05/36305/1
Gildas Lanilis [Fri, 16 Mar 2018 22:29:16 +0000 (15:29 -0700)]
Upgrade to latest oparent

Update pom.xml file to latest version release of oparent, 1.1.0

Change-Id: Iaf77cff8825106354554dd6e497318270cebe6cf
Issue-ID: INT-443
Signed-off-by: Gildas Lanilis <gildas.lanilis@huawei.com>
6 years agoSwitch to R2 mvn-phase-lib 11/34811/2
Lusheng Ji [Thu, 8 Mar 2018 17:34:08 +0000 (12:34 -0500)]
Switch to R2 mvn-phase-lib

Change-Id: I47b786da6c0275bb888ff3e2578961efe3af2943
Signed-off-by: Lusheng Ji <lji@research.att.com>
Issue-ID: DCAEGEN2-206

6 years agoUse the mvn-phase-lib under dcaegen2/utils 59/34059/1
Lusheng Ji [Mon, 5 Mar 2018 13:13:39 +0000 (08:13 -0500)]
Use the mvn-phase-lib under dcaegen2/utils

Review along with change https://gerrit.onap.org/r/34057

Issue-ID: DCAEGEN2-206
Change-Id: I2b6d400a7879a2fc3276faadbadb16100a85c4af
Signed-off-by: Lusheng Ji <lji@research.att.com>
6 years agoBound the dcaepolicylib abstract requirement 17/33817/1
Michael Hwang [Fri, 2 Mar 2018 15:18:27 +0000 (10:18 -0500)]
Bound the dcaepolicylib abstract requirement

This is needed because of a potential bug in wagon where instead of
just taking dependencies from requirements.txt.  Wagon meets the
requirements of both requirements.txt and the abstract requirements in
setup.py.  This is when running wagon with the "-r".

Change-Id: If6aebb5b4d98c34e379bdfaa5ff0f7af4fa3504b
Issue-ID: DCAEGEN2-377
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoRevert "Update docker plugin to use dcaepolicy .." 23/33723/2
Michael Hwang [Fri, 2 Mar 2018 04:17:21 +0000 (23:17 -0500)]
Revert "Update docker plugin to use dcaepolicy .."

This reverts commit d2ce7db538f97bc7f86b87e15fe6fcda2b089294.

Change-Id: Ia1eb2a55b9c92253ed5f2d85b87455c4fb2683c7
Issue-ID: DCAEGEN2-377
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoAdd -r in wagon build 85/33685/2
Lusheng Ji [Thu, 1 Mar 2018 21:15:21 +0000 (16:15 -0500)]
Add -r in wagon build

Change-Id: I79657464a302af3836d098100fd75777348e7abe
Signed-off-by: Lusheng Ji <lji@research.att.com>
Issue-ID: DCAEGEN2-206

6 years agoUpdate docker plugin to use dcaepolicy 2.1.0 61/32961/2
Michael Hwang [Mon, 26 Feb 2018 02:18:24 +0000 (21:18 -0500)]
Update docker plugin to use dcaepolicy 2.1.0

This involved all sorts of updates in how policy is
expected to work for the component where the updates
are not backwards friendly.

Change-Id: I08707229b97755d560152fa14affd0bd7b37a3f8
Issue-ID: DCAEGEN2-349
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoMerge "fixed dcaegen2-363"
Tony Hansen [Fri, 23 Feb 2018 21:42:31 +0000 (21:42 +0000)]
Merge "fixed dcaegen2-363"

6 years agofixed dcaegen2-363 25/32725/1
Schmalzried, Terry [Fri, 23 Feb 2018 21:30:27 +0000 (16:30 -0500)]
fixed dcaegen2-363

Change-Id: I3446be1a8c1240659baaa2de924ac295e19d3de5
Signed-off-by: Schmalzried, Terry <ts862m@att.com>
Issue-ID: DCAEGEN2-363
Signed-off-by: Schmalzried, Terry <ts862m@att.com>
6 years agofixed a bug in policy-get plugin 11/32711/1
Alex Shatov [Fri, 23 Feb 2018 19:29:38 +0000 (14:29 -0500)]
fixed a bug in policy-get plugin

- do not raise an exception on not being able to bring policies

Change-Id: I39dda5492903c5b25f4a8b46d96d27a5b8ee1547
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-347

6 years agoMake cdap plugin SONAR code cov work 27/32627/1
Andrew Gauld [Thu, 22 Feb 2018 21:22:33 +0000 (16:22 -0500)]
Make cdap plugin SONAR code cov work

Change-Id: Ib2a3bb760c3906885256d53f1de14d360b53bbd1
Issue-ID: DCAEGEN2-355
Signed-off-by: Andrew Gauld <ag1282@att.com>
6 years agoMake SONAR code coverage work 87/32587/1
Andrew Gauld [Thu, 22 Feb 2018 16:35:58 +0000 (11:35 -0500)]
Make SONAR code coverage work

Change-Id: I8a61f287d439a5bf0b2cb203e31b514a2cae0a5e
Issue-ID: DCAEGEN2-355
Signed-off-by: Andrew Gauld <ag1282@att.com>
6 years agoIncrease unit test coverage 07/32007/3
Michael Hwang [Tue, 6 Feb 2018 19:39:10 +0000 (14:39 -0500)]
Increase unit test coverage

Update licenses for the files touched

Change-Id: Ia8616d37d34ca57246c285eead1378131c5fb8dc
Signed-off-by: Michael Hwang <mhwang@research.att.com>
Issue-ID: DCAEGEN2-291

6 years agoUpdate license text 95/31495/2
Lusheng Ji [Mon, 12 Feb 2018 18:05:42 +0000 (13:05 -0500)]
Update license text

Change-Id: I352c41a5150925327fc9f9b71eaa8f72f575a8b9
Signed-off-by: Lusheng Ji <lji@research.att.com>
Issue-ID: DCAEGEN2-325

6 years agofix copyright from 2018 to 2017-2018 27/30327/1
Alex Shatov [Mon, 5 Feb 2018 18:20:35 +0000 (13:20 -0500)]
fix copyright from 2018 to 2017-2018

Change-Id: I30bf8646d4f1b2c833e39fa2cc7e1b9b5e06b72a
Issue-ID: DCAEGEN2-249
Signed-off-by: Alex Shatov <alexs@att.com>
6 years agoimproved message structure for latest policies 31/30031/1
Alex Shatov [Thu, 1 Feb 2018 19:07:44 +0000 (14:07 -0500)]
improved message structure for latest policies

* unit test coverage 77%

Change-Id: Iebe582bb20173a3f4689239f3a2d822edb48ccc1
Issue-ID: DCAEGEN2-249
Signed-off-by: Alex Shatov <alexs@att.com>
6 years agodo not raise the Nonrecoverable on 404 23/29223/1
Alex Shatov [Thu, 25 Jan 2018 22:26:00 +0000 (17:26 -0500)]
do not raise the Nonrecoverable on 404

* when policy is not required on not finding the policy
+ better logging

Change-Id: I80875b6e2d08ef2cbb8d46e5797a0c3bd2d1197c
Issue-ID: DCAEGEN2-249
Signed-off-by: Alex Shatov <alexs@att.com>
6 years agovariable collection of policies per component 41/27841/2
Alex Shatov [Wed, 10 Jan 2018 16:27:44 +0000 (11:27 -0500)]
variable collection of policies per component

* new feature variable collection of policies per component in DCAE
* Unit Test coverage 78%
* moved module docstring below the license text

Change-Id: Iefe6d4c31e2e125194781edc79e69af2c11e96ef
Issue-ID: DCAEGEN2-249
Signed-off-by: Alex Shatov <alexs@att.com>
6 years agoupdate versioning 41/25241/1 amsterdam 1.0.0-Amsterdam 1.0.0-ONAP
vagrant [Sat, 25 Nov 2017 06:38:04 +0000 (06:38 +0000)]
update versioning

Change-Id: Ic527095239790de9f94cb03956402a8309cdfe1a
Issue-ID: DCAEGEN2-211
Signed-off-by: vagrant <vv770d@att.com>
6 years agoUse 1.4.0 dockering lib 03/21703/1
Michael Hwang [Wed, 1 Nov 2017 20:07:56 +0000 (16:07 -0400)]
Use 1.4.0 dockering lib

Change-Id: Iedca16eeb45ac978dfcc18bbee27c1c6e6e916c9
Issue-Id: DCAEGEN2-189
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoFix push path 19/17819/1
Lusheng Ji [Tue, 10 Oct 2017 05:59:07 +0000 (05:59 +0000)]
Fix push path

Issue-Id: DCAEGEN2-128
Change-Id: I51d0cbd6a3d844ac773167e5eacf0e2966bf437e
Signed-off-by: Lusheng Ji <lji@research.att.com>
6 years agoPush plugin wgn and type files 13/17813/1
Lusheng Ji [Tue, 10 Oct 2017 05:25:29 +0000 (05:25 +0000)]
Push plugin wgn and type files

Issue-Id: DCAEGEN2-128
Change-Id: If93a71e8cac73d805918210bf15977ad3f332eb6
Signed-off-by: Lusheng Ji <lji@research.att.com>
6 years agoRemove cd to module directory 07/17807/1
Lusheng Ji [Tue, 10 Oct 2017 04:53:14 +0000 (04:53 +0000)]
Remove cd to module directory

Issue-Id: DCAEGEN2-128
Change-Id: Ic1ea79d772469547dc2e0370e87941303e893ad9
Signed-off-by: Lusheng Ji <lji@research.att.com>
6 years agoChange artifact deployment locations 91/17791/3
Lusheng Ji [Tue, 10 Oct 2017 03:29:34 +0000 (03:29 +0000)]
Change artifact deployment locations

Issue-Id: DCAEGEN2-128
Change-Id: I55f533c0fa1a2a51e6a11b1e8e1dbb221b992fbe
Signed-off-by: Lusheng Ji <lji@research.att.com>
6 years agoUT 78% dcaepolicy plugin 21/15721/1
Alex Shatov [Tue, 26 Sep 2017 20:58:37 +0000 (16:58 -0400)]
UT 78% dcaepolicy plugin

* unit test withcoverage of 78 %
* minor refactoring for lazy init for discovery - useful for UT

Change-Id: I7bee1d5dc5c66477c6e8f19484b0179d5f726fe0
Issue-Id: DCAEGEN2-62
Signed-off-by: Alex Shatov <alexs@att.com>
6 years agoMerge "Toxify for docker and relationship"
Lusheng Ji [Mon, 25 Sep 2017 17:31:26 +0000 (17:31 +0000)]
Merge "Toxify for docker and relationship"

6 years agoToxify for docker and relationship 59/15159/1
Michael Hwang [Mon, 25 Sep 2017 16:13:10 +0000 (12:13 -0400)]
Toxify for docker and relationship

Issue-Id: DCAEGEN2-60
Change-Id: Idaacf7239a54a21d45d77731cae13e5115b68f02
Signed-off-by: Michael Hwang <mhwang@research.att.com>
6 years agoUpdate sonar section of pom 31/15131/1
Tommy Carpenter [Mon, 25 Sep 2017 16:05:09 +0000 (12:05 -0400)]
Update sonar section of pom

Issue-ID: DCAEGEN2-74
Change-Id: I3da21783ea44099892b23673bfdc8479d3a3591f
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
6 years agoUpgrade to public PyPi policy-lib 35/14335/2
Tommy Carpenter [Thu, 21 Sep 2017 18:33:42 +0000 (14:33 -0400)]
Upgrade to public PyPi policy-lib

Issue-ID: DCAEGEN2-74
Change-Id: I85f43a73da58497c5677bffcb2de79015febfa7c
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
6 years agoAdd back .coveragerc, removed by mistake 21/14321/1
Tommy Carpenter [Thu, 21 Sep 2017 16:58:35 +0000 (12:58 -0400)]
Add back .coveragerc, removed by mistake

Issue-ID: DCAEGEN2-74
Change-Id: I18a2c7e54550f10f87bbb97cd150965acd95bb96
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
6 years agoDRY up code with decorators 05/12605/1
Tommy Carpenter [Fri, 15 Sep 2017 01:54:32 +0000 (21:54 -0400)]
DRY up code with decorators

Issue-ID: DCAEGEN2-74
Change-Id: Iefdfe3fa60879161ebc6ba3224f342a9af575d94
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
6 years agoUnit test discovery 79/12479/1
Tommy Carpenter [Thu, 14 Sep 2017 15:57:31 +0000 (11:57 -0400)]
Unit test discovery

Issue-ID: DCAEGEN2-74
Change-Id: Ibc676f118e9e85db306e38c3e40265d1b1d71ff0
Signed-off-by: Tommy Carpenter <tommy@research.att.com>