summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-26Initial commit for EELF LoggerSingla, Rajiv (rs153v)97-0/+6694
Issue-ID: DCAEGEN2-633 Change-Id: I108929219d2d6570080d2fe7792cbc5a6530bb59 Signed-off-by: Singla, Rajiv (rs153v) <rs153v@att.com>
2018-07-16Update release tagLusheng Ji1-1/+1
Issue-ID: DCAEGEN2-499 Change-Id: Id810e30b69c4953cc80ac17689ecedcbd734081c Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-07-10tell tox not to complain that mkdir is externalAndrew Gauld1-1/+5
Change-Id: I999e33dd666a1c2c46ec281263050b05db8c726e Issue-ID: DCAEGEN2-607 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-04-27fix quoting issue2.0.0-ONAPbeijing2.0.0-ONAPHansen, Tony (th1395)1-1/+1
Change-Id: I79f112d6b33e087072c76b1aa28cb123cef9cc59 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: DCAEGEN2-478
2018-04-18Fix pip imports for 10.0.0Lusheng Ji1-2/+0
Pip 10.0.0 introduced non-backwards compatible changes. This causes problem in setup. Adding handling for different cases. Issue-ID: DCAEGEN2-452 Change-Id: I06eba2c3d2aa15827a2e66afb37a4c8416810744 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-04-122.4.0 onap-dcae-dcaepolicy-libAlex Shatov4-36/+233
- discovering consul at consul:8500 instead of localhost:8500 - added and refactored unit tests for discovery -- coverage 94% Change-Id: Id9f52cf95ab3dca0b2759021b408925a1dc87264 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-438
2018-04-03Fix docker image taggingLusheng Ji1-4/+5
Avoid double appending module ID to docker image tag. Specifying pip and tox versions when do tox testiing. (newest pip version 10.0.0b2 does not have pip.req) Issue-ID: DCAEGEN2-206 Change-Id: Id2d714a3e62ffcbb2c2ed9ccb831dd60c7a29de7 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-25Merge "Update docker tagging"Vijay Venkatesh Kumar1-9/+20
2018-03-24Update docker taggingLusheng Ji1-9/+20
Update the way docker images are tagged, following new guideline. Issue-ID: DCAEGEN2-206 Change-Id: Ie8d0459b8a8b9c324d34cdc085f4ead63977a969 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-232.3.0 onap-dcae-dcaepolicy-libAlex Shatov4-38/+35
- configAttributes in policy_filter being a stringified json, rather than the map due to SDC UI limitations - safely parse the configAttributes string into json waiting for the merge before uploading to public pypi Change-Id: If054c2c5e3d95bb97057bb4b2486dbff40e6b244 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-414
2018-03-23Add upload-recursively functionLusheng Ji1-0/+7
Issue-ID: DCAEGEN2-206 Change-Id: I87fd678977fe912030e54c75debad1126f1cf692 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-20Fix archive buildingLusheng Ji1-7/+7
Issue-ID: DCAEGEN2-206 Change-Id: Ia6934e28d4a3c336add919ffcde46319e6f2065b Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-20Fix zip command optionLusheng Ji1-1/+1
Issue-ID: DCAEGEN2-206 Change-Id: Ib627a437ebe28eaa03493b181f0f6577912f8dd0 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-19Fix wagon archiving issueLusheng Ji1-9/+11
Issue-ID: DCAEGEN2-206 Change-Id: Ia9d35064fb8ecdea292e83cbb884336b2dd9e306 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-19Fix archive containing unwanted filesLusheng Ji1-8/+5
Issue-ID: DCAEGEN2-206 Change-Id: I0fcf8462109773e849e72d35014b11779881aa00 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-19Allow unauthenticated Msg Rtr accessAndrew Gauld1-1/+1
Change-Id: Iec4ac1ce05614acb0067b45d8e141a1662bd1c9b Issue-ID: DCAEGEN2-403 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-03-19Allow unauthenticated Msg Rtr accessAndrew Gauld2-4/+20
Change-Id: I31a7041a2372261bde8c9ca58bd3535cf4457ac0 Issue-ID: DCAEGEN2-403 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-03-19Add uploading wagon as archiveLusheng Ji1-1/+57
Add functions for building and uploading archives (zip and tgz) instead of wagons. This offers the option for wagon builders to download Cloudify Manger plugins as archive and build wagon packages in preferred environment (CentOS), instead of building them as part of CICD because Linux Foundation Jenkins servers are all Ubuntu. Issue-ID: DCAEGEN2-206 Change-Id: Iba38398d2102bbc088932243bbac8207c9f73c6c Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-15Upate docker tags, raw repo locationsLusheng Ji1-42/+50
1. Update docker tags to the followingi 4 tags: imagename:symver-timestamp, imagename:symver, imagename:symver-snapshot, imagename:latest 2. Update dcaegen2 raw artifact location using release tag: for example ...${reponame}/R2/artifactname... Issue-ID: DCAEGEN2-206 Change-Id: Iefa8287af713a4bdc6f2a9a8fad99f728ecee1f2 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-12PEP8 ComplianceTommy Carpenter7-46/+87
Change-Id: I93935004dabebdb9cb1b917e5f9e462aef46cb40 Issue-ID: DCAEGEN2-348 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2018-03-05Change CM plugin push locationLusheng Ji2-21/+11
1. change the wagon and type file push location to a path reflecting the release and version numbers 2. wagon create with -r 3. update the local mvn-phase-script to use local mvn-phase-lib Issue-ID: DCAEGEN2-206 Change-Id: Ib86ddab54e17128f893fa41f09c65ea93b800323 Signed-off-by: Lusheng Ji <lji@research.att.com>
2018-03-022.2.0 onap-dcae-dcaepolicy-lib - refactoringAlex Shatov12-868/+128
- removed the following obsolete and unused features = removed policy apply_order parsing = removed policy sorting = removed policy config merge into app-config = removed tracking fields in app-config affected by policies = removed getting config from config.content on microservice = removed org.onap.dcae from license text - simplified the logic flow without policy sorting and without getting policy configs - removed the option to pass the policy configs to plugins = only passing the policy bodies to be included into the policy-notification message - refactoring to reduce function complexity according to sonar - reduced the unit tests to match the new code - coverage is 80% Change-Id: I47729683a45a647b7510edeb85bc018fc7bb8200 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-347
2018-02-23Merge "store policies into consul-kv as <scn>:policies/"Lusheng Ji7-103/+315
2018-02-23Make this compatible with CBS1 and CBS2Tommy Carpenter3-7/+15
Change-Id: I3e221cbc9f7e9554829b2a88f4cc3277a349f1ae Issue-ID: DCAEGEN2-351 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2018-02-23store policies into consul-kv as <scn>:policies/Alex Shatov7-103/+315
- now storing policies into consul-kv under folder <service_cmponent_name>:policies/ as items/<policy_id>=<policy_body> and event={"action": "gathered", "policies_count": 30, "timestamp": "2018-02-12T10:20:30.777Z", "update_id": "0e79edc0-6c64-425e-a618-cc13ef50cd56"}} - this data is going to be retrieved by config-binding service thru a new API http GET <CBS>/service_component_all/<service_component_name> - passing policy_body objects to plugins that consume the Policies decorators to pass to component - new decorator to delete the <service_cmponent_name>:policies/ folder in consul-kv upon uninstalling the component - sorting and merge of policy configs into application config is not removed yet - to be done later - fixed unit tests - coverage is 83% Change-Id: Ie55be9298ac7889d516a5b884a2e24ac05c65a01 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-347
2018-02-22Implement the CBS 2.0.0 APITommy Carpenter6-31/+45
Change-Id: Iadf9e3d071ea24e240599fca2c13d1251e31f729 Issue-ID: DCAEGEN2-351 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2018-02-21Fixes for SONAR code coverage resultsAndrew Gauld3-8/+4
Change-Id: I2e3e548db393f85bae14b1fb4d5c867fe2d557ce Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-02-21Make SONAR code coverage analysis workAndrew Gauld16-48/+39
Change-Id: I8091aea6127b78de404c986be74ecf44935ab92f Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-02-19Dont pin requests version in client libTommy Carpenter8-21/+15
Note 0.0.4 was previously reused erronsouly in public pypi so I had to bump to 0.0.5 Issue-ID: DCAEGEN2-351 Change-Id: Ifd9fbd3f021d07f4ff2beac8aaf5a60ff4a1e317 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2018-02-19Initial version of dcaeapplib packageAndrew Gauld10-0/+638
Change-Id: I54db903e59a67eb4423cacf10ea957d148b4f853 Issue-ID: DCAEGEN2-354 Signed-off-by: Andrew Gauld <ag1282@att.com>
2018-02-12Update license textLusheng Ji10-11/+28
Change-Id: I9953f1064cb700c392234c62ac71bbe376f0d7f5 Signed-off-by: Lusheng Ji <lji@research.att.com> Issue-ID: DCAEGEN2-325
2018-02-05fix copyright from 2018 to 2017-2018Alex Shatov2-2/+2
Change-Id: I17a538431784b1d72f6364b68f720df11b904f09 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2018-02-01get policy config data from config.contentAlex Shatov2-3/+23
* get policy config data from config.content instead of config when policyType is MicroService * identify the microservice by policyType provided by policy-engine or by parsing policy_id -it should contain Config_MS after scope = defense in case the policyType is not provided Change-Id: I25b1ce9e30ee717b14aca3e59e92d4d64d825414 Issue-ID: DCAEGEN2-196 Signed-off-by: Alex Shatov <alexs@att.com>
2018-01-11variable collection of policies per componentAlex Shatov10-230/+1888
* new feature variable collection of policies per component in DCAE * massive refactoring * Unit Test coverage 100% * moved module docstring below the license text Change-Id: I5ba392cb5c42ec136306772163c370d64974ae3c Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
2017-11-25update versioning1.0.0-ONAP1.0.0-Amsterdamamsterdamvagrant7-15/+15
Issue-ID: DCAEGEN2-211 Change-Id: Iaf929c42928d2e0ea057c2e98345160d1886de28 Signed-off-by: vagrant <vv770d@att.com>
2017-11-01Turn off cert validationMichael Hwang5-3/+14
Change-Id: Ie43b6ffd4b50ee08ad65015d43ec262ba0b2b7f8 Issue-Id: DCAEGEN2-189 Signed-off-by: Michael Hwang <mhwang@research.att.com>
2017-10-13Add script upload to snapshotsLusheng Ji2-2/+4
Issue-Id: DCAEGEN2-128 Change-Id: I90d456e43f0ad42f5b34c52476d7993ccc044ff1 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-10-13Fix pomLusheng Ji1-0/+247
Issue-Id: DCAEGEN2-128 Change-Id: Ifc7d20dd729947f2983df6ac97248243493e48d0 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-10-13Move mvn script lib to scripts/Lusheng Ji2-80/+169
Issue-Id: DCAEGEN2-128 Change-Id: I8a1198b0b400d03b1fd3a26ef6cbd8a6cda35597 Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-09-29remove check-blueprint-vs-input, repackageTony Hansen11-1718/+0
check-blueprint-vs-input was moved to blueprints module repackage was moved to ccsdk/pgaas module Change-Id: If9d04d4ee1c0e5a3a2b837fc253c00dee226a2ac Signed-off-by: Tony Hansen <tony@att.com> Issue-ID: DCAEGEN2-49
2017-09-2672% unit test and coverage with toxAlex Shatov6-2/+592
* usage on local run: tox -c tox-local.ini * usage on ONAP run: tox Change-Id: I8075b035f9f05fa45a3e7eba52dc40fbcef8feec Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-25Add unit testing to cbs docker clientTommy Carpenter10-26/+208
Issue-ID: DCAEGEN2-60 Change-Id: I4e376ed2b417aceb2927997ff9be8e502829fd86 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2017-09-21Fix tox to give more accurate coverage reportsMichael Hwang9-34/+60
* Also attempted to get sonar working * Fixed minor things along the way Change-Id: I434c0d791140e75cd5997be0cc3fefce7ccc292f Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang <mhwang@research.att.com>
2017-09-21proper setup.py for global pypiAlex Shatov3-20/+10
* usage: pip install onap-dcae-dcaepolicy-lib import onap_dcae_dcaepolicy_lib Change-Id: I57b1b3157f21f9cb3b018c55ba469cd14450942b Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-21Fix raw artifact push pathLusheng Ji4-9/+9
Issue-Id: DCAEGEN2-60 Change-Id: I0f420b6a4ebbdf0f2a9d6acd56d09f7366358b2d Signed-off-by: Lusheng Ji <lji@research.att.com>
2017-09-20Add metadata liscense to setupTommy Carpenter4-2/+5
Issue-ID: DCAEGEN2-60 Change-Id: I9933f36fe7df6a6bf33f935b2702b5209f1bca81 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2017-09-20renamed package to onap_dcae_dcaepolicy_libAlex Shatov12-86/+13
Change-Id: I692c45488fc84270ab02eca5730a3dd9b6f100ca Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
2017-09-20Rename the cbs docker clientTommy Carpenter10-6/+6
Issue-ID: DCAEGEN2-60 Change-Id: Ia0d4726215efc1c2fe78bee1bdfdf1403e2c349c Signed-off-by: Tommy Carpenter <tommy@research.att.com>
2017-09-20Change name of packages to onap-dcae-*Michael Hwang6-8/+9
For dockering and discovery-client Change-Id: Ieeab4309fc06ebb32f5f48133b7afc90dea681f8 Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang <mhwang@research.att.com>
2017-09-20Update parent IDLusheng Ji8-131/+14
Issue-Id: DCAEGEN2-60 Change-Id: I40996ee4766b068568cd1c5978e1fbd0812b34c7 Signed-off-by: Lusheng Ji <lji@research.att.com>