aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2020-09-28Remove legacy operational Policy5.1.1sebdet3-74/+4
As it has been removed from policy engine, legacy operational policy code must be removed as well Issue-ID: CLAMP-948 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I0767d3da6d227d788e957a0fd50c4548b7c6290c
2020-09-25Unit test fails due to cleanupliamfallon1-0/+8
When building CLAMP, a test failure was noticed on the LoopRepositoriesItCase test case. THe root cause was because the LoopRepositoriesItCase did not clean up its test configuraiton. When the test order randomly changed, this test was run before the LoopRepositoriesItCase test case, causing that test case to fail due to test data residue. Issue-ID: CLAMP-946 Change-Id: I2c00bbca4ee9f9291ad2c2d565a519daee963c6d Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-09-15Fix the ssl configsebdet21-130/+131
Fix SSL config so that clamp can access external files from the application.properties spring definition Issue-ID: CLAMP-884 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic4483d56c86f52249b09b386cdbe505f2f2f2a66 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-08-28CLAMP should not display all CDS workflow propertiesroot12-3/+3
CLAMP should not display all CDS workflow properties Issue-ID: CLAMP-856 Signed-off-by: root1 <vidyashree.rama@huawei.com> Change-Id: I98fc46c9c9ba574a3606740921d74743cb6f38ea
2020-08-03Update some direct dependenciessebdet5-5/+5
Update vulnerable dependencies, camel + Spring boot + Mariadb Issue-ID: CLAMP-850 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9850a07037d7bab0f303c69d5682b1f9de282425
2020-07-29Merge "Attempt to fix the verify job problem"Gervais-Martial Ngueko2-2/+4
2020-07-29Attempt to fix the verify job problemsebdet2-2/+4
Remove the parallel execution of the Integration tests Issue-ID: CLAMP-899 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia4d60941821f1e5363d5ba5e734a0d9a5ec9186d
2020-07-27Fix audit, metric and error logs as per logging specificationAshwin Sharma1-14/+14
Issue-ID: CLAMP-900 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com> Change-Id: Ia911e16ecd4a5a03f44c45d32ebc874ff8882895
2020-07-10Merge "Fix delete flow bug"Sébastien Determe1-0/+3
2020-07-09Fix delete flow bugxuegao1-0/+3
Fix the bug in delete flow, when the loop is already undeployed. Issue-ID: CLAMP-864 Change-Id: I6ca52b260bf2229b8ed28d8ebac93eef65d12d96 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-07-03add robotframework to integration testsJulienBe1-0/+114
Issue-ID: CLAMP-844 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com> Change-Id: Ie5c40477f42fcf26f5fef6c1742e34a2eee7f73d
2020-05-28Fix crash at SDC deploysebdet1-6/+20
If CDS properties are not there, it can crash a standard VF resource blueprint deployment. Issue-ID: CLAMP-857 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4172427046250fed52984c2b94531370727f0fa0
2020-05-27Create SVG in UIsebdet16-534/+72
Remove the SVG generation from the backend and put it in the UI. Backend removal code + clean up of test resources Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ie9d6cd20f0135b459dbc85901b9a66f65002a85c
2020-05-18Add info in the SVGsebdet1-4/+11
Add two additional fields in the SVG for the UI so that components can easily get the data without the need to access the models Issue-ID: CLAMP-852 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I872d3c8b0336d813e1a1cf590f6c8a06cccbe230
2020-05-05Add unit testxuegao4-6/+254
Add unit tests to improve code coverage. Issue-ID: CLAMP-844 Change-Id: I7792212d476103086e063cf8fe4a9abed1294fd6 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-23Merge "Fix refresh action"Christophe Closset3-8/+11
2020-04-23Fix refresh actionsebdet3-8/+11
Fix the refresh action so that it well retriggered cds call when required, otherwise the refresh button is useless + get out the cds code from service installer Issue-ID: CLAMP-818 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia5784d75e1bd158ff775674fe6bf0c2c39b55ad4
2020-04-22Guard policy clean upxuegao2-27/+1
Remove guard policy related code, so that it will not be shown or created in the legacy policy UI. Issue-ID: CLAMP-825 Change-Id: I6c654fef9fd9df810fd48600c91ffef96db371cd Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-21Merge "Payload attributes are not displayed in operational policy"Sébastien Determe2-0/+71
2020-04-17Tosca convertor updated with datetime picker plugin featureAshwin Sharma1-36/+49
Issue-ID: CLAMP-587 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com> Change-Id: I1533b8e7a87c3e7c5af3572fef9ccd3a8fae85ef Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com>
2020-04-17Payload attributes are not displayed in operational policyVidyashree-Huawei2-0/+71
Handled list type in response Change-Id: If4b5b45c5f23f377add1be84306a31e78d47c52b Issue-ID: CLAMP-823 Signed-off-by: Vidyashree-Huawei <vidyashree.rama@huawei.com>
2020-04-15Fix legacy policy submit issuessebdet1-5/+12
Operational legacy policy does not support semantic versionin for get status and delete policies, it has to be changed to integer Issue-ID: CLAMP-820 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I78ff69b7502900d96fcc605fe997dd564dfa3e98
2020-04-03Fix pdp group info not there for legacy policysebdet1-2/+2
The operational policy legacy name must be changed so that clamp can get the right pdp group and subgroup Issue-ID: CLAMP-817 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iaede77977b8f450c10bf7df73cf2b84a74ab122a
2020-04-03Fix the pdp payloadsebdet1-0/+6
THe pdp payload was not good in some particular cases, when the pdp group was containing different subgroups Issue-ID: CLAMP-813 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ie3e53f42827ed90689ed83b4945151cb13f38c9c
2020-03-31Fix the policy_id not setsebdet2-4/+8
Fix the policy_id not set by default when it's a unique blueprint, and when it contains only one microservice Issue-ID: CLAMP-802 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iffe35e461395940567588228ec68ea4b7ff9a409
2020-03-25Fix the loop deploy issuexuegao2-2/+3
Fix deploy UI issue and update the deployment payload. Issue-ID: CLAMP-791 Change-Id: I2e652bc321e27be7c21ae12c66e98880e2eed4b5 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-25Improve the policy namesebdet1-6/+19
Give a better name to the policies so that it's easier to know which modle has been used Issue-ID: CLAMP-792 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I7c6f25eb5075d6e4d114cecd705530a656875cd9
2020-03-25Improve the policy model downloadsebdet3-5/+3
Improve the policy model download so that the yaml is now in pretty printing and the policy engine is not triggered if the model is already in the database Issue-ID: CLAMP-784 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ibd1e6bd617cf052ad4c475e4dd9c63eb2b046acd
2020-03-24Improve metadata supportsebdet2-3/+6
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 callssebdet3-13/+40
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-23Populate deployment parametersxuegao1-26/+53
Create deployment parameters while creating loops. Issue-ID: CLAMP-788 Change-Id: Icb4ebc786b87468846692744f27b697734015401 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-16Rework the policy refreshsebdet1-2/+0
Rework the policy refresh for the new unique dialog policyModel Issue-ID: CLAMP-578 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ie8c91223e92c1e344d7ead5784ffea33d4f6a00f
2020-03-13Fix the new tosca convertersebdet18-176/+337
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-13Merge "Fix the tosca converter"Xue Gao7-95/+94
2020-03-13Merge "Add remove op policy option"Sébastien Determe1-1/+33
2020-03-13Add remove op policy optionxuegao1-1/+33
Update the UI and backend code to be able to remove op policy for loop instances. Issue-ID: CLAMP-648 Change-Id: Ib3eab4977fe4f1b85e11f2373263197009bbc3e1 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-10Fix the tosca convertersebdet7-95/+94
Fix the new tosca converter to support metadata section Issue-ID: CLAMP-580 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9068bd9dc89851c630660a7f78fae1cb70bdc178
2020-03-10Rework tosca convertersebdet7-21/+28
Fix the tosca converter template to support json instead of properties file. Issue-ID: CLAMP-253 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id4f839d0b5bfece519b0b1e615e8d6e14e464f16
2020-03-09Rework tosca convertersebdet6-7/+101
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-04Change json representation in op policysebdet8-97/+75
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-04Merge "Update UI to define Pdp Group"Sébastien Determe10-33/+30
2020-03-03Rework tosca converterWeberLaurent6-0/+425
New code to convert the Policy Tosca Yaml to Json Schema for the Clamp UI Issue-ID: CLAMP-253 Change-Id: I10c1d3d81c5feae402773de94bd88c190ec68645 Signed-off-by: WeberLaurent <weberlaurent23@gmail.com>
2020-03-03Update UI to define Pdp Groupxuegao10-33/+30
Update teh UI, adding the possibilities to define Pdp Group and Pdp Subgroup info. Issue-ID: CLAMP-654 Change-Id: I3660c491d3a4c730a7414f9c6de9e3859f3c3601 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-03Merge "Rework the activate pdp group payload"Sébastien Determe2-25/+39
2020-03-03Rework the activate pdp group payloadxuegao2-25/+39
Rework the payload which triggers the activate pdp group policy API based on the new requirement. Issue-ID: CLAMP-646 Change-Id: I9bd7e3f2d1907c7e22c5435c792910b8245780b2 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-02-27Upload Tosca Model changes to remove policy model type parsing from UI.Ashwin Sharma3-49/+113
Dictionary API fix to allow bulk create or update of dictionary elements. Issue-ID: CLAMP-656 Change-Id: I6a0a36a6be40a098d917c45462872d31b7f47dd2 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com>
2020-02-27Add Create loop dialogsebdet10-36/+58
Add create loop dialog and backend part associated (this is based on this PR https://gerrit.onap.org/r/c/clamp/+/102156) Issue-ID: CLAMP-587 Change-Id: I58524bc2d5bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-26Create get Pdp Groups flowxuegao4-0/+194
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-25Fix Bug due to user management changessebdet2-6/+7
Fix the bugs, build is broken due to changes done previously Issue-ID: CLAMP-651 Change-Id: I57523bc2c3bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-25Simplify the user managementsebdet6-467/+60
Simplify the user management and fix a bug in the server, crashing when no user are logged and an operation is requested, and also previous user still stored in the securitycontext when admin is logged (due to static variable) Issue-ID: CLAMP-651 Change-Id: I57523bc2c3afaf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>