commit | 4d04e56e297cb9808a7e5378480526ba44f6a0bd | [log] [tgz] |
---|---|---|
author | liamfallon <liam.fallon@est.tech> | Mon Nov 07 13:53:29 2022 +0000 |
committer | liamfallon <liam.fallon@est.tech> | Tue Nov 08 12:58:33 2022 +0000 |
tree | 66784f5880b0319c47641fb3449a33bc30937b89 | |
parent | 221006c687ec15b0811ec002ca806766fd18c91c [diff] |
Move GUI forwarding to gui-server from clamp-be This commit: - Adds redirect support for policy-api to the gui-server microservice. The gui-server can now proxy and forward calls to it across to policy-api, and can act as an autherntication/authorization gateway for policy-api for https - Adds redirect support for clamp-ACM, as for policy-gui - Restructured the static pages to add a designtime-ui and runtime-ui strucuture for current and future UIs - CLAMP UI moved into the runtime-ui part - Apex editor moved into the designtime-ui part - Unit tests added and coverage on code is > 95% This change moves the forwarding functionality from the clamp-backend microservice to the gui-server microservice, so once this review is merged, the clamp-backend microservice is no longer needed. Issue-ID: POLICY-4138 Change-Id: I4b45f7026d13b5e1046198cdba52074668b29956 Signed-off-by: liamfallon <liam.fallon@est.tech>
Copyright 2017-2018 AT&T Intellectual Property. All rights reserved. Copyright (C) 2021-2022 Nordix Foundation. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy GUI code.
To build it using Maven 3, run: mvn clean install -P docker
Maven produces a single docker image containing the policy GUIs. These are exposed on the same port (2443) using different URLs:
You can use the following command to build the policy-gui docker image:
mvn clean install -P docker
The gui-server module contains a server that hosts the GUIs. There are helper scripts for running the gui-server JAR and Docker image. They may be found under gui/gui-server/extra/bin-for-dev/
These scripts assume the clamp backend is running at https://localhost:8443
For integration with AAF, gui-server requests client SSL cert.
A certificate must be added in the browser and is required to log in properly:
org.onap.clamp.p12 (from clamp master) (Password: "China in the Spring")
See onap/clamp repo README for details.