More information about the project and all its functionalities you can find under the wiki page: https://wiki.onap.org/display/DW/AAF+Certification+Service
* AAF Cert Service Api is a Spring Boot application * Code style Use Google code formatter in your IDE. For IntelliJ use [https://plugins.jetbrains.com/plugin/8527-google-java-format] For other IDEs use []https://github.com/google/google-java-format]
* Create directory on your system /etc/onap/aaf/certservice * Copy sample configuration test/resources/cmpServers.json to that directory
MANDATORY SEE 'Local project configuration' section
mvn spring-boot:run
MANDATORY SEE 'Local project configuration' section
mvn spring-boot:run -Pdev
mvn clean package
Go to the certService subfolder and execute following statement (1.0.0-SNAPSHOT is related to a current project.version parameter):
docker build --build-arg VERSION=1.0.0-SNAPSHOT -t onap/org.onap.aaf.certservice.aaf-certservice-api .
mvn clean install
mvn clean install -P docker
docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/<absolute_path>/cmpServers.json,target=/etc/onap/aaf/certservice/cmpServers.json onap/org.onap.aaf.certservice.aaf-certservice-api
docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/<absolute_path>/cmpServers.json,target=/etc/onap/aaf/certservice/cmpServers.json nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:1.0.0
Docker-compose uses a local image of certservice. Build a docker image locally before run docker compose command. See a section Building Docker image and install the package into local repository
docker-compose up
helm install ./aaf-cert-service
Browser:
http://<localhost>:8080/actuator/health
Curl:
curl localhost:8080/actuator/health
Should return {"status":"UP"}
https://gerrit.onap.org/r/admin/repos/integration/csit
####How to run tests locally
sudo ./run-csit.sh plans/aaf/certservice
####Jenkins build https://jenkins.onap.org/view/CSIT/job/aaf-master-csit-certservice/
path:
var/log/onap/aaf/certservice/
docker exec -it aaf-certservice-api bash
path:
cd /var/log/onap/aaf/certservice
You should see:
audit.log error.log trace.log
https://sonarcloud.io/dashboard?id=onap_aaf-certservice
All maven artifacts are deployed under nexus uri:
https://nexus.onap.org/content/repositories/snapshots/org/onap/aaf/certservice/
All docker images are hosted under nexus3 uri:
https://nexus3.onap.org/repository/docker.snapshot/v2/onap/org.onap.aaf.certservice.aaf-certservice-api/
API is described by Swagger ( OpenAPI 3.0 ) on endpoint /docs ( endpoint is defined in properties as springdoc.swagger-ui.path )
http://localchost:8080/docs
https://sonarcloud.io/dashboard?id=onap_aaf-certservice