aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/http-cache
AgeCommit message (Collapse)AuthorFilesLines
2021-05-13Modular structure of clamp including controlloopSirisha_Manchikanti30-2159/+0
This commit is the first commit that puts in multi module structure while changing the existing CLAMP code as little as possible. It adds a structure where common, models, participant and runtime are direct children under clamp, and current clamp code is moved under runtime. This runtime directory will host controlloop runtime code in later commits. Issue-ID: POLICY-3215 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I15bc8be92ed020343bff4024c4718fec462c40d7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-04-01Rework the backend to support PDP updatessebdet1-1/+6
Add new mem structure so that we do not need to parse the same Json for each policy/type + rework the camel flows so that we use the same code for loop and policies related calls Issue-ID: POLICY-2930 Issue-ID: POLICY-2931 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c30c4f87cf669b40511472d518fe5ccc89f56f0
2021-02-17Fix the Tosca Converter to Json Schemasebdet1-1/+1
The backend had to be slightly fixed so that the json generation without being in a loop is not an issue. This is required for the policies listing feature Issue-ID: POLICY-2926 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia6a9e034f888384999a8ea557ce550c87c65c4be
2021-02-17Modify Backend for listing the policiessebdet16-13/+122
Improve Ui components to list policies + changes an existing camel route to expose the policy json schema properly. New files added to emulator for testing + comments added. Now the Ui can show the policy config Issue-ID: POLICY-3061 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iacf9577a4ab2cc927d05ff267e7356d8410eb77a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-02-15Add New UI component for policies listsebdet1-4/+9
Add new Ui components to list policies + the small refactoring of React Routes Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I784d7c144a3a3af98a9d62b5d40b5172dbdaed47 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-01-25Policy list and Pdpgroup merger codesebdet1-152/+0
Draft code of the policy list/pdpgroup merger + tests, this code will most likely be called by a camel Rest route and the answer will be returned to the client/ui. The policies listing is enriched with new fields pdp group info, like: 1. In which Pdp group/Subgroup the policy is currently deployed 2. What are the potential pdpgroups/subgroups where the policy can be deployed These info will be shown in the policy clamp UI to the user. Also some refactoring has been done for the sake of clarity. Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iba1ab6fea90735551d7d2e2bbff9ab2efdee093e Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-01-22First integration of Policy model PdpGroupssebdet1-1/+1
Replacement of the PdpGroups clamp code by the one from policy model dependency. Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I12c77704bba1c769dc2f307d91b759a3b645013f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-01-15Add policies list and PDP responses in the emulatorsebdet6-2/+527
- Add some specific answers to the emulator so that the backend list code can be tested - add guilin tca blueprint to the integration tests so that the test.sql contains a new template. Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I716cfbaa1a084df1455da25470d86b903ef7c936
2020-10-09Fix the DCAE querysebdet23-2/+2
The DCAE deployment URL can contain URI parameters that crashes the URL used by HTTP4 Camel. Also the parameter connectionTimeToLive is removed as it is transmitted in each call. The SDC client is also updated to 1.4.1 Issue-ID: CLAMP-954 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ieebdfe009f4339188c75c7a3365546779a087561 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-08-28CLAMP should not display all CDS workflow propertiesroot11-3/+31
CLAMP should not display all CDS workflow properties Issue-ID: CLAMP-856 Signed-off-by: root1 <vidyashree.rama@huawei.com> Change-Id: I98fc46c9c9ba574a3606740921d74743cb6f38ea
2020-06-06optimize size and time using "--no-cache-dir"Pratik Raj1-1/+1
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages by pip don't cached on system . This is a best practise which make sure to fetch ftom repo instead of using local cached one . Further , in case of Docker Containers , by restricing caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: CLAMP-861 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: I7e7a7799ae48901c289d07bc07e7c96f24f5d078
2020-03-31Fix blank space crash in toscasebdet1-103/+301
Fix the crash that occurs when a blank space is found in the metadata section Issue-ID: CLAMP-801 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3d66991378bd44fbb7d19a5048091e307589677a
2020-03-24Improve metadata supportsebdet2-4/+4
Improve the metadata support for CDS and default values Issue-ID: CLAMP-786 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8a24e31a93ff1e288ec8f0f6d522b1b15d39a8d2
2020-03-23Fix the CDS callssebdet2-10/+10
Fix the CDS calls for generic tosca policies, the new tosca parser must be interrupted so that clamp can do json schema enrichment Issue-ID: CLAMP-786 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ib7e85a6cc3849f614a3025779d29e8024f7a2ef2
2020-03-17Fix the policy synchrosebdet3-0/+88
Fix the periodic policy synchro issue due to wrong format expected. Issue-ID: CLAMP-784 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iaa815e92bb5c7d93f9db9c75f98e144b8d0f6b44
2020-03-16Fix the policy synchrosebdet1-6/+6
Fix the periodic policy synchro issue due to wrong format expected. Issue-ID: CLAMP-781 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I97d1ac28b5427378b6c4a0fa67415cc728f46b87
2020-03-16Fix the legacy policiessebdet2-4/+12
Fix the legacy policies not displayed in the UI properly due to the new PolicyModal dialog. Issue-ID: CLAMP-779 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8070d8c57e43c9a386e09475f0d377f91104aef1
2020-03-13Fix the new tosca convertersebdet2-4/+4
Fix the metadata section analysis and make the tosca parser more configurable (in applications.properties) Issue-ID: CLAMP-580 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9068bd9dc89861c640660a7f78fae2cb70bdc178 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-03-10Merge "Rework tosca converter"Xue Gao16-144/+444
2020-03-09Rework tosca convertersebdet16-144/+444
New code to convert the Policy Tosca Yaml to Json Schema for the Clamp UI Issue-ID: CLAMP-647 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id15ddedc1910f6a40bf6e407b34e343e00135571
2020-03-09Merge "CLAMP-CDS integration to display all CDS actions for blueprint in CL"Sébastien Determe4-0/+82
2020-03-04Change json representation in op policysebdet13-1281/+285
Change the json generation for an operational policy instance and update all emulator response for all policy types Issue-ID: CLAMP-653 Change-Id: I68525be3d5bfbf5dd7a4bcf6d59853df07fd4dd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-03-04CLAMP-CDS integration to display all CDS actions for blueprint in CLVidyashree-Huawei4-0/+82
CLAMP-CDS integration to display all CDS actions for blueprint in CL Change-Id: I18b972b8952e5de9ac8e39d6c9cc4ecba0ec9b02 Issue-ID: CLAMP-491 Signed-off-by: Vidyashree-Huawei <vidyashree.rama@huawei.com>
2020-02-27Change emulator policy responsesebdet17-1/+1273
Return the right policy response for each policy model requested by Clamp Issue-ID: CLAMP-653 Change-Id: I68524bd3d5bfbf5ca6a4acf6c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-26Create get Pdp Groups flowxuegao3-0/+79
Create a camel flow to get the list of Pdp Groups info from Policy. Create a scheduler to trigger the camel flow regularly and store the Pdp Groups info into DB. Issue-ID: CLAMP-644, CLAMP-649 Change-Id: I6427202cc0186cd85428d5d25b28a8622e4d7ca4 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-02-13Add testssebdet2-10/+10
Add tests for download all and improve efficiency with stream Issue-ID: CLAMP-518 Change-Id: Ia78ed8da7e54eaeaaed4fb87f483e0aff3a4a8c4 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-11Merge "Add policy downloader"Xue Gao2-0/+61
2020-02-11Add policy downloadersebdet2-0/+61
Add policy downloader to sync all policy types in the database Issue-ID: CLAMP-518 Change-Id: I5ab82970cd3403e46fe7cc8447766977b11b68e7 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-10Removal of useless filessebdet54-55/+0
Removal of useless file in the emulator and exception not used anymore Issue-ID: CLAMP-518 Change-Id: Ie9235c1f9daaf926f9955a678266a771c9280d89 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-01-29Create a camel route that would retrieve all the DCAE blueprintsVidyashree-Huawei1-0/+19
Retreive all the DCAE blueprints and update DcaeInventoryCache Change-Id: Ia03a89c1871119a208094c014e5cb8aa8b4f71d3 Issue-ID: CLAMP-573 Signed-off-by: Vidyashree-Huawei <vidyashree.rama@huawei.com>
2020-01-09Update policy api urlxuegao1-1/+1
Update the policy api url, triggering the pap api to get the status of the deployed policy. Issue-ID: CLAMP-577 Change-Id: I34222c1158d6f724c8ae740fec81f2085ef91bd0 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-08-28Fix frontend dockersebdet1-1/+1
Fix the frontend docker in Nginx with https for backend in https as well Issue-ID: CLAMP-486 Change-Id: I33fd89289618affa5e734c80991aaefece31309e Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-06-13Bring all fixessebdet1-6/+21
Bring all fixes from Dublin, but the code has slightly changed on master Issue-ID: CLAMP-410 Change-Id: Ieca7b8e9b180f46f2c30f848454405f3a504bfdd Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-06-05Rework the loop statesebdet1-15/+54
Rework the state loop so there is no bug in the loop state anymore, now the components are scanned + upgrade to 4.0.4 Issue-ID: CLAMP-384 Change-Id: If7649238ee52864c84bfb9b6b8471d1738752e29 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-30Fix the get loop state logicxg353y1-0/+12
Fix the logic to get the loop state and update the CL deploy/undeploy flow accordingly Issue-ID: CLAMP-362 Change-Id: I34f83bd241b1029417453908bf932c0b69f9f5b2 Signed-off-by: xg353y <xg353y@intl.att.com>
2019-04-08Create submit routesebdet1-2/+24
Create required components for Submit route in camel + unit tests + Policy payload generation + emulator feature for new policy api Issue-ID: CLAMP-303 Change-Id: If9033cfa3f4e346e2cbd7f891baff1f2c04a40a2 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2018-12-20Add testssebdet1-1/+1
Add tests to Tosca code to increase coverage Issue-ID: CLAMP-252 Change-Id: Ie18cb94444e7e47b6dfb3e8271a0db238cfeeb1b Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2018-12-07Add unit testssebdet1-0/+10
Add test to policyClient + guard policyAttributes Issue-ID: CLAMP-252 Change-Id: I344a631cc1dfd38e87f61b34dcb1bb3dbb00625a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2018-12-05Additional code for Toscasebdet2-172/+223
Tosca code for policy dynamic configuration Issue-ID: CLAMP-252,CLAMP-251 Change-Id: Icd96f833567050c1dd4730a61765507ad24ebd2e Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2018-11-30Remove bad namessebdet16-16/+16
Remove bad names in examples for unit tests Issue-ID: CLAMP-252 Change-Id: I035f82ce2333d246ac90ca70d506703ced131ce6 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2018-09-03Replace dumb valuessebdet1-1/+1
Replace dumb values by test values in sampel files Issue-ID: CLAMP-198 Change-Id: I3ac4012b0369e2576459f5536a6c93e33917afe5 Signed-off-by: sebdet <sd378r@intl.att.com>
2018-04-24Remove ECOMP in headersDeterme, Sebastien (sd378r)1-1/+1
Remove ECOMP in headers of the source files Issue-ID: CLAMP-156 Change-Id: Ifdc5a4d9d8fb25d1b66d8a5699fde3cba17af7a4 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-24Remove ECOMP in headersDeterme, Sebastien (sd378r)1-1/+1
Remove ECOMP in headers of the source files Issue-ID: CLAMP-156 Change-Id: If10e2dff86852840ad289b03c6a30dd83f674d76 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-09Fix python scriptDeterme, Sebastien (sd378r)1-3/+4
Fix startup of the python script in the pom that was not properly set Issue-ID: CLAMP-147 Change-Id: Ia462be79dd053a9b39761e5bdf3248d0e28e65ee Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-04Fix the python startup scriptDeterme, Sebastien (sd378r)1-16/+23
Fix the startup script for python simulator Issue-ID: CLAMP-148 Change-Id: Ia1906aa12f2354a45324553609a9e5e713d8a551 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-04-03Fix the start_http_cache.shDeterme, Sebastien (sd378r)1-4/+11
Fix the script call from Pom so that it can be configured Issue-ID: CLAMP-148 Change-Id: Id1120150c4fb993d70ffe2914c73a8fa24051e85 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-28Add simulator cases for (un)deploy/stop + typoehautot4-18/+96
Change-Id: I0a3b8f1e812f6199c5a7fbbabd88c6c5ec4217cc Signed-off-by: ehautot <eh552t@intl.att.com> Issue-ID: CLAMP-111
2018-03-21Modify third party proxy to test the SUBMITehautot55-129/+262
Change-Id: I86dad99c141ef78b23e28cbb3eab6516d04000a8 Signed-off-by: ehautot <eh552t@intl.att.com> Issue-ID: CLAMP-100
2018-02-15Revert back wrong codeDeterme, Sebastien (sd378r)1-1/+1
Revert back policyClient client and port used by sdc cache Issue-ID: CLAMP-85 Change-Id: Ifd59e8530dea6032449d4c868286533cbcac8739 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-15Code refactoringDeterme, Sebastien (sd378r)1-1/+1
Code refactoring, mainly Classes/Methods name renaming Issue-ID: CLAMP-85 Change-Id: I12bd190576e324ed33f057dc1a4ad32c16fcb6c2 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>