Updated Test and Setup files for PM Mapper
[integration/csit.git] / plans / dcaegen2-pmmapper / pmmapper / dmaapbc.sh
1 #!/bin/bash
2
3 # $1 is the IP address of the buscontroller
4 # INITIALIZE: dmaap object
5 JSON=/tmp/prov.dmaap
6 cat << EOF > $JSON
7 {
8 "version": "1",
9 "topicNsRoot": "org.onap.dmaap",
10 "drProvUrl": "https://dmaap-dr-prov:8443",
11 "dmaapName": "onapCSIT",
12 "bridgeAdminTopic": "MM_AGENT_PROV"
13
14 }
15 EOF
16
17 echo "Initializing /dmaap endpoint"
18 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dmaap