()
| 244 | } |
| 245 | |
| 246 | func (this Hoverfly) ExportSimulation() v2.SimulationViewV5 { |
| 247 | reader := this.GetSimulation() |
| 248 | simulationBytes, err := ioutil.ReadAll(reader) |
| 249 | Expect(err).To(BeNil()) |
| 250 | |
| 251 | var simulation v2.SimulationViewV5 |
| 252 | |
| 253 | err = json.Unmarshal(simulationBytes, &simulation) |
| 254 | Expect(err).To(BeNil()) |
| 255 | |
| 256 | return simulation |
| 257 | } |
| 258 | |
| 259 | func (this Hoverfly) GetCache() v2.CacheView { |
| 260 | req := sling.New().Get(this.adminUrl + "/api/v2/cache") |
no test coverage detected