Yang Xu | 5c53ab2 | 2018-04-15 18:07:13 +0000 | [diff] [blame] | 1 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 2 | "httpRequest": { |
| 3 | "method": "GET", |
| 4 | "path": "/api/huaweivnfmdriver/v1/swagger.json" |
| 5 | }, |
| 6 | "httpResponse": { |
| 7 | "statusCode": 200, |
| 8 | "headers": { |
| 9 | "content-type": ["application/json"] |
| 10 | }, |
| 11 | "body": { |
| 12 | "not": false, |
| 13 | "type": "JSON", |
| 14 | "json": "{\"errcode\":\"0\",\"errmsg\":\"get token successfully.\",\"data\":{\"expiredDate\":\"2018-11-10 10:03:33\"}}" |
| 15 | } |
| 16 | }, |
| 17 | "times" : { |
| 18 | "unlimited" : true |
| 19 | }, |
| 20 | "timeToLive" : { |
| 21 | "unlimited" : true |
| 22 | } |
| 23 | }' |
| 24 | |
| 25 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 26 | "httpRequest": { |
| 27 | "method": "POST", |
| 28 | "path": "/controller/v2/tokens" |
| 29 | }, |
| 30 | "httpResponse": { |
| 31 | "statusCode": 200, |
| 32 | "headers": { |
| 33 | "content-type": ["application/json"] |
| 34 | }, |
| 35 | "body": { |
| 36 | "not": false, |
| 37 | "type": "JSON", |
| 38 | "json": "{\"errcode\":\"0\",\"errmsg\":\"get token successfully.\",\"data\":{\"expiredDate\":\"2018-11-10 10:03:33\",\"token_id\":\"7F06BFDDAC33A989:77DAD6058B1BB81EF1A557745E4D9C78399B31C4DB509704ED8A7DF05A362A59\"}}" |
| 39 | } |
| 40 | }, |
| 41 | "times" : { |
| 42 | "unlimited" : true |
| 43 | }, |
| 44 | "timeToLive" : { |
| 45 | "unlimited" : true |
| 46 | } |
| 47 | }' |
| 48 | |
| 49 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 50 | "httpRequest": { |
| 51 | "method": "POST", |
| 52 | "path": "/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services" |
| 53 | }, |
| 54 | "httpResponse": { |
| 55 | "statusCode": 201 |
| 56 | }, |
| 57 | "times" : { |
| 58 | "unlimited" : true |
| 59 | }, |
| 60 | "timeToLive" : { |
| 61 | "unlimited" : true |
| 62 | } |
| 63 | }' |
| 64 | |
| 65 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 66 | "httpRequest": { |
| 67 | "method": "PUT", |
| 68 | "path": "/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/huawei-ac-net-l3vpn-svc-vfi:vrf-attributes" |
| 69 | }, |
| 70 | "httpResponse": { |
| 71 | "statusCode": 204 |
| 72 | }, |
| 73 | "times" : { |
| 74 | "unlimited" : true |
| 75 | }, |
| 76 | "timeToLive" : { |
| 77 | "unlimited" : true |
| 78 | } |
| 79 | }' |
| 80 | |
| 81 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 82 | "httpRequest": { |
| 83 | "method": "POST", |
| 84 | "path": "/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/sites" |
| 85 | }, |
| 86 | "httpResponse": { |
| 87 | "statusCode": 201 |
| 88 | }, |
| 89 | "times" : { |
| 90 | "unlimited" : true |
| 91 | }, |
| 92 | "timeToLive" : { |
| 93 | "unlimited" : true |
| 94 | } |
| 95 | }' |
| 96 | |
| 97 | # ZTE DCI |
| 98 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 99 | "httpRequest": { |
| 100 | "method": "POST", |
| 101 | "path": "/v2.0/l3-dci-connects" |
| 102 | }, |
| 103 | "httpResponse": { |
| 104 | "statusCode": 201 |
| 105 | }, |
| 106 | "times" : { |
| 107 | "unlimited" : true |
| 108 | }, |
| 109 | "timeToLive" : { |
| 110 | "unlimited" : true |
| 111 | } |
| 112 | }' |
| 113 | |
| 114 | # huaweivnfmdriver |
| 115 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 116 | "httpRequest": { |
| 117 | "method": "POST", |
| 118 | "path": "/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/vnfs" |
| 119 | }, |
| 120 | "httpResponse": { |
| 121 | "statusCode": 200, |
| 122 | "headers": { |
| 123 | "content-type": ["application/json"] |
| 124 | }, |
| 125 | "body": { |
| 126 | "not": false, |
| 127 | "type": "JSON", |
| 128 | "json": "{\"vnfInstanceId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9\",\"jobId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9_post\"}" |
| 129 | } |
| 130 | }, |
| 131 | "times" : { |
| 132 | "unlimited" : true |
| 133 | }, |
| 134 | "timeToLive" : { |
| 135 | "unlimited" : true |
| 136 | } |
| 137 | }' |
| 138 | |
| 139 | # huaweivnfmdriver |
| 140 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 141 | "httpRequest": { |
| 142 | "method": "GET", |
| 143 | "path": "/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/jobs/fa3dca847b054f4eb9d3bc8bb9e5eec9_post", |
| 144 | "queryStringParameters": { |
| 145 | "responseId": ["0"] |
| 146 | } |
| 147 | }, |
| 148 | "httpResponse": { |
| 149 | "statusCode": 200, |
| 150 | "headers": { |
| 151 | "content-type": ["application/json"] |
| 152 | }, |
| 153 | "body": { |
| 154 | "not": false, |
| 155 | "type": "JSON", |
| 156 | "json": "{\"jobId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9\",\"responsedescriptor\":{\"progress\":\"50\",\"status\":\"processing\",\"errorCode\":null,\"responseId\":\"0\"}}" |
| 157 | } |
| 158 | }, |
| 159 | "times" : { |
| 160 | "unlimited" : false |
| 161 | }, |
| 162 | "timeToLive" : { |
| 163 | "unlimited" : true |
| 164 | } |
| 165 | }' |
| 166 | |
| 167 | # huaweivnfmdriver |
| 168 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 169 | "httpRequest": { |
| 170 | "method": "GET", |
| 171 | "path": "/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/jobs/fa3dca847b054f4eb9d3bc8bb9e5eec9_post", |
| 172 | "queryStringParameters": { |
| 173 | "responseId": ["0"] |
| 174 | } |
| 175 | }, |
| 176 | "httpResponse": { |
| 177 | "statusCode": 200, |
| 178 | "headers": { |
| 179 | "content-type": ["application/json"] |
| 180 | }, |
| 181 | "body": { |
| 182 | "not": false, |
| 183 | "type": "JSON", |
| 184 | "json": "{\"jobId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9\",\"responsedescriptor\":{\"progress\":\"100\",\"status\":\"processing\",\"errorCode\":null,\"responseId\":\"0\"}}" |
| 185 | } |
| 186 | }, |
| 187 | "times" : { |
| 188 | "unlimited" : true |
| 189 | }, |
| 190 | "timeToLive" : { |
| 191 | "unlimited" : true |
| 192 | } |
| 193 | }' |
| 194 | |
| 195 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 196 | "httpRequest": { |
| 197 | "method": "GET", |
| 198 | "path": "/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/jobs/fa3dca847b054f4eb9d3bc8bb9e5eec9_post", |
| 199 | "queryStringParameters": { |
| 200 | "responseId": ["50"] |
| 201 | } |
| 202 | }, |
| 203 | "httpResponse": { |
| 204 | "statusCode": 200, |
| 205 | "headers": { |
| 206 | "content-type": ["application/json"] |
| 207 | }, |
| 208 | "body": { |
| 209 | "not": false, |
| 210 | "type": "JSON", |
| 211 | "json": "{\"jobId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9\",\"responsedescriptor\":{\"progress\":\"100\",\"status\":\"processing\",\"errorCode\":null,\"responseId\":\"50\"}}" |
| 212 | } |
| 213 | }, |
| 214 | "times" : { |
| 215 | "unlimited" : true |
| 216 | }, |
| 217 | "timeToLive" : { |
| 218 | "unlimited" : true |
| 219 | } |
| 220 | }' |
| 221 | |
| 222 | |
| 223 | curl -v -X PUT "http://localhost:1080/expectation" -d '{ |
| 224 | "httpRequest": { |
| 225 | "method": "GET", |
| 226 | "path": "/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/jobs/fa3dca847b054f4eb9d3bc8bb9e5eec9_post", |
| 227 | "queryStringParameters": { |
| 228 | "responseId": ["2"] |
| 229 | } |
| 230 | }, |
| 231 | "httpResponse": { |
| 232 | "statusCode": 200, |
| 233 | "headers": { |
| 234 | "content-type": ["application/json"] |
| 235 | }, |
| 236 | "body": { |
| 237 | "not": false, |
| 238 | "type": "JSON", |
| 239 | "json": "{\"jobId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9\",\"responsedescriptor\":{\"progress\":\"100\",\"status\":\"processing\",\"errorCode\":null,\"responseId\":\"2\"}}" |
| 240 | } |
| 241 | }, |
| 242 | "times" : { |
| 243 | "unlimited" : true |
| 244 | }, |
| 245 | "timeToLive" : { |
| 246 | "unlimited" : true |
| 247 | } |
| 248 | }' |
| 249 | |