Skip to content

Commit 3c6f799

Browse files
committed
Update simulation meta data to v0.9.2
1 parent fa05f37 commit 3c6f799

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

core/hoverfly_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (hf Hoverfly) GetSimulation() (v2.SimulationView, error) {
202202

203203
return v2.SimulationView{
204204
MetaView: v2.MetaView{
205-
HoverflyVersion: "v0.9.0",
205+
HoverflyVersion: "v0.9.2",
206206
SchemaVersion: "v1",
207207
TimeExported: time.Now().Format(time.RFC3339),
208208
},

core/hoverfly_service_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ var (
3636
delayOne = v1.ResponseDelayView{
3737
UrlPattern: ".",
3838
HttpMethod: "GET",
39-
Delay: 200,
39+
Delay: 200,
4040
}
4141

4242
delayTwo = v1.ResponseDelayView{
4343
UrlPattern: "test.com",
44-
Delay: 201,
44+
Delay: 201,
4545
}
4646
)
4747

@@ -58,7 +58,7 @@ func TestHoverflyGetSimulationReturnsBlankSimulation_ifThereIsNoData(t *testing.
5858
Expect(simulation.DataView.GlobalActions.Delays).To(HaveLen(0))
5959

6060
Expect(simulation.MetaView.SchemaVersion).To(Equal("v1"))
61-
Expect(simulation.MetaView.HoverflyVersion).To(Equal("v0.9.0"))
61+
Expect(simulation.MetaView.HoverflyVersion).To(Equal("v0.9.2"))
6262
Expect(simulation.MetaView.TimeExported).ToNot(BeNil())
6363
}
6464

functional-tests/hoverctl/import_export_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ var _ = Describe("When I use hoverctl", func() {
9090
},
9191
"meta": {
9292
"schemaVersion": "v1",
93-
"hoverflyVersion": "v0.9.0",
93+
"hoverflyVersion": "v0.9.2",
9494
"timeExported": "2016-11-10T12:27:46Z"
9595
}
9696
}`
9797

9898
v2HoverflySimulation = `"pairs":[{"response":{"status":201,"body":"","encodedBody":false,"headers":{"Location":["http://localhost/api/bookings/1"]}},"request":{"requestType":"recording","path":"/api/bookings","method":"POST","destination":"www.my-test.com","scheme":"http","query":"","body":"{\"flightId\": \"1\"}","headers":{"Content-Type":["application/json"]}}}],"globalActions":{"delays":[]}}`
9999

100-
v2HoverflyMeta = `"meta":{"schemaVersion":"v1","hoverflyVersion":"v0.9.0","timeExported":`
100+
v2HoverflyMeta = `"meta":{"schemaVersion":"v1","hoverflyVersion":"v0.9.2","timeExported":`
101101
)
102102

103103
Describe("with a running hoverfly", func() {

0 commit comments

Comments
 (0)