aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dmaap-buscontroller/init-mock-mrc.sh
blob: 75c1a419aa40f2221b746c03ffb4af220a8325d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# $1 is the IP address of the MRC (MR Central) mock server

curl -v -X PUT -d @- http://$1:1080/expectation << EOF
{
	"httpRequest": {
		"method": "GET",
		"path": "/hello"
	},
	"httpResponse": {
		"body": "Hello world!",
		"statusCode": 200
	}
}
EOF