Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: pull server mock package from go-vela/server #230

Merged
merged 1 commit into from
Nov 1, 2021
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 executor/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/executor/linux"

Expand Down
2 changes: 1 addition & 1 deletion executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/executor/linux"
"github.com/go-vela/worker/executor/local"
Expand Down
2 changes: 1 addition & 1 deletion executor/linux/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"net/http/httptest"
"testing"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/compiler/native"
"github.com/go-vela/server/mock/server"
"github.com/urfave/cli/v2"

"github.com/go-vela/worker/runtime/docker"
Expand Down
2 changes: 1 addition & 1 deletion executor/linux/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/constants"
"github.com/go-vela/worker/runtime/docker"
)
Expand Down
2 changes: 1 addition & 1 deletion executor/linux/linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types"

"github.com/go-vela/worker/runtime/docker"
Expand Down
2 changes: 1 addition & 1 deletion executor/linux/opts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime"
"github.com/go-vela/worker/runtime/docker"
Expand Down
2 changes: 1 addition & 1 deletion executor/linux/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/urfave/cli/v2"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/compiler/native"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime/docker"

Expand Down
2 changes: 1 addition & 1 deletion executor/linux/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime/docker"

Expand Down
2 changes: 1 addition & 1 deletion executor/linux/stage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/urfave/cli/v2"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/compiler/native"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime/docker"

Expand Down
2 changes: 1 addition & 1 deletion executor/linux/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime/docker"

Expand Down
2 changes: 1 addition & 1 deletion executor/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime/docker"

Expand Down
2 changes: 1 addition & 1 deletion executor/local/opts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/runtime"
"github.com/go-vela/worker/runtime/docker"
Expand Down
2 changes: 1 addition & 1 deletion executor/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-vela/mock/server"
"github.com/go-vela/server/mock/server"

"github.com/go-vela/worker/executor/linux"
"github.com/go-vela/worker/executor/local"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ go 1.16

require (
github.com/Masterminds/semver/v3 v3.1.1
github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5 // indirect
github.com/buildkite/yaml v0.0.0-20181016232759-0caa5f0796e3
github.com/docker/distribution v2.7.1+incompatible
github.com/docker/docker v20.10.10+incompatible
github.com/docker/go-units v0.4.0
github.com/gin-gonic/gin v1.7.4
github.com/go-vela/mock v0.10.0
github.com/go-vela/sdk-go v0.10.1
github.com/go-vela/server v0.10.2-0.20211027183311-18eef236ab3f
github.com/go-vela/server v0.10.2-0.20211029173632-4e64f8946057
github.com/go-vela/types v0.10.0
github.com/google/go-cmp v0.5.6
github.com/joho/godotenv v1.4.0
Expand Down
126 changes: 39 additions & 87 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/build/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/build/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/service/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
"github.com/go-vela/types/pipeline"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/service/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
"github.com/go-vela/types/pipeline"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/step/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
"github.com/go-vela/types/pipeline"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/step/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/go-vela/mock/server"
"github.com/go-vela/sdk-go/vela"
"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
"github.com/go-vela/types/pipeline"
)
Expand Down