241
242
recordedRequests := make([]*X509Request, 0)
242
243
rigRecordingDispatcher(&recordedRequests)
245
receivedBody, err := session.post(uri, requestBody, requestContentType)
247
248
c.Assert(len(recordedRequests), Equals, 1)
248
249
request := recordedRequests[0]
249
250
c.Check(request.URL, Equals, AZURE_URL+subscriptionID+"/"+uri)
250
251
c.Check(request.Method, Equals, "POST")
251
253
c.Check(request.Payload, DeepEquals, requestBody)
252
254
c.Check(receivedBody, DeepEquals, fixedResponse.Body)