blob: 9dcd2bae14310a6b9acca6fe47eeb4514f382b50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
#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
1. To list avaiable files use:
```
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:
- C20190329.0000-0015.xml.gz
- PM202007171301+020024C202007171207+0200-1215+0200_45678.xml.gz
2 b. To send MeasCollec file use:
```
./send-meas-collec.sh A20181002.0000-1000-0015-1000_5G.xml.gz
```
MeasCollec Examples:
- A20181002.0000-1000-0015-1000_5G.xml.gz
## HINTS:
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:
### PM-Mapper logs:
```
docker logs -f pmmapper
```
### Message-Router simulator logs (output of processed messages by PM-Mapper):
```
docker logs -f mr-simulator
```
### DataFileCollector
```
docker logs -f datafile-dev
```
## Development and running DataFile Collector
DFC is fetching events from mr-simulator, based on event properties file is downloading and pushing to DataRouter
1. Downloaded file properties: location, fileType, fileName could be set in 'tools/development/message-router/mrserver.js', see function handleVesNotificationRequest(res)
2. Publish file properties and DFC configuration could be set in 'tools/development/resources/datafile/mount_config.yaml'
3. Logging level and other DFC/Spring properties could be set in 'tools/development/resources/datafile/spring_application.yaml'
### Running DFC
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
|