#PM-Mapper local development This projects is based on pm-mapper CSIT aligned for local development
##Run pm-mapper locally To run pm-mapper execute following scripts
make setup-all
To change pm-mapper image go to script 'run-pm-mapper.sh' and edit':
IMAGE=onap/org.onap.dcaegen2.services.pm-mapper:latest
To clean environment (remove all containers):
make clean-env
##Send sample file
make list-files
2 a. To send MeasDataFile Enter to files publisher containers and go to files directory:
./send-meas-data.sh <file name>
E.g:
./send-meas-data.sh C20190329.0000-0015.xml.gz
MeasDataFile Examples:
2 b. To send MeasCollec file use:
./send-meas-collec.sh A20181002.0000-1000-0015-1000_5G.xml.gz
MeasCollec Examples:
File names must start with 'A', 'C' or 'PM'
Files xml should be zipped by gzip. To send raw xml a small alignment is necessary: Go to './send-meas-data.sh' or './send-meas-collec.sh' and change endpoint:
https://dmaap-dr-node:8443/publish/1/Apm_TEST_REQUEST.xml.gz
to:
https://dmaap-dr-node:8443/publish/1/Apm_TEST_REQUEST.xml
To gzip file use:
gzip -k <filename>
##Container logs:
docker logs -f pmmapper
docker logs -f mr-simulator
docker logs -f datafile-dev
DFC is fetching events from mr-simulator, based on event properties file is downloading and pushing to DataRouter
To run DFC execute following scripts
make setup-all make run-data-file
Bulk-pm flow: DFC fetch message from MR-Simulator, download file from sftp-server, push file to DataRouter. DataRouter push file to pm-mapper. Pm-mapper send message to MR-Simulator.
To stop DFC execute:
make remove-datafile
#####Info: Certificate validity - 2023 August