Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.24
go-version: '1.26.x'
id: go

- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-go@v3
id: go
with:
go-version: ^1.24
go-version: '1.26.x'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY ui/ ./
# run ui build
RUN npm run build

FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS gobuilder
FROM --platform=$BUILDPLATFORM golang:1.26-bookworm AS gobuilder

ARG TARGETOS
ARG TARGETARCH
Expand Down
2 changes: 1 addition & 1 deletion cmd/root_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"path/filepath"

"github.com/pb33f/doctor/terminal"
"github.com/pb33f/go-yaml"
"github.com/pb33f/libopenapi"
"github.com/pb33f/libopenapi/orderedmap"
"github.com/pb33f/wiretap/har"
"github.com/pb33f/wiretap/shared"
wiretapSpecs "github.com/pb33f/wiretap/specs"
"github.com/spf13/cobra"
"go.yaml.in/yaml/v4"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/run_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"os"
"testing"

"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/shared"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestRunWiretapServiceRejectsInvalidWebSocketPort(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/paths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"net/http"
"testing"

"github.com/pb33f/go-yaml"
"github.com/pb33f/testify/assert"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
"go.yaml.in/yaml/v4"
)

func TestIsHardErrorsSet(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion controls/controls_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/pb33f/ranch/bus"
"github.com/pb33f/ranch/store"
"github.com/pb33f/testify/assert"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
)

func TestResetRuntimeStateClearsTransactionAndHARState(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/broadcast/broadcaster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/google/uuid"
"github.com/pb33f/ranch/bus"
"github.com/pb33f/ranch/model"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/transaction"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestBroadcasterSendsPreMarshaledTransactionPayload(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/build_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (

"github.com/google/uuid"
"github.com/pb33f/libopenapi/orderedmap"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/shared"
"github.com/pb33f/wiretap/transaction"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestBuildHttpTransactionMultipartLargeForm(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/clone_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
)

func TestCloneExistingRequestInstallsReplayableBody(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion daemon/hard_error_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package daemon
import (
"testing"

"github.com/pb33f/testify/assert"
"github.com/pb33f/wiretap/daemon/problems"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
)

func TestPickHardErrorStatus(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/mock_problem_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"github.com/pb33f/ranch/bus"
"github.com/pb33f/ranch/model"
"github.com/pb33f/ranch/store"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/daemon/problems"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func newMockModeWiretapService(t *testing.T, config *shared.WiretapConfiguration) *WiretapService {
Expand Down
4 changes: 2 additions & 2 deletions daemon/mockproxy/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/google/uuid"
validationerrors "github.com/pb33f/libopenapi-validator/errors"
"github.com/pb33f/ranch/model"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/daemon/problems"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestHandlerWritesMockResponse(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/mockproxy/static_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"github.com/google/uuid"
"github.com/pb33f/ranch/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
)

func TestHandleStaticResponseWritesResponseAndBroadcasts(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/prep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/pb33f/ranch/bus"
"github.com/pb33f/ranch/model"
"github.com/pb33f/ranch/store"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestPrepareRequestBuildsDisplayAndAPIRequests(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion daemon/problems/problem_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

validationerrors "github.com/pb33f/libopenapi-validator/errors"
"github.com/pb33f/testify/assert"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
)

func buildSampleErrors(messages ...string) []*shared.WiretapValidationError {
Expand Down
4 changes: 2 additions & 2 deletions daemon/proxy/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"testing"

"github.com/pb33f/libopenapi/orderedmap"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestCallAPIRewritesReferer(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion daemon/proxy/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/google/uuid"
validationerrors "github.com/pb33f/libopenapi-validator/errors"
"github.com/pb33f/ranch/model"
"github.com/pb33f/testify/assert"
"github.com/pb33f/wiretap/daemon/problems"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
)

func TestHandlerWritesUpstreamResponse(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion daemon/stream_chan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/pb33f/testify/assert"
"github.com/pb33f/wiretap/shared"
"github.com/stretchr/testify/assert"
)

// TestSendToStreamChan_DoesNotBlockWhenFull proves that the sync hard-error
Expand Down
4 changes: 2 additions & 2 deletions daemon/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"github.com/pb33f/ranch/bus"
"github.com/pb33f/ranch/model"
"github.com/pb33f/ranch/store"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/daemon/proxy"
"github.com/pb33f/wiretap/shared"
"github.com/pb33f/wiretap/specs"
"github.com/pb33f/wiretap/transaction"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestHandleHttpRequestValidatesResponseAgainstPreparedRequestPath(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions daemon/validator/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"testing"

"github.com/pb33f/libopenapi"
"github.com/pb33f/testify/assert"
"github.com/pb33f/testify/require"
"github.com/pb33f/wiretap/validation"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestValidateRequestUsesMethodSpecificSpecWhenRoutesMatch(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion daemon/wiretap_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/pb33f/testify/assert"
)

func TestReconstructURL(t *testing.T) {
Expand Down
34 changes: 18 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/pb33f/wiretap

go 1.25.7
go 1.26.0

require (
github.com/gobwas/glob v0.2.3
Expand All @@ -9,26 +9,30 @@ require (
github.com/gorilla/mux v1.8.1
github.com/gorilla/websocket v1.5.3
github.com/json-iterator/go v1.1.12
github.com/pb33f/doctor v0.0.78
github.com/pb33f/doctor v0.0.83
github.com/pb33f/go-yaml v0.1.1
github.com/pb33f/harific v0.0.6
github.com/pb33f/libopenapi v0.38.3
github.com/pb33f/libopenapi-validator v0.13.13
github.com/pb33f/libopenapi v0.41.6
github.com/pb33f/libopenapi-validator v0.16.1
github.com/pb33f/ranch v0.9.0
github.com/pb33f/testify v0.1.1
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
go.yaml.in/yaml/v4 v4.0.0-rc.6
)

require (
charm.land/bubbles/v2 v2.1.0 // indirect
charm.land/bubbletea/v2 v2.0.7 // indirect
github.com/Masterminds/semver/v3 v3.5.0 // indirect
github.com/a-h/templ v0.3.1020 // indirect
github.com/alecthomas/chroma/v2 v2.26.1 // indirect
github.com/alecthomas/chroma/v2 v2.27.0 // indirect
github.com/charmbracelet/harmonica v0.2.0 // indirect
github.com/dlclark/regexp2/v2 v2.1.1 // indirect
github.com/dlclark/regexp2/v2 v2.2.1 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/ncruces/go-strftime v1.0.0 // indirect
github.com/pb33f/jsonschema/v6 v6.0.3 // indirect
github.com/pb33f/libasyncapi v0.0.4 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/yuin/goldmark v1.8.2 // indirect
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc // indirect
Expand All @@ -42,7 +46,7 @@ require (
charm.land/lipgloss/v2 v2.0.4 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/basgys/goxml2json v1.1.1-0.20231018121955-e66ee54ceaad // indirect
github.com/buger/jsonparser v1.1.2 // indirect
github.com/buger/jsonparser v1.6.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/charmbracelet/colorprofile v0.4.3 // indirect
github.com/charmbracelet/ultraviolet v0.0.0-20260525132238-948f4557a654 // indirect
Expand All @@ -55,8 +59,7 @@ require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.9.0
github.com/go-openapi/jsonpointer v0.23.1 // indirect
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
github.com/go-openapi/jsonpointer v1.0.2 // indirect
github.com/go-stomp/stomp/v3 v3.1.3 // indirect
github.com/go-viper/mapstructure/v2 v2.5.0
github.com/hashicorp/golang-lru/v2 v2.0.7
Expand All @@ -67,24 +70,23 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/pb33f/jsonpath v0.8.2 // indirect
github.com/pb33f/ordered-map/v2 v2.3.1 // indirect
github.com/pb33f/jsonpath v0.8.4 // indirect
github.com/pb33f/ordered-map/v2 v2.3.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sagikazarmark/locafero v0.11.0 // indirect
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
github.com/spf13/afero v1.15.0 // indirect
github.com/spf13/cast v1.10.0 // indirect
github.com/spf13/viper v1.21.0 // indirect
github.com/stretchr/testify v1.11.1
github.com/stretchr/testify v1.11.1 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/net v0.56.0 // indirect
golang.org/x/sync v0.21.0 // indirect
golang.org/x/sync v0.24.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/text v0.38.0 // indirect
golang.org/x/text v0.42.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading