MCPcopy
hub / github.com/SpectoLabs/hoverfly / GetSimulation

Method GetSimulation

functional-tests/functional_tests.go:219–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219func (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
226func (this Hoverfly) ImportSimulation(simulation string) {
227 req := sling.New().Put(this.adminUrl + "/api/v2/simulation").Body(bytes.NewBufferString(simulation))

Callers 1

ExportSimulationMethod · 0.95

Calls 2

DoRequestFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected