mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-26 04:16:23 +02:00
chore(updater): move updater packages to pkg/updaters/<name>
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/qdm12/gluetun/internal/constants/providers"
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
umodels "github.com/qdm12/gluetun/pkg/updaters/models"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -58,7 +59,7 @@ func Test_extractServersFromBytes(t *testing.T) {
|
||||
providers.Cyberghost: 1,
|
||||
}),
|
||||
persisted: models.AllServers{
|
||||
ProviderToServers: map[string]models.Servers{},
|
||||
ProviderToServers: map[string]umodels.Servers{},
|
||||
},
|
||||
},
|
||||
"same versions": {
|
||||
@@ -69,7 +70,7 @@ func Test_extractServersFromBytes(t *testing.T) {
|
||||
providers.Cyberghost: 1,
|
||||
}),
|
||||
persisted: models.AllServers{
|
||||
ProviderToServers: map[string]models.Servers{
|
||||
ProviderToServers: map[string]umodels.Servers{
|
||||
providers.Cyberghost: {Version: 1},
|
||||
},
|
||||
},
|
||||
@@ -85,7 +86,7 @@ func Test_extractServersFromBytes(t *testing.T) {
|
||||
"Cyberghost servers from file discarded because they have version 1 and hardcoded servers have version 2",
|
||||
},
|
||||
persisted: models.AllServers{
|
||||
ProviderToServers: map[string]models.Servers{},
|
||||
ProviderToServers: map[string]umodels.Servers{},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user