f25404ce3cff1506784edbf41e0b77c8ea8fee61
[integration/csit.git] / scripts / dmaap-buscontroller / init-mock-aaf.sh
1 #!/bin/bash
2
3 # $1 is the IP address of the AAF mock server
4
5 #curl -v -X PUT -d @- http://$1:1080/expectation << EOF
6 #{
7 #       "httpRequest": {
8 #               "method": "GET",
9 #               "path": "/hello"
10 #       },
11 #       "httpResponse": {
12 #               "body": "Hello world!",
13 #               "statusCode": 200
14 #       },
15 #       "times" : {
16 #               "unlimited" : true
17 #       }
18 #}
19 #EOF
20 #       "httpRequest": {
21 #               "method": "POST",
22 #               "path": "/proxy/authz/.*"
23 #       },
24
25 curl -v -X PUT -d @- http://$1:1080/expectation << EOF
26 {
27         "httpRequest": {
28                 "method": ".*",
29                 "path": "/.*"
30         },
31         "httpResponse": {
32                 "body": "Hello world!",
33                 "statusCode": 200
34         },
35         "times" : {
36                 "unlimited" : true
37         }
38 }
39 EOF
40
41 #curl -v -X PUT -d @- http://$1:1080/expectation << EOF
42 #{
43 #       "httpRequest": {
44 #               "method": "POST",
45 #               "path": "/proxy/authz/role/perm"
46 #       },
47 #       "httpResponse": {
48 #               "body": "Hello world!",
49 #               "statusCode": 200
50 #       }
51 #}
52 #EOF
53