aboutsummaryrefslogtreecommitdiffstats
path: root/gui-editors/gui-editor-apex/src/test
AgeCommit message (Collapse)AuthorFilesLines
2024-07-15Uplift of spring framework dependenciesHEADmasteradheli.tavares1-1/+1
Issue-ID: POLICY-5074 Change-Id: I1632f156d594d6eb9880ecb96875e3e19e4e93cb Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-10-03Upgrade Java 17waynedunican1-2/+3
Issue-ID: POLICY-4674 Change-Id: I7435d0d3ae94a3f0da33888f396706ae49b4d69c Signed-off-by: waynedunican <wayne.dunican@est.tech>
2022-09-28Amend GUI to work directly towards ACM runtimeliamfallon1-1/+0
GUI proxies the URLs towards the ACM runtime server across CLAMP backend because clamp-backend handles the certificates for HTTPS communication and also handles AAF. For now, the Policy GUI is being used for testing and demonstration purposes only. As AAF is disabled and we are using HTTP, the GUI can now work towards the ACM runtime server port directly for test installations. Issue-ID: POLICY-4122 Change-Id: Idca87d520a5eef2058781534df6f96a0260c5eaf Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-03-14Upgrade apex-pdp version in Apex Editordanielhanrahan3-178/+0
Upgrade apex-pdp version to 2.7.1-SNAPSHOT Fix NullPointerException in ModelHandler::setUuidAndDescription Allow parsing models from policy_type_impl or apexPolicyModel Remove deprecated Task input and output field functionality Fix JS REST calls and tests after JAXB to Gson changes Fix bugs in Task Edit form relating to task logic edit area Issue-ID: POLICY-3990 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4f506889df46619a0178ab99c99c73ec2fd5a1e3
2022-02-23Apex Editor using Spring Bootdanielhanrahan14-1249/+1040
Changed Apex Editor to use Spring Boot (MVC) Changed all tests to use JUnit 5 Added more tests for policy upload feature Updated JS files to reflect JSON encoding change Added Apex Editor README Changed rest path to /policy/gui/v1/apex/editor Issue-ID: POLICY-3896 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I10f1ee3c40244a822a7032b4b24cb02060698fc3
2022-02-14Merge "Remove unused test resources in Apex Editor"Liam Fallon23-2279/+1
2022-02-14Fix race condition in apex-editor model uploaddanielhanrahan2-10/+45
Fixed a race condition in /Model/Upload endpoint caused by userId query param overwriting a global parameter. New behavior is for userId to override global param for that request only. Updated JavaDocs to reflect behavior. Added JUnit test to verify userId overriding. Fixed issue where upload success message was not included in response. Issue-ID: POLICY-3929 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ic1d78083778eef2df3675b3b4fbc1e41420da46f
2022-02-11Remove unused test resources in Apex Editordanielhanrahan23-2280/+2
Removed unused test resources in Apex Editor Issue-ID: POLICY-3928 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ib4b916daad6d45bf3403399c9b4e09bf42690785
2021-08-27Fix sonar issues in policy/guiRam Krishna Verma1-4/+5
Issue-ID: POLICY-3077 Change-Id: Idcd08427cbff2cfdd8ba99db7cf32a0f5c978415 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-16Use lombok annotations in guiJim Hahn2-4/+5
Issue-ID: POLICY-3395 Change-Id: I7820877522875a3caf47e3b7409eb4f7fb15ba2b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-03Increase code coverage on gui.editors.apex.restarkadiusz.adamski8-0/+611
- increase code coverage on gui.editors.apex.rest Issue-ID: POLICY-3351 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I481ecea3b77ec4e7b7fbdd0475becec0ccea11dc
2021-05-10Fix sonars in policy-guiJim Hahn2-6/+8
Fixed: - use "var" Only fixed the ones I saw visually, as SonarLint wouldn't run - something about missing node.js. Issue-ID: POLICY-3094 Change-Id: I594d424b42ce446d86724d75b1dd9ec868c14f2b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-12Fix tests code smells - less assertions per testmkidd1-16/+204
ApexEditorRestResourceTest.java - separate test methods into smaller methods so that less assertions are made per method Issue-ID: POLICY-3095 Change-Id: Ic7f54916a130dbb403102dec51e6e2fec708f0cf Signed-off-by: mkidd <michael.kidd@est.tech>
2020-09-11Add TOSCA support to Apex editorliamfallon12-1760/+1414
The APEX editor now loads, saves, and downloads files in TOSCA format, the same as the apex-pdp does. The non-standard TOSCA handling for file upload has been refactored to be aligned with the Policy Frameowkr TOSCA support. Issue-ID: POLICY-2621 Change-Id: I1ec7475cbcc6ffc23de92687c9f284ac7dfbdd80 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-09-08Cosmetic changes to the apex-editor GUIliamfallon4-45/+31
Some minor changes to remove some eclipse warnings and to tidy the the tets and formatting in the APEX policy editor GUI. Issue-ID: POLICY-2621 Change-Id: Ib9b9b054fbe146feec4e477434097094e8ecae26 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-08-10Passing userId to upload policyKrupaNagabhushan1-7/+8
Issue-ID: POLICY-2751 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Ifc91bba369161a63f2ad759dcdc014bb12837e88
2020-08-07Upload policy featureandre.schmid32-1/+3220
Implements an upload feature that can be enable/disabled through configuration properties. An upload endpoint must be provided also by configuration. The upload has similar feature as the download, but it sends the file to the provided endpoint instead, converting it to TOSCA YAML. Creates an configuration endpoint so the front-end can read it. Introduces a pub/sub feature in the front-end so it can asynchronous read configuration information and send configuration ready message to components that depends on it. Issue-ID: POLICY-2751 Signed-off-by: andre.schmid <andre.schmid@est.tech> Change-Id: I5e8e91616a7d4dc69e6739604fcd36528cce0028
2020-07-17Move apex policy editor to policy-guiliamfallon7-0/+2834
This review moves the code for the apex policy editor from the apex repo to the GUI repo. The docker part of the build will be moved in the next review because it is intertwined with the other two legacy apex GUIs and needs to be disentangled. Subsequent reviews on the apex repo will remove this code from there. Issue-ID: POLICY-2621 Change-Id: Ib9a43f463b839201656208a48ab48869a19f963a Signed-off-by: liamfallon <liam.fallon@est.tech>