refactor: adopt worker module path
Некоторые проверки не удались
CI / test (push) Successful in 2m5s
Docker / Build and publish worker image (push) Failing after 31s
Некоторые проверки не удались
CI / test (push) Successful in 2m5s
Docker / Build and publish worker image (push) Failing after 31s
Этот коммит содержится в:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// HTTPStatusError reports an HTTP response returned while dialing the websocket.
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/app/models"
|
||||
"rsgit.ru/rsmon/rsmon/internal/sender"
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/app/models"
|
||||
"rocketgit.ru/rsmon/worker/internal/sender"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// ExecuteNotification runs one NotificationTask end-to-end. It looks up the
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/app/models"
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/app/models"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// runnerWithCreds is the smallest fixture that yields a Runner with a
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// peerStatusPath is the HTTP path the worker webapp serves at
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
func TestDecideConsensus(t *testing.T) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// recentResultsSize is the in-memory ring buffer capacity for the
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
func TestResultBufferSnapshotEmpty(t *testing.T) {
|
||||
|
||||
@@ -14,9 +14,9 @@ import (
|
||||
"github.com/gorilla/websocket"
|
||||
"gorm.io/datatypes"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/app/models"
|
||||
"rsgit.ru/rsmon/rsmon/internal/checkexec"
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/app/models"
|
||||
"rocketgit.ru/rsmon/worker/internal/checkexec"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
func TestEnqueueTaskMessagePrefersEnvelopeOverLegacyCheck(t *testing.T) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// newTestRunner builds a runner with a deterministic executor and the
|
||||
|
||||
@@ -12,11 +12,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/app/models"
|
||||
"rsgit.ru/rsmon/rsmon/app/models/concerns"
|
||||
"rsgit.ru/rsmon/rsmon/internal/checkexec"
|
||||
"rsgit.ru/rsmon/rsmon/internal/notify"
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/app/models"
|
||||
"rocketgit.ru/rsmon/worker/app/models/concerns"
|
||||
"rocketgit.ru/rsmon/worker/internal/checkexec"
|
||||
"rocketgit.ru/rsmon/worker/internal/notify"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
func TestRunMainAPIHTTPCheck_OK(t *testing.T) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
type serverMetricSample struct {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package distworker
|
||||
|
||||
import (
|
||||
"rsgit.ru/rsmon/rsmon/internal/wire"
|
||||
"rocketgit.ru/rsmon/worker/internal/wire"
|
||||
)
|
||||
|
||||
// notifyResultEnvelope pairs a notification task with its report so the
|
||||
|
||||
Ссылка в новой задаче
Block a user