()
| 217 | } |
| 218 | |
| 219 | func (this Hoverfly) GetSimulation() io.Reader { |
| 220 | res := sling.New().Get(this.adminUrl + "/api/v2/simulation") |
| 221 | req := DoRequest(res) |
| 222 | Expect(req.StatusCode).To(Equal(200)) |
| 223 | return req.Body |
| 224 | } |
| 225 | |
| 226 | func (this Hoverfly) ImportSimulation(simulation string) { |
| 227 | req := sling.New().Put(this.adminUrl + "/api/v2/simulation").Body(bytes.NewBufferString(simulation)) |
no test coverage detected