Skip to content

Commit 9ef050e

Browse files
authored
Bump-up mockzilla to 2.7.1 (#39)
1 parent f970dce commit 9ef050e

7 files changed

Lines changed: 19 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Each service lives in `pkg/{service_name}/` with:
6363
pkg/petstore/
6464
setup/
6565
openapi.yml # OpenAPI specification
66-
config.yml # Latency, errors, upstream, caching
66+
config.yml # Latency, errors, upstream, replay, caching
6767
codegen.yml # Code generation settings
6868
context.yml # Custom values for mock data
6969
generate.go # go:generate directive
@@ -74,7 +74,7 @@ pkg/petstore/
7474
## API Explorer UI
7575

7676
The built-in UI is available at `/` (configurable in `resources/data/app.yml`).
77-
It lets you browse services, view specs, test endpoints, and inspect request/response history.
77+
It lets you browse services, view specs, test endpoints, inspect request/response history, and manage replay recordings.
7878

7979
## Local development
8080

cmd/server/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ func initRouter() *api.Router {
110110
_ = api.CreateHomeRoutes(router)
111111
_ = api.CreateServiceRoutes(router)
112112
_ = api.CreateHistoryRoutes(router)
113+
_ = api.CreateReplayRoutes(router)
114+
_ = api.CreateServiceConfigRoutes(router)
113115
loader.LoadAll(router)
114116

115117
services := loader.DefaultRegistry.List()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/go-playground/validator/v10 v10.30.1
99
github.com/joho/godotenv v1.5.1
1010
github.com/lmittmann/tint v1.1.3
11-
github.com/mockzilla/mockzilla/v2 v2.6.1
11+
github.com/mockzilla/mockzilla/v2 v2.7.1
1212
)
1313

1414
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
5757
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
5858
github.com/lmittmann/tint v1.1.3 h1:Hv4EaHWXQr+GTFnOU4VKf8UvAtZgn0VuKT+G0wFlO3I=
5959
github.com/lmittmann/tint v1.1.3/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
60-
github.com/mockzilla/mockzilla/v2 v2.6.1 h1:DhPX9pd9U6KmWKia+W3c2dK9jPOMgzsH21Y1qgOo/Ro=
61-
github.com/mockzilla/mockzilla/v2 v2.6.1/go.mod h1:zGD4G9Dj1GLw39cDCQZa5CQmUeLNzhBvEYC3ZbGOZ+0=
60+
github.com/mockzilla/mockzilla/v2 v2.7.1 h1:wzK6HlA4pQq5uWP5QlezcKUagXxHrT6Pt7nUNIjYYQA=
61+
github.com/mockzilla/mockzilla/v2 v2.7.1/go.mod h1:zGD4G9Dj1GLw39cDCQZa5CQmUeLNzhBvEYC3ZbGOZ+0=
6262
github.com/pb33f/jsonpath v0.8.2 h1:Ou4C7zjYClBm97dfZjDCjdZGusJoynv/vrtiEKNfj2Y=
6363
github.com/pb33f/jsonpath v0.8.2/go.mod h1:zBV5LJW4OQOPatmQE2QdKpGQJvhDTlE5IEj6ASaRNTo=
6464
github.com/pb33f/libopenapi v0.36.5 h1:Y1FNJ99E+1OW65ijfx447HezNc7vfi9AHYtaPmtj34c=

pkg/hello_world/setup/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/mockzilla/mockzilla/refs/heads/master/resources/json-schema-service.json
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/mockzilla/mockzilla/refs/heads/main/resources/json-schema-service.json
22
name: hello-world
33
latency: 0ms
44
cache:

pkg/petstore/setup/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/mockzilla/mockzilla/refs/heads/master/resources/json-schema-service.json
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/mockzilla/mockzilla/refs/heads/main/resources/json-schema-service.json
22
name: petstore
33
latency: 0ms
44
cache:

resources/data/app.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/mockzilla/mockzilla/refs/heads/master/resources/json-schema.json
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/mockzilla/mockzilla/refs/heads/main/resources/json-schema.json
22
port: 2200
3+
homeURL: /
34

45
editor:
56
theme: chrome
67
darkTheme: cobalt
78
fontSize: 14
89

9-
historyDuration: 8h
10-
homeURL: /
10+
history:
11+
enabled: false
12+
duration: 8h
13+
14+
replay:
15+
enabled: false
16+
duration: 24h
1117

1218
## Storage backend: defaults to memory for local development.
1319
## Override with env vars for deployment:
@@ -18,4 +24,4 @@ homeURL: /
1824
storage:
1925
type: memory
2026
redis:
21-
host: localhost
27+
address: localhost:6379

0 commit comments

Comments
 (0)