aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
AgeCommit message (Collapse)AuthorFilesLines
2018-04-12Fix build issue Determe, Sebastien (sd378r)1-2/+3
Fix build issue due to rebase conflict resolution Issue-ID: CLAMP-151 Change-Id: Id65f78a03b54a9e30263c1d560f444cd58be780b Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-12Add default configDeterme, Sebastien (sd378r)1-2/+2
Add the default configuration for sdc-controller so that it can work with oom or docker instances Issue-ID: CLAMP-151 Change-Id: Ia69c740efceddfaec6d7e0d5e31cc3d7eecb4545 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-12Add some logsDeterme, Sebastien (sd378r)3-7/+22
Add some logs for sdc-controller code so that it's easier to follow the csar deployment Issue-ID: CLAMP-151 Change-Id: I73f8ecea4140da57bda6daeaf721ab99dacadc40 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-12Fix the sdc-controllerDeterme, Sebastien (sd378r)4-64/+144
The field Resource UUID war incorrectly set as the blueprint can't be found in the sdc notification, it must retrieved from the csar. Issue-ID: CLAMP-151 Change-Id: I5a80047bcc7f009f67a2dac1891f47bdde0e9bcc Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-12Merge "Remove the nosonar"Sébastien Determe2-4/+5
2018-04-12Merge "Fix potential issue while install CSAR"Sébastien Determe4-5/+45
2018-04-12Fix potential issue while install CSARxg353y4-5/+45
Add random waiting timer for treat notification, so that no 2 threads will treate the notif at the same time; Add the retry mechanism for the DCAE Inventory api call. Change-Id: I9bd8a58001d638c589309a9d65e4df6a2e437209 Signed-off-by: xg353y <xg353y@intl.att.com> Issue-ID: CLAMP-151
2018-04-12Merge "Improve policy Config"Sébastien Determe5-45/+150
2018-04-11Improve policy ConfigDeterme, Sebastien (sd378r)5-45/+150
Improve the policy configuration file and merge it to application.properties so that all configurations are located at the same place Issue-ID: CLAMP-136 Change-Id: I5654bbe61d483a4061540959ed0b7dbb1242b022 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-11Remove the nosonarDeterme, Sebastien (sd378r)2-4/+5
Remove the nosonar from the code as Sonar has been updated to version 6 Issue-ID: CLAMP-147 Change-Id: I8c5e9b0e4b3d9a303dfab7a1434cd5f9307d9d05 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-10Fix transaction issuexg353y1-0/+2
Add the transaction annotation, so that template and model will be saved within the same transaction. Issue-ID: CLAMP-151 Change-Id: Ia0c50967317c3c158b401175dc1fbc166610518b Signed-off-by: xg353y <xg353y@intl.att.com>
2018-04-09Fix SDC deploymentDeterme, Sebastien (sd378r)1-7/+7
Fix the SDC deployment, inversion of the "already existing" check Issue-ID: CLAMP-151 Change-Id: I2d83033dd5df373965196dd00ead6fcab9bdc260 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-06Fix the SDC controllerDeterme, Sebastien (sd378r)2-3/+3
Fix the Controller so that it can save the csar before checking that it has been installed, also fix the isCsarAlreadyDeployed method Issue-ID: CLAMP-151 Change-Id: I7d04ec4be3960b4c1673e4d8b656649c18cfcee1 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-06Change CsarHandler behaviorDeterme, Sebastien (sd378r)1-4/+4
Change the Csarhandler so it does not raise an exception when it installs a file that already exist Issue-ID: CLAMP-151 Change-Id: I4b260bee95d2651e64bf4318957680918396be4d Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-06Fix Sonar issueDeterme, Sebastien (sd378r)1-3/+5
Fix issues reported by SOnar on string values Issue-ID: CLAMP-147 Change-Id: I3ccf668b15106b32d56bc53d63b7688088561137 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-06Fix Sonar issuesDeterme, Sebastien (sd378r)1-5/+6
Fix issues reported by Sonar on CldsService class Issue-ID: CLAMP-147 Change-Id: I9eef9ccf4e69b19e2f63db1ef8634c29a84f3c56 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-06Update SDC libraryDeterme, Sebastien (sd378r)5-47/+37
Upgrade SDC library to latest and remove the message bus condition, it's now a mandatory parameter as well Issue-ID: CLAMP-149 Change-Id: I4c7ddcca6ac176380821bd8f1e4e3ef3d9fcea30 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-03New parameter Sdc controllerDeterme, Sebastien (sd378r)2-7/+20
There is a need to have that new parameter (message bus addresses) if the sdcAddress is not present Issue-ID: CLAMP-149 Change-Id: I336e7af6784a70b0b65c9610fc2e69e40126bdc0 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-03Fix sonar bugsDeterme, Sebastien (sd378r)2-8/+3
Fix Sonar bugs and bad comments in the code Issue-ID: CLAMP-147 Change-Id: I4cc8e00a0d063396b7dd6ac6c7fcf408607f998e Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-28Merge "Add simulator cases for (un)deploy/stop + typo"Sébastien Determe1-1/+1
2018-03-28Add simulator cases for (un)deploy/stop + typoehautot1-1/+1
Change-Id: I0a3b8f1e812f6199c5a7fbbabd88c6c5ec4217cc Signed-off-by: ehautot <eh552t@intl.att.com> Issue-ID: CLAMP-111
2018-03-27Add blueprint inputDeterme, Sebastien (sd378r)4-40/+77
Add blueprint json input support for DCAE call Issue-ID: CLAMP-142 Change-Id: I52657ff7ead38681eae2744a30271f0a1b825bb6 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-27Fix UI DCAE DeployDeterme, Sebastien (sd378r)1-5/+5
The Json format sent in CldsModel was not correct, the correct format must be with key name and key value. Issue-ID: CLAMP-142 Change-Id: I2802112702ff2e1f149932d59109f22654c581aa Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-27Security FixDeterme, Sebastien (sd378r)15-101/+197
Introduce a centralized ObjectMapper for Resteasy and Clamp code so that the automatic Ser/deserialization of all classes is disabled. Issue-ID: CLAMP-135 Change-Id: I1fb11c8fc8e7a53ef832774fa8c06af1c70d3dad Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-23Rework the SDC testDeterme, Sebastien (sd378r)4-42/+85
Rework the uni tests so that SDC controller is more tested, also dcae code has been reworked for improving sonar report Issue-ID: CLAMP-81 Change-Id: Ia6ec272e1bf86e72d9d7294aeec0695b861f78af Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-23Naming conventionDeterme, Sebastien (sd378r)1-26/+26
Refactor the names in SDC controller Issue-ID: CLAMP-81 Change-Id: I715e0274efe5ac10e8bcc1f5b8a0171231e55265 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-23Sonar fixesDeterme, Sebastien (sd378r)1-30/+38
Rework the class due to sonar report Issue-ID: CLAMP-81 Change-Id: I5f99728b3aa1c194d0bf7b2cf727e8dbdf99684f Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-23Merge changes from topic 'security'Sébastien Determe6-219/+27
* changes: Remove client usage of md5 Bcrypt as password hashing method in the backend
2018-03-23Remove client usage of md5ac25506-218/+5
Md5 usage introduce a security flow by reducing the amount of test needed for a brute force attack. Change-Id: Ifa4e6259d0a3fb06c91c03d1c67470ddd02284fc Issue-ID: CLAMP-143 Signed-off-by: ac2550 <ac2550@intl.att.com>
2018-03-23Merge "Allow additional parameters to deployment"Sébastien Determe4-2/+112
2018-03-22Bcrypt as password hashing method in the backendac25502-4/+25
Change-Id: I5ed802c35ade8ba5da4d21f2a8c22d0198490885 Signed-off-by: ac2550 <ac2550@intl.att.com> Issue-ID: CLAMP-143
2018-03-22resolve issues due to conflictDeterme, Sebastien (sd378r)3-95/+20
Resolve the issues due to the conflicts and rework the Sdc startup Issue-ID: CLAMP-81 Change-Id: I3f6fa5268140e902b445c316bc40f326256d17c0 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-22Allow additional parameters to deploymentac25504-2/+112
Change-Id: I760d0f0d54f83282d8556b74a588361669fa5375 Issue-ID: CLAMP-142 Signed-off-by: ac2550 <ac2550@intl.att.com>
2018-03-22Add properties to modelDeterme, Sebastien (sd378r)5-17/+126
Add properties to model created in db + Auto start configuration for spring Issue-ID: CLAMP-81 Change-Id: I6598872c6b47963e97c63730a4b6499e2b1a2de2 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-22Rework of the csarinstallerDeterme, Sebastien (sd378r)5-48/+127
Csarinstaller rework to save Template and Model to database Issue-ID: CLAMP-81 Change-Id: I5edf9716146975ed3751a93b78f5c9b0b9ff2af9 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-22Remove the test flagDeterme, Sebastien (sd378r)1-0/+72
Remove test flag from deploy and undeploy. Also remove useless variable definition Issue-ID: CLAMP-141 Change-Id: I49bd3e88b9a37d891fce243dbadb9a5f890c06cf Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-22Fix the JaxRsDeterme, Sebastien (sd378r)1-4/+4
Fix the JaxRs endpoints that were wrong Issue-ID: CLAMP-141 Change-Id: Ibb2598e0c3460f72961048edbf93d1717473b0bb Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-21Merge "Cleanup duplicate/unused code"Sébastien Determe3-568/+0
2018-03-21Merge "Draft single controller"Eddy Hautot1-0/+310
2018-03-21Merge "CsarInstaller introduction"Eddy Hautot8-0/+1009
2018-03-21Merge changes from topic 'feature/sdc-controller'Sébastien Determe5-28/+164
* changes: Rework the code CsarHandler rework Add new config classes
2018-03-21Cleanup duplicate/unused codeac25503-568/+0
Change-Id: Ib3707b85285ad688ef4e8d94d6f035668b9b1b93 Issue-ID: CLAMP-140 Signed-off-by: ac2550 <ac2550@intl.att.com>
2018-03-16Draft single controllerDeterme, Sebastien (sd378r)1-0/+310
Draft class that handle one single controller based on the SDC JSon config Issue-ID: CLAMP-81 Change-Id: I3db6179c1cb00e21de8b1d58b6e36b49e053fadd Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16CsarInstaller introductionDeterme, Sebastien (sd378r)8-0/+1009
This class is introduced to decode/deploy the dcae blueprint from SDC and save it to database. This is done based on json templates. Some unit tests added Issue-ID: CLAMP-81 Change-Id: I3fac5f7ef41d77aa244414407111b9cb602b50bd Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16Rework the codeDeterme, Sebastien (sd378r)2-13/+2
Some reworking of different services classes Issue-ID: CLAMP-81 Change-Id: I7815e805f2a41954d633d3e3453af02d0de6b283 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16CsarHandler reworkDeterme, Sebastien (sd378r)1-15/+45
Reworking of the csarHandler to support cache of dcae blueprint Issue-ID: CLAMP-81 Change-Id: Ic9c71d8f23ac75a6273781991f5ac7a60c4f328d Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16Add new config classesDeterme, Sebastien (sd378r)2-0/+117
Add classes to support the Blueprint mapping configuration Issue-ID: CLAMP-81 Change-Id: I78b42f90993700c299fd75a20f39aa16f632ff9d Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-15Merge "false positive license issue on nexus IQ + unused"Sébastien Determe6-1661/+0
2018-03-15Merge changes from topic 'bugfix/nexus-iq'Eddy Hautot4-15/+15
* changes: Fix Checkstyle issues Update jackson-databind
2018-03-15Fix Checkstyle issuesDeterme, Sebastien (sd378r)4-15/+15
Fix the checkstyle issues reported by the build Issue-ID: CLAMP-74 Change-Id: Ia2b3e332808d59aefcc7140d9638c7a18ef24e65 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>