summaryrefslogtreecommitdiffstats
path: root/tools/development/README.md
blob: 9dcf35b5a3d986c70144aa97869f435e0d6aee65 (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
#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
```


#####Info:
Certificate validity - 2023 August