From 5a36c8c42bc106a49e19610017b26e0f3f382635 Mon Sep 17 00:00:00 2001 From: Yumechi Date: Sun, 16 Aug 2026 16:18:25 +0800 Subject: [PATCH] chore: update go module path to github.com/gotify/server/v3 --- api/application.go | 4 +- api/application_test.go | 10 ++-- api/client.go | 4 +- api/client_test.go | 10 ++-- api/health.go | 2 +- api/health_test.go | 8 +-- api/message.go | 4 +- api/message_test.go | 10 ++-- api/oidc.go | 10 ++-- api/oidc_test.go | 10 ++-- api/plugin.go | 8 +-- api/plugin_test.go | 18 +++---- api/session.go | 6 +-- api/session_test.go | 10 ++-- api/stream/client.go | 2 +- api/stream/stream.go | 4 +- api/stream/stream_test.go | 6 +-- api/tokens.go | 2 +- api/user.go | 6 +-- api/user_test.go | 12 ++--- app.go | 14 ++--- auth/authentication.go | 4 +- auth/authentication_test.go | 8 +-- auth/cors.go | 2 +- auth/cors_test.go | 4 +- auth/util.go | 2 +- auth/util_test.go | 4 +- config/config_test.go | 2 +- config/migrate/migrate.go | 2 +- database/application.go | 4 +- database/application_test.go | 2 +- database/client.go | 2 +- database/client_test.go | 2 +- database/database.go | 6 +-- database/database_test.go | 4 +- database/message.go | 2 +- database/message_test.go | 2 +- database/migration_test.go | 4 +- database/plugin.go | 2 +- database/plugin_test.go | 2 +- database/user.go | 2 +- database/user_test.go | 2 +- docs/spec.json | 52 +++++++++---------- docs/swagger_test.go | 2 +- docs/ui_test.go | 2 +- error/handler.go | 2 +- error/handler_test.go | 4 +- error/notfound.go | 2 +- error/notfound_test.go | 2 +- go.mod | 2 +- plugin/compat/plugin_test.go | 2 +- plugin/compat/wrap_test.go | 10 ++-- plugin/example/clock/main.go | 2 +- plugin/example/echo/echo.go | 2 +- plugin/example/minimal/main.go | 2 +- plugin/manager.go | 6 +-- plugin/manager_test.go | 16 +++--- plugin/messagehandler.go | 4 +- plugin/messagehandler_test.go | 2 +- plugin/pluginenabled_test.go | 4 +- plugin/testing/broken/cantinstantiate/main.go | 2 +- .../broken/malformedconstructor/main.go | 2 +- plugin/testing/broken/noinstance/main.go | 2 +- plugin/testing/broken/unknowninfo/main.go | 2 +- plugin/testing/mock/mock.go | 4 +- router/router.go | 20 +++---- router/router_test.go | 8 +-- runner/runner.go | 2 +- test/asserts_test.go | 2 +- test/auth.go | 4 +- test/auth_test.go | 6 +-- test/testdb/database.go | 4 +- test/testdb/database_test.go | 6 +-- ui/serve.go | 2 +- ui/src/tests/plugin.test.ts | 4 +- 75 files changed, 206 insertions(+), 206 deletions(-) diff --git a/api/application.go b/api/application.go index 4d3dca419..612c20c60 100644 --- a/api/application.go +++ b/api/application.go @@ -9,8 +9,8 @@ import ( "strings" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" "github.com/h2non/filetype" "gorm.io/gorm" ) diff --git a/api/application_test.go b/api/application_test.go index 135915467..623ed8b50 100644 --- a/api/application_test.go +++ b/api/application_test.go @@ -13,11 +13,11 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/api/client.go b/api/client.go index 64af8a752..4d33ee5cf 100644 --- a/api/client.go +++ b/api/client.go @@ -6,8 +6,8 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" ) // The ClientDatabase interface for encapsulating database access. diff --git a/api/client_test.go b/api/client_test.go index 585a2d64a..7c9ae60a1 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -11,11 +11,11 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/api/health.go b/api/health.go index 7c0288172..9ea7cb965 100644 --- a/api/health.go +++ b/api/health.go @@ -2,7 +2,7 @@ package api import ( "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" ) // The HealthDatabase interface for encapsulating database access. diff --git a/api/health_test.go b/api/health_test.go index e06b0f077..55a61c44f 100644 --- a/api/health_test.go +++ b/api/health_test.go @@ -5,10 +5,10 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/suite" ) diff --git a/api/message.go b/api/message.go index 8c01a04bf..a765d2f19 100644 --- a/api/message.go +++ b/api/message.go @@ -10,8 +10,8 @@ import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" ) // The MessageDatabase interface for encapsulating database access. diff --git a/api/message_test.go b/api/message_test.go index f3047a526..0f6e9ee26 100644 --- a/api/message_test.go +++ b/api/message_test.go @@ -8,11 +8,11 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/api/oidc.go b/api/oidc.go index 172ec7054..f532e0b10 100644 --- a/api/oidc.go +++ b/api/oidc.go @@ -14,11 +14,11 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/config" - "github.com/gotify/server/v2/database" - "github.com/gotify/server/v2/decaymap" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/config" + "github.com/gotify/server/v3/database" + "github.com/gotify/server/v3/decaymap" + "github.com/gotify/server/v3/model" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/zitadel/oidc/v3/pkg/client/rp" diff --git a/api/oidc_test.go b/api/oidc_test.go index b0d5ee43a..5254260df 100644 --- a/api/oidc_test.go +++ b/api/oidc_test.go @@ -7,11 +7,11 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/decaymap" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/decaymap" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "github.com/zitadel/oidc/v3/pkg/oidc" diff --git a/api/plugin.go b/api/plugin.go index 42f30f69c..dec78a39d 100644 --- a/api/plugin.go +++ b/api/plugin.go @@ -7,10 +7,10 @@ import ( "github.com/gin-gonic/gin" "github.com/gotify/location" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/plugin" - "github.com/gotify/server/v2/plugin/compat" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/plugin" + "github.com/gotify/server/v3/plugin/compat" "gopkg.in/yaml.v3" ) diff --git a/api/plugin_test.go b/api/plugin_test.go index f38e7b20f..db1d6230c 100644 --- a/api/plugin_test.go +++ b/api/plugin_test.go @@ -9,13 +9,13 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/plugin" - "github.com/gotify/server/v2/plugin/compat" - "github.com/gotify/server/v2/plugin/testing/mock" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/plugin" + "github.com/gotify/server/v3/plugin/compat" + "github.com/gotify/server/v3/plugin/testing/mock" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "gopkg.in/yaml.v3" @@ -55,14 +55,14 @@ func (s *PluginSuite) BeforeTest(suiteName, testName string) { s.db.CreatePluginConf(&model.PluginConf{ UserID: 1, - ModulePath: "github.com/gotify/server/v2/plugin/example/removed", + ModulePath: "github.com/gotify/server/v3/plugin/example/removed", Token: "P1234", Enabled: false, }) } func (s *PluginSuite) getDanglingConf(uid uint) *model.PluginConf { - conf, err := s.db.GetPluginConfByUserAndPath(uid, "github.com/gotify/server/v2/plugin/example/removed") + conf, err := s.db.GetPluginConfByUserAndPath(uid, "github.com/gotify/server/v3/plugin/example/removed") assert.NoError(s.T(), err) return conf } diff --git a/api/session.go b/api/session.go index 7a7de783d..1a0047d98 100644 --- a/api/session.go +++ b/api/session.go @@ -5,9 +5,9 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/model" ) // SessionDatabase is the interface for session-related database access. diff --git a/api/session_test.go b/api/session_test.go index 21d841b77..d5997638e 100644 --- a/api/session_test.go +++ b/api/session_test.go @@ -8,11 +8,11 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/api/stream/client.go b/api/stream/client.go index fbb8b13b6..74ad04672 100644 --- a/api/stream/client.go +++ b/api/stream/client.go @@ -4,7 +4,7 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "github.com/rs/zerolog/log" ) diff --git a/api/stream/stream.go b/api/stream/stream.go index 62061c2e2..300747157 100644 --- a/api/stream/stream.go +++ b/api/stream/stream.go @@ -10,8 +10,8 @@ import ( "github.com/gin-gonic/gin" "github.com/gorilla/websocket" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" ) // The API provides a handler for a WebSocket stream API. diff --git a/api/stream/stream_test.go b/api/stream/stream_test.go index 9b644325d..0d1e5873a 100644 --- a/api/stream/stream_test.go +++ b/api/stream/stream_test.go @@ -15,9 +15,9 @@ import ( "github.com/fortytw2/leaktest" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" ) diff --git a/api/tokens.go b/api/tokens.go index fbaf33730..7fcdea31b 100644 --- a/api/tokens.go +++ b/api/tokens.go @@ -1,7 +1,7 @@ package api import ( - "github.com/gotify/server/v2/auth" + "github.com/gotify/server/v3/auth" ) var generateApplicationToken = auth.GenerateApplicationToken diff --git a/api/user.go b/api/user.go index 3df698c78..204b5e34b 100644 --- a/api/user.go +++ b/api/user.go @@ -7,9 +7,9 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/model" ) // The UserDatabase interface for encapsulating database access. diff --git a/api/user_test.go b/api/user_test.go index 6313b3eb8..583bb64e7 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -7,12 +7,12 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/app.go b/app.go index 79667d9ca..a8491c25e 100644 --- a/app.go +++ b/app.go @@ -9,13 +9,13 @@ import ( "runtime/debug" "time" - "github.com/gotify/server/v2/config" - "github.com/gotify/server/v2/config/migrate" - "github.com/gotify/server/v2/database" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/router" - "github.com/gotify/server/v2/runner" + "github.com/gotify/server/v3/config" + "github.com/gotify/server/v3/config/migrate" + "github.com/gotify/server/v3/database" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/router" + "github.com/gotify/server/v3/runner" "github.com/mattn/go-isatty" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/auth/authentication.go b/auth/authentication.go index 363d1f45a..a9dde6cd6 100644 --- a/auth/authentication.go +++ b/auth/authentication.go @@ -7,8 +7,8 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/model" ) type authState int diff --git a/auth/authentication_test.go b/auth/authentication_test.go index 1bfee9070..21bf3220e 100644 --- a/auth/authentication_test.go +++ b/auth/authentication_test.go @@ -8,10 +8,10 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/auth/cors.go b/auth/cors.go index a5e1c5015..d0564037c 100644 --- a/auth/cors.go +++ b/auth/cors.go @@ -6,7 +6,7 @@ import ( "time" "github.com/gin-contrib/cors" - "github.com/gotify/server/v2/config" + "github.com/gotify/server/v3/config" ) // CorsConfig generates a config to use in gin cors middleware based on server configuration. diff --git a/auth/cors_test.go b/auth/cors_test.go index 2192f9f62..4e688ba31 100644 --- a/auth/cors_test.go +++ b/auth/cors_test.go @@ -5,8 +5,8 @@ import ( "time" "github.com/gin-contrib/cors" - "github.com/gotify/server/v2/config" - "github.com/gotify/server/v2/mode" + "github.com/gotify/server/v3/config" + "github.com/gotify/server/v3/mode" "github.com/stretchr/testify/assert" ) diff --git a/auth/util.go b/auth/util.go index 9aa6c5435..7cd246522 100644 --- a/auth/util.go +++ b/auth/util.go @@ -2,7 +2,7 @@ package auth import ( "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" ) const authKey = "auth" diff --git a/auth/util_test.go b/auth/util_test.go index 12f5a01c1..943f31db3 100644 --- a/auth/util_test.go +++ b/auth/util_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/config/config_test.go b/config/config_test.go index 548157fe9..4ee2728ab 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/gotify/server/v2/mode" + "github.com/gotify/server/v3/mode" "github.com/rs/zerolog" "github.com/stretchr/testify/assert" ) diff --git a/config/migrate/migrate.go b/config/migrate/migrate.go index 759d05ea2..c47ee3332 100644 --- a/config/migrate/migrate.go +++ b/config/migrate/migrate.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/gotify/server/v2/config" + "github.com/gotify/server/v3/config" "github.com/joho/godotenv" "gopkg.in/yaml.v3" ) diff --git a/database/application.go b/database/application.go index eb4ad0972..ccad458b8 100644 --- a/database/application.go +++ b/database/application.go @@ -4,8 +4,8 @@ import ( "database/sql" "time" - "github.com/gotify/server/v2/fracdex" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/fracdex" + "github.com/gotify/server/v3/model" "gorm.io/gorm" ) diff --git a/database/application_test.go b/database/application_test.go index 4c389be63..2c38e7561 100644 --- a/database/application_test.go +++ b/database/application_test.go @@ -3,7 +3,7 @@ package database import ( "time" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" ) diff --git a/database/client.go b/database/client.go index 6d33208db..aa87b37c2 100644 --- a/database/client.go +++ b/database/client.go @@ -3,7 +3,7 @@ package database import ( "time" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "gorm.io/gorm" ) diff --git a/database/client_test.go b/database/client_test.go index 90e2570a6..6d6edd6bd 100644 --- a/database/client_test.go +++ b/database/client_test.go @@ -3,7 +3,7 @@ package database import ( "time" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" ) diff --git a/database/database.go b/database/database.go index 12bb79950..8da809064 100644 --- a/database/database.go +++ b/database/database.go @@ -8,9 +8,9 @@ import ( "path/filepath" "time" - "github.com/gotify/server/v2/auth/password" - "github.com/gotify/server/v2/fracdex" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth/password" + "github.com/gotify/server/v3/fracdex" + "github.com/gotify/server/v3/model" "github.com/mattn/go-isatty" "github.com/rs/zerolog/log" "gorm.io/driver/mysql" diff --git a/database/database_test.go b/database/database_test.go index 5212f9fbe..1057500ad 100644 --- a/database/database_test.go +++ b/database/database_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "gorm.io/gorm" diff --git a/database/message.go b/database/message.go index b8b23175d..405f517ad 100644 --- a/database/message.go +++ b/database/message.go @@ -1,7 +1,7 @@ package database import ( - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "gorm.io/gorm" ) diff --git a/database/message_test.go b/database/message_test.go index 950567f7f..4c57109cc 100644 --- a/database/message_test.go +++ b/database/message_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/database/migration_test.go b/database/migration_test.go index f097480e0..e107d00a9 100644 --- a/database/migration_test.go +++ b/database/migration_test.go @@ -3,8 +3,8 @@ package database import ( "testing" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "gorm.io/driver/sqlite" diff --git a/database/plugin.go b/database/plugin.go index 98a0301ee..32ea5951d 100644 --- a/database/plugin.go +++ b/database/plugin.go @@ -1,7 +1,7 @@ package database import ( - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "gorm.io/gorm" ) diff --git a/database/plugin_test.go b/database/plugin_test.go index f8e26da61..9948b4584 100644 --- a/database/plugin_test.go +++ b/database/plugin_test.go @@ -1,7 +1,7 @@ package database import ( - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/database/user.go b/database/user.go index 8bfd5d916..a2bdcde14 100644 --- a/database/user.go +++ b/database/user.go @@ -1,7 +1,7 @@ package database import ( - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "gorm.io/gorm" ) diff --git a/database/user_test.go b/database/user_test.go index ca2b7e749..c10d97a89 100644 --- a/database/user_test.go +++ b/database/user_test.go @@ -1,7 +1,7 @@ package database import ( - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/docs/spec.json b/docs/spec.json index 5692a37ba..b75c9e599 100644 --- a/docs/spec.json +++ b/docs/spec.json @@ -2618,7 +2618,7 @@ "example": "AWH0wZ5r0Mbac.r" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "ApplicationParams": { "description": "Params allowed to create or update Applications.", @@ -2654,7 +2654,7 @@ "example": "a1" } }, - "x-go-package": "github.com/gotify/server/v2/api" + "x-go-package": "github.com/gotify/server/v3/api" }, "Client": { "description": "The Client holds information about a device which can receive notifications (and other stuff).", @@ -2726,7 +2726,7 @@ "example": "CWH0wZ5r0Mbac.r" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "ClientParams": { "description": "Params allowed to create or update Clients.", @@ -2750,7 +2750,7 @@ "example": "My Client" } }, - "x-go-package": "github.com/gotify/server/v2/api" + "x-go-package": "github.com/gotify/server/v3/api" }, "CreateMessage": { "description": "The CreateMessage holds information about a message that will be sent.", @@ -2801,7 +2801,7 @@ "example": "Backup" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "CreateUserExternal": { "description": "Used for user creation.", @@ -2832,7 +2832,7 @@ "example": "nrocinu" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "CurrentUser": { "description": "CurrentUserExternal Model", @@ -2889,7 +2889,7 @@ } }, "x-go-name": "CurrentUserExternal", - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "ElevateRequest": { "type": "object", @@ -2906,7 +2906,7 @@ "example": 900 } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "Error": { "description": "The Error contains error relevant information.", @@ -2938,7 +2938,7 @@ "example": "you need to provide a valid access token or user credentials to access this api" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "GotifyInfo": { "description": "GotifyInfo Model", @@ -2982,7 +2982,7 @@ "example": "5.2.6" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "Health": { "description": "Health represents how healthy the application is.", @@ -3006,7 +3006,7 @@ "example": "green" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "Message": { "description": "The MessageExternal holds information about a message which was sent by an Application.", @@ -3078,7 +3078,7 @@ } }, "x-go-name": "MessageExternal", - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "OIDCExternalAuthorizeRequest": { "description": "Used to initiate the OIDC authorization flow for an external client.", @@ -3109,7 +3109,7 @@ "example": "gotify://oidc/callback" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "OIDCExternalAuthorizeResponse": { "description": "Returned after initiating the OIDC authorization flow.", @@ -3133,7 +3133,7 @@ "example": "Android Phone:a1b2c3d4e5f6" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "OIDCExternalTokenRequest": { "description": "Used to exchange an authorization code for a gotify client token.", @@ -3163,7 +3163,7 @@ "example": "Android Phone:a1b2c3d4e5f6" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "OIDCExternalTokenResponse": { "description": "Returned after a successful token exchange.", @@ -3184,7 +3184,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "PagedMessages": { "description": "Wrapper for the paging and the messages.", @@ -3208,7 +3208,7 @@ "$ref": "#/definitions/Paging" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "Paging": { "description": "The Paging holds information about the limit and making requests to the next page.", @@ -3255,7 +3255,7 @@ "example": 5 } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "PluginConf": { "description": "Holds information about a plugin instance for one user.", @@ -3348,7 +3348,7 @@ } }, "x-go-name": "PluginConfExternal", - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "RegenerateTokenResponse": { "description": "The RegenerateTokenResponse holds information about the response to the regenerate token action.", @@ -3366,7 +3366,7 @@ "example": "gtfya.e2NcJK7AenXBPIRB3S03JsBlmy0V6xP8h0hwSiAJae8" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "SecurityUpdateAction": { "description": "The SecurityUpdateAction describes the details of a requested security update.", @@ -3380,7 +3380,7 @@ "example": true } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "SecurityUpdateActionResponse": { "description": "The SecurityUpdateActionResponse holds information about the response to a security update request.", @@ -3391,7 +3391,7 @@ "$ref": "#/definitions/RegenerateTokenResponse" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "UpdateUserExternal": { "description": "Used for updating a user.", @@ -3421,7 +3421,7 @@ "example": "nrocinu" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "User": { "description": "The User holds information about permission and other stuff.", @@ -3464,7 +3464,7 @@ } }, "x-go-name": "UserExternal", - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "UserPass": { "description": "The Password for updating the user.", @@ -3482,7 +3482,7 @@ } }, "x-go-name": "UserExternalPass", - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" }, "VersionInfo": { "description": "VersionInfo Model", @@ -3512,7 +3512,7 @@ "example": "5.2.6" } }, - "x-go-package": "github.com/gotify/server/v2/model" + "x-go-package": "github.com/gotify/server/v3/model" } }, "securityDefinitions": { diff --git a/docs/swagger_test.go b/docs/swagger_test.go index 3665d80b1..5ed3576bf 100644 --- a/docs/swagger_test.go +++ b/docs/swagger_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" + "github.com/gotify/server/v3/mode" "github.com/stretchr/testify/assert" ) diff --git a/docs/ui_test.go b/docs/ui_test.go index 077de8194..806bb2e6f 100644 --- a/docs/ui_test.go +++ b/docs/ui_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" + "github.com/gotify/server/v3/mode" "github.com/stretchr/testify/assert" ) diff --git a/error/handler.go b/error/handler.go index 9a0fd00cc..f9f360242 100644 --- a/error/handler.go +++ b/error/handler.go @@ -8,7 +8,7 @@ import ( "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" ) // Handler creates a gin middleware for handling errors. diff --git a/error/handler_test.go b/error/handler_test.go index 4955b82ff..83a170595 100644 --- a/error/handler_test.go +++ b/error/handler_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" ) diff --git a/error/notfound.go b/error/notfound.go index ca6eaae99..36324800e 100644 --- a/error/notfound.go +++ b/error/notfound.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" ) // NotFound creates a gin middleware for handling page not found. diff --git a/error/notfound_test.go b/error/notfound_test.go index 8ab348944..5ba9e3d8d 100644 --- a/error/notfound_test.go +++ b/error/notfound_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/mode" + "github.com/gotify/server/v3/mode" ) func TestNotFound(t *testing.T) { diff --git a/go.mod b/go.mod index 21b56aabe..e0a06aaab 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gotify/server/v2 +module github.com/gotify/server/v3 require ( github.com/fortytw2/leaktest v1.3.0 diff --git a/plugin/compat/plugin_test.go b/plugin/compat/plugin_test.go index cae56724b..922d74a3d 100644 --- a/plugin/compat/plugin_test.go +++ b/plugin/compat/plugin_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" ) -const examplePluginPath = "github.com/gotify/server/v2/plugin/example/echo" +const examplePluginPath = "github.com/gotify/server/v3/plugin/example/echo" func TestPluginInfoStringer(t *testing.T) { info := Info{ diff --git a/plugin/compat/wrap_test.go b/plugin/compat/wrap_test.go index 944277a22..b7f0fa9d4 100644 --- a/plugin/compat/wrap_test.go +++ b/plugin/compat/wrap_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/test" + "github.com/gotify/server/v3/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) @@ -132,10 +132,10 @@ func TestWrapIncompatiblePlugins(t *testing.T) { tmpDir := test.NewTmpDir("gotify_testwrapincompatibleplugins") defer tmpDir.Clean() for i, modulePath := range []string{ - "github.com/gotify/server/v2/plugin/testing/broken/noinstance", - "github.com/gotify/server/v2/plugin/testing/broken/nothing", - "github.com/gotify/server/v2/plugin/testing/broken/unknowninfo", - "github.com/gotify/server/v2/plugin/testing/broken/malformedconstructor", + "github.com/gotify/server/v3/plugin/testing/broken/noinstance", + "github.com/gotify/server/v3/plugin/testing/broken/nothing", + "github.com/gotify/server/v3/plugin/testing/broken/unknowninfo", + "github.com/gotify/server/v3/plugin/testing/broken/malformedconstructor", } { fName := tmpDir.Path(fmt.Sprintf("broken_%d.so", i)) exec.Command("go", "get", "-d").Run() diff --git a/plugin/example/clock/main.go b/plugin/example/clock/main.go index 87023ad59..151b71b41 100644 --- a/plugin/example/clock/main.go +++ b/plugin/example/clock/main.go @@ -12,7 +12,7 @@ func GetGotifyPluginInfo() plugin.Info { return plugin.Info{ Name: "clock", Description: "Sends an hourly reminder", - ModulePath: "github.com/gotify/server/v2/example/clock", + ModulePath: "github.com/gotify/server/v3/example/clock", } } diff --git a/plugin/example/echo/echo.go b/plugin/example/echo/echo.go index db1784fab..1a6a4c74a 100644 --- a/plugin/example/echo/echo.go +++ b/plugin/example/echo/echo.go @@ -13,7 +13,7 @@ import ( // GetGotifyPluginInfo returns gotify plugin info. func GetGotifyPluginInfo() plugin.Info { return plugin.Info{ - ModulePath: "github.com/gotify/server/v2/plugin/example/echo", + ModulePath: "github.com/gotify/server/v3/plugin/example/echo", Name: "test plugin", } } diff --git a/plugin/example/minimal/main.go b/plugin/example/minimal/main.go index 7dbbde6b3..fe074e445 100644 --- a/plugin/example/minimal/main.go +++ b/plugin/example/minimal/main.go @@ -8,7 +8,7 @@ import ( func GetGotifyPluginInfo() plugin.Info { return plugin.Info{ Name: "minimal plugin", - ModulePath: "github.com/gotify/server/v2/example/minimal", + ModulePath: "github.com/gotify/server/v3/example/minimal", } } diff --git a/plugin/manager.go b/plugin/manager.go index f1b398f4f..feac8efaf 100644 --- a/plugin/manager.go +++ b/plugin/manager.go @@ -14,9 +14,9 @@ import ( "sync" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/plugin/compat" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/plugin/compat" "github.com/rs/zerolog/log" "gopkg.in/yaml.v3" ) diff --git a/plugin/manager_test.go b/plugin/manager_test.go index 62eab53f2..9c3edaf4a 100644 --- a/plugin/manager_test.go +++ b/plugin/manager_test.go @@ -13,20 +13,20 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/plugin/compat" - "github.com/gotify/server/v2/plugin/testing/mock" - "github.com/gotify/server/v2/test" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/plugin/compat" + "github.com/gotify/server/v3/plugin/testing/mock" + "github.com/gotify/server/v3/test" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) const ( - examplePluginPath = "github.com/gotify/server/v2/plugin/example/echo" + examplePluginPath = "github.com/gotify/server/v3/plugin/example/echo" mockPluginPath = mock.ModulePath - danglingPluginPath = "github.com/gotify/server/v2/plugin/testing/removed" + danglingPluginPath = "github.com/gotify/server/v3/plugin/testing/removed" ) type ManagerSuite struct { diff --git a/plugin/messagehandler.go b/plugin/messagehandler.go index 16907c66d..0eaedf51a 100644 --- a/plugin/messagehandler.go +++ b/plugin/messagehandler.go @@ -4,8 +4,8 @@ import ( "errors" "time" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/plugin/compat" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/plugin/compat" ) type redirectToChannel struct { diff --git a/plugin/messagehandler_test.go b/plugin/messagehandler_test.go index c3b8639cf..c5fe76cc3 100644 --- a/plugin/messagehandler_test.go +++ b/plugin/messagehandler_test.go @@ -3,7 +3,7 @@ package plugin import ( "testing" - "github.com/gotify/server/v2/plugin/compat" + "github.com/gotify/server/v3/plugin/compat" "github.com/stretchr/testify/assert" ) diff --git a/plugin/pluginenabled_test.go b/plugin/pluginenabled_test.go index 346e8de5b..c3d2f88e6 100644 --- a/plugin/pluginenabled_test.go +++ b/plugin/pluginenabled_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" ) diff --git a/plugin/testing/broken/cantinstantiate/main.go b/plugin/testing/broken/cantinstantiate/main.go index 28d1dcdb5..f17bff539 100644 --- a/plugin/testing/broken/cantinstantiate/main.go +++ b/plugin/testing/broken/cantinstantiate/main.go @@ -9,7 +9,7 @@ import ( // GetGotifyPluginInfo returns gotify plugin info func GetGotifyPluginInfo() plugin.Info { return plugin.Info{ - ModulePath: "github.com/gotify/server/v2/plugin/testing/broken/noinstance", + ModulePath: "github.com/gotify/server/v3/plugin/testing/broken/noinstance", } } diff --git a/plugin/testing/broken/malformedconstructor/main.go b/plugin/testing/broken/malformedconstructor/main.go index f5f073e6f..e4aad60c0 100644 --- a/plugin/testing/broken/malformedconstructor/main.go +++ b/plugin/testing/broken/malformedconstructor/main.go @@ -7,7 +7,7 @@ import ( // GetGotifyPluginInfo returns gotify plugin info func GetGotifyPluginInfo() plugin.Info { return plugin.Info{ - ModulePath: "github.com/gotify/server/v2/plugin/testing/broken/malformedconstructor", + ModulePath: "github.com/gotify/server/v3/plugin/testing/broken/malformedconstructor", } } diff --git a/plugin/testing/broken/noinstance/main.go b/plugin/testing/broken/noinstance/main.go index 979ab5e61..b05884b64 100644 --- a/plugin/testing/broken/noinstance/main.go +++ b/plugin/testing/broken/noinstance/main.go @@ -7,7 +7,7 @@ import ( // GetGotifyPluginInfo returns gotify plugin info func GetGotifyPluginInfo() plugin.Info { return plugin.Info{ - ModulePath: "github.com/gotify/server/v2/plugin/testing/broken/noinstance", + ModulePath: "github.com/gotify/server/v3/plugin/testing/broken/noinstance", } } diff --git a/plugin/testing/broken/unknowninfo/main.go b/plugin/testing/broken/unknowninfo/main.go index b5d4b41b5..02414dc90 100644 --- a/plugin/testing/broken/unknowninfo/main.go +++ b/plugin/testing/broken/unknowninfo/main.go @@ -2,7 +2,7 @@ package main // GetGotifyPluginInfo returns gotify plugin info func GetGotifyPluginInfo() string { - return "github.com/gotify/server/v2/plugin/testing/broken/unknowninfo" + return "github.com/gotify/server/v3/plugin/testing/broken/unknowninfo" } func main() { diff --git a/plugin/testing/mock/mock.go b/plugin/testing/mock/mock.go index 16fa5e7b0..768587a7f 100644 --- a/plugin/testing/mock/mock.go +++ b/plugin/testing/mock/mock.go @@ -7,11 +7,11 @@ import ( "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/plugin/compat" + "github.com/gotify/server/v3/plugin/compat" ) // ModulePath is for convenient access of the module path of this mock plugin -const ModulePath = "github.com/gotify/server/v2/plugin/testing/mock" +const ModulePath = "github.com/gotify/server/v3/plugin/testing/mock" // Name is for convenient access of the module path of the name of this mock plugin const Name = "mock plugin" diff --git a/router/router.go b/router/router.go index e65842c0d..8a05316b5 100644 --- a/router/router.go +++ b/router/router.go @@ -11,16 +11,16 @@ import ( "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" "github.com/gotify/location" - "github.com/gotify/server/v2/api" - "github.com/gotify/server/v2/api/stream" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/config" - "github.com/gotify/server/v2/database" - "github.com/gotify/server/v2/docs" - gerror "github.com/gotify/server/v2/error" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/plugin" - "github.com/gotify/server/v2/ui" + "github.com/gotify/server/v3/api" + "github.com/gotify/server/v3/api/stream" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/config" + "github.com/gotify/server/v3/database" + "github.com/gotify/server/v3/docs" + gerror "github.com/gotify/server/v3/error" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/plugin" + "github.com/gotify/server/v3/ui" "github.com/rs/zerolog/log" ) diff --git a/router/router_test.go b/router/router_test.go index cd6f7864a..bfc784416 100644 --- a/router/router_test.go +++ b/router/router_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "github.com/gotify/server/v2/config" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/config" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/runner/runner.go b/runner/runner.go index 32f90c77f..90a574703 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -11,7 +11,7 @@ import ( "syscall" "time" - "github.com/gotify/server/v2/config" + "github.com/gotify/server/v3/config" "github.com/rs/zerolog/log" "golang.org/x/crypto/acme" "golang.org/x/crypto/acme/autocert" diff --git a/test/asserts_test.go b/test/asserts_test.go index ec90f38ea..2296129d5 100644 --- a/test/asserts_test.go +++ b/test/asserts_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/gotify/server/v2/test" + "github.com/gotify/server/v3/test" "github.com/stretchr/testify/assert" ) diff --git a/test/auth.go b/test/auth.go index d946a72f9..683dd998d 100644 --- a/test/auth.go +++ b/test/auth.go @@ -2,8 +2,8 @@ package test import ( "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/model" ) // WithUser fake an authentication for testing. diff --git a/test/auth_test.go b/test/auth_test.go index 3257743b4..7461d6ff1 100644 --- a/test/auth_test.go +++ b/test/auth_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/auth" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/test" + "github.com/gotify/server/v3/auth" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/test" "github.com/stretchr/testify/assert" ) diff --git a/test/testdb/database.go b/test/testdb/database.go index 8897f47c3..d7e60f38b 100644 --- a/test/testdb/database.go +++ b/test/testdb/database.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/gotify/server/v2/database" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/database" + "github.com/gotify/server/v3/model" "github.com/stretchr/testify/assert" ) diff --git a/test/testdb/database_test.go b/test/testdb/database_test.go index 8fe97a3b2..d0fe43550 100644 --- a/test/testdb/database_test.go +++ b/test/testdb/database_test.go @@ -3,9 +3,9 @@ package testdb_test import ( "testing" - "github.com/gotify/server/v2/mode" - "github.com/gotify/server/v2/model" - "github.com/gotify/server/v2/test/testdb" + "github.com/gotify/server/v3/mode" + "github.com/gotify/server/v3/model" + "github.com/gotify/server/v3/test/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/ui/serve.go b/ui/serve.go index afe2e10d4..503e55a39 100644 --- a/ui/serve.go +++ b/ui/serve.go @@ -9,7 +9,7 @@ import ( "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" - "github.com/gotify/server/v2/model" + "github.com/gotify/server/v3/model" ) //go:embed build/* diff --git a/ui/src/tests/plugin.test.ts b/ui/src/tests/plugin.test.ts index 3bb9dc9de..ff6ff142e 100644 --- a/ui/src/tests/plugin.test.ts +++ b/ui/src/tests/plugin.test.ts @@ -14,7 +14,7 @@ let gotify: GotifyTest; beforeAll(async () => { const gotifyPluginDir = pluginSupported - ? await newPluginDir(['github.com/gotify/server/v2/plugin/example/echo']) + ? await newPluginDir(['github.com/gotify/server/v3/plugin/example/echo']) : ''; gotify = await newTest(gotifyPluginDir); page = gotify.page; @@ -117,7 +117,7 @@ describe('plugin', () => { it('has plugin info', async () => { await inDetailPage(1, async () => { expect(await pluginInfo('module-path')).toBe( - 'github.com/gotify/server/v2/plugin/example/echo' + 'github.com/gotify/server/v3/plugin/example/echo' ); }); });