2021-01-13 13:18:51 +00:00
|
|
|
package updater
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
"net/http"
|
|
|
|
"net/url"
|
2021-05-21 12:55:42 +01:00
|
|
|
"os"
|
2021-01-13 13:18:51 +00:00
|
|
|
"path"
|
|
|
|
"path/filepath"
|
|
|
|
"strconv"
|
|
|
|
"testing"
|
|
|
|
|
2022-06-09 15:47:05 +01:00
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/aghalg"
|
2021-02-04 17:35:13 +00:00
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/aghtest"
|
2021-01-25 11:09:29 +00:00
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/version"
|
2021-10-22 09:58:18 +01:00
|
|
|
"github.com/AdguardTeam/golibs/testutil"
|
2021-01-13 13:18:51 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
2021-10-22 09:58:18 +01:00
|
|
|
"github.com/stretchr/testify/require"
|
2021-01-13 13:18:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// TODO(a.garipov): Rewrite these tests.
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
2021-02-04 17:35:13 +00:00
|
|
|
aghtest.DiscardLogOutput(m)
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func startHTTPServer(data string) (l net.Listener, portStr string) {
|
|
|
|
mux := http.NewServeMux()
|
|
|
|
mux.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
|
|
|
|
_, _ = w.Write([]byte(data))
|
|
|
|
})
|
|
|
|
|
|
|
|
listener, err := net.Listen("tcp", ":0")
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
go func() { _ = http.Serve(listener, mux) }()
|
|
|
|
return listener, strconv.FormatUint(uint64(listener.Addr().(*net.TCPAddr).Port), 10)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdateGetVersion(t *testing.T) {
|
|
|
|
const jsonData = `{
|
|
|
|
"version": "v0.103.0-beta.2",
|
|
|
|
"announcement": "AdGuard Home v0.103.0-beta.2 is now available!",
|
|
|
|
"announcement_url": "https://github.com/AdguardTeam/AdGuardHome/internal/releases",
|
|
|
|
"selfupdate_min_version": "v0.0",
|
2022-07-28 18:18:07 +01:00
|
|
|
"download_windows_amd64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_windows_amd64.zip",
|
|
|
|
"download_windows_386": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_windows_386.zip",
|
|
|
|
"download_darwin_amd64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_darwin_amd64.zip",
|
|
|
|
"download_darwin_386": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_darwin_386.zip",
|
|
|
|
"download_linux_amd64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_amd64.tar.gz",
|
|
|
|
"download_linux_386": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_386.tar.gz",
|
|
|
|
"download_linux_arm": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_armv6.tar.gz",
|
|
|
|
"download_linux_armv5": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_armv5.tar.gz",
|
|
|
|
"download_linux_armv6": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_armv6.tar.gz",
|
|
|
|
"download_linux_armv7": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_armv7.tar.gz",
|
|
|
|
"download_linux_arm64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_arm64.tar.gz",
|
|
|
|
"download_linux_mips": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_mips_softfloat.tar.gz",
|
|
|
|
"download_linux_mipsle": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_mipsle_softfloat.tar.gz",
|
|
|
|
"download_linux_mips64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_mips64_softfloat.tar.gz",
|
|
|
|
"download_linux_mips64le": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_mips64le_softfloat.tar.gz",
|
|
|
|
"download_freebsd_386": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_386.tar.gz",
|
|
|
|
"download_freebsd_amd64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_amd64.tar.gz",
|
|
|
|
"download_freebsd_arm": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_armv6.tar.gz",
|
|
|
|
"download_freebsd_armv5": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_armv5.tar.gz",
|
|
|
|
"download_freebsd_armv6": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_armv6.tar.gz",
|
|
|
|
"download_freebsd_armv7": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_armv7.tar.gz",
|
|
|
|
"download_freebsd_arm64": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_freebsd_arm64.tar.gz"
|
2021-01-13 13:18:51 +00:00
|
|
|
}`
|
|
|
|
|
|
|
|
l, lport := startHTTPServer(jsonData)
|
2021-10-22 09:58:18 +01:00
|
|
|
testutil.CleanupAndRequireSuccess(t, l.Close)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
u := NewUpdater(&Config{
|
|
|
|
Client: &http.Client{},
|
|
|
|
Version: "v0.103.0-beta.1",
|
2021-01-25 11:09:29 +00:00
|
|
|
Channel: version.ChannelBeta,
|
2021-01-13 13:18:51 +00:00
|
|
|
GOARCH: "arm",
|
|
|
|
GOOS: "linux",
|
|
|
|
})
|
|
|
|
|
|
|
|
fakeURL := &url.URL{
|
|
|
|
Scheme: "http",
|
|
|
|
Host: net.JoinHostPort("127.0.0.1", lport),
|
2021-01-25 11:09:29 +00:00
|
|
|
Path: path.Join("adguardhome", version.ChannelBeta, "version.json"),
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|
|
|
|
u.versionCheckURL = fakeURL.String()
|
|
|
|
|
|
|
|
info, err := u.VersionInfo(false)
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "v0.103.0-beta.2", info.NewVersion)
|
|
|
|
assert.Equal(t, "AdGuard Home v0.103.0-beta.2 is now available!", info.Announcement)
|
|
|
|
assert.Equal(t, "https://github.com/AdguardTeam/AdGuardHome/internal/releases", info.AnnouncementURL)
|
2022-06-09 15:47:05 +01:00
|
|
|
assert.Equal(t, aghalg.NBTrue, info.CanAutoUpdate)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
// check cached
|
|
|
|
_, err = u.VersionInfo(false)
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdate(t *testing.T) {
|
2021-03-29 09:40:04 +01:00
|
|
|
wd := t.TempDir()
|
2021-01-13 13:18:51 +00:00
|
|
|
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "AdGuardHome"), []byte("AdGuardHome"), 0o755))
|
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "README.md"), []byte("README.md"), 0o644))
|
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "LICENSE.txt"), []byte("LICENSE.txt"), 0o644))
|
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "AdGuardHome.yaml"), []byte("AdGuardHome.yaml"), 0o644))
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
// start server for returning package file
|
2021-05-21 12:55:42 +01:00
|
|
|
pkgData, err := os.ReadFile("testdata/AdGuardHome.tar.gz")
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
l, lport := startHTTPServer(string(pkgData))
|
2021-10-22 09:58:18 +01:00
|
|
|
testutil.CleanupAndRequireSuccess(t, l.Close)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
u := NewUpdater(&Config{
|
|
|
|
Client: &http.Client{},
|
|
|
|
Version: "v0.103.0",
|
|
|
|
})
|
|
|
|
|
|
|
|
fakeURL := &url.URL{
|
|
|
|
Scheme: "http",
|
|
|
|
Host: net.JoinHostPort("127.0.0.1", lport),
|
|
|
|
Path: "AdGuardHome.tar.gz",
|
|
|
|
}
|
|
|
|
|
|
|
|
u.workDir = wd
|
|
|
|
u.confName = filepath.Join(u.workDir, "AdGuardHome.yaml")
|
|
|
|
u.newVersion = "v0.103.1"
|
|
|
|
u.packageURL = fakeURL.String()
|
|
|
|
|
2022-07-07 17:49:47 +01:00
|
|
|
require.NoError(t, u.prepare("AdGuardHome"))
|
2021-10-22 09:58:18 +01:00
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
u.currentExeName = filepath.Join(wd, "AdGuardHome")
|
2021-10-22 09:58:18 +01:00
|
|
|
|
|
|
|
require.NoError(t, u.downloadPackageFile(u.packageURL, u.packageName))
|
|
|
|
require.NoError(t, u.unpack())
|
|
|
|
|
|
|
|
// require.NoError(t, u.check())
|
|
|
|
require.NoError(t, u.backup())
|
|
|
|
require.NoError(t, u.replace())
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
u.clean()
|
|
|
|
|
|
|
|
// check backup files
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err := os.ReadFile(filepath.Join(wd, "agh-backup", "AdGuardHome.yaml"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "AdGuardHome.yaml", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "agh-backup", "AdGuardHome"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "AdGuardHome", string(d))
|
|
|
|
|
|
|
|
// check updated files
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "AdGuardHome"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "1", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "README.md"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "2", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "LICENSE.txt"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "3", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "AdGuardHome.yaml"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "AdGuardHome.yaml", string(d))
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdateWindows(t *testing.T) {
|
2021-03-29 09:40:04 +01:00
|
|
|
wd := t.TempDir()
|
2021-01-13 13:18:51 +00:00
|
|
|
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "AdGuardHome.exe"), []byte("AdGuardHome.exe"), 0o755))
|
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "README.md"), []byte("README.md"), 0o644))
|
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "LICENSE.txt"), []byte("LICENSE.txt"), 0o644))
|
|
|
|
require.NoError(t, os.WriteFile(filepath.Join(wd, "AdGuardHome.yaml"), []byte("AdGuardHome.yaml"), 0o644))
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
// start server for returning package file
|
2021-05-21 12:55:42 +01:00
|
|
|
pkgData, err := os.ReadFile("testdata/AdGuardHome.zip")
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
l, lport := startHTTPServer(string(pkgData))
|
2021-10-22 09:58:18 +01:00
|
|
|
testutil.CleanupAndRequireSuccess(t, l.Close)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
u := NewUpdater(&Config{
|
|
|
|
Client: &http.Client{},
|
|
|
|
GOOS: "windows",
|
|
|
|
Version: "v0.103.0",
|
|
|
|
})
|
|
|
|
|
|
|
|
fakeURL := &url.URL{
|
|
|
|
Scheme: "http",
|
|
|
|
Host: net.JoinHostPort("127.0.0.1", lport),
|
|
|
|
Path: "AdGuardHome.zip",
|
|
|
|
}
|
|
|
|
|
|
|
|
u.workDir = wd
|
|
|
|
u.confName = filepath.Join(u.workDir, "AdGuardHome.yaml")
|
|
|
|
u.newVersion = "v0.103.1"
|
|
|
|
u.packageURL = fakeURL.String()
|
|
|
|
|
2022-07-07 17:49:47 +01:00
|
|
|
require.NoError(t, u.prepare("AdGuardHome.exe"))
|
2021-10-22 09:58:18 +01:00
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
u.currentExeName = filepath.Join(wd, "AdGuardHome.exe")
|
2021-10-22 09:58:18 +01:00
|
|
|
|
|
|
|
require.NoError(t, u.downloadPackageFile(u.packageURL, u.packageName))
|
|
|
|
require.NoError(t, u.unpack())
|
2021-01-13 13:18:51 +00:00
|
|
|
// assert.Nil(t, u.check())
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, u.backup())
|
|
|
|
require.NoError(t, u.replace())
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
u.clean()
|
|
|
|
|
|
|
|
// check backup files
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err := os.ReadFile(filepath.Join(wd, "agh-backup", "AdGuardHome.yaml"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "AdGuardHome.yaml", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "agh-backup", "AdGuardHome.exe"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "AdGuardHome.exe", string(d))
|
|
|
|
|
|
|
|
// check updated files
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "AdGuardHome.exe"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "1", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "README.md"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "2", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "LICENSE.txt"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "3", string(d))
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
d, err = os.ReadFile(filepath.Join(wd, "AdGuardHome.yaml"))
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "AdGuardHome.yaml", string(d))
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdater_VersionInto_ARM(t *testing.T) {
|
|
|
|
const jsonData = `{
|
|
|
|
"version": "v0.103.0-beta.2",
|
|
|
|
"announcement": "AdGuard Home v0.103.0-beta.2 is now available!",
|
|
|
|
"announcement_url": "https://github.com/AdguardTeam/AdGuardHome/internal/releases",
|
|
|
|
"selfupdate_min_version": "v0.0",
|
2022-07-28 18:18:07 +01:00
|
|
|
"download_linux_armv7": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_armv7.tar.gz"
|
2021-01-13 13:18:51 +00:00
|
|
|
}`
|
|
|
|
|
|
|
|
l, lport := startHTTPServer(jsonData)
|
2021-10-22 09:58:18 +01:00
|
|
|
testutil.CleanupAndRequireSuccess(t, l.Close)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
u := NewUpdater(&Config{
|
|
|
|
Client: &http.Client{},
|
|
|
|
Version: "v0.103.0-beta.1",
|
2021-01-25 11:09:29 +00:00
|
|
|
Channel: version.ChannelBeta,
|
2021-01-13 13:18:51 +00:00
|
|
|
GOARCH: "arm",
|
|
|
|
GOOS: "linux",
|
|
|
|
GOARM: "7",
|
|
|
|
})
|
|
|
|
|
|
|
|
fakeURL := &url.URL{
|
|
|
|
Scheme: "http",
|
|
|
|
Host: net.JoinHostPort("127.0.0.1", lport),
|
2021-01-25 11:09:29 +00:00
|
|
|
Path: path.Join("adguardhome", version.ChannelBeta, "version.json"),
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|
|
|
|
u.versionCheckURL = fakeURL.String()
|
|
|
|
|
|
|
|
info, err := u.VersionInfo(false)
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "v0.103.0-beta.2", info.NewVersion)
|
|
|
|
assert.Equal(t, "AdGuard Home v0.103.0-beta.2 is now available!", info.Announcement)
|
|
|
|
assert.Equal(t, "https://github.com/AdguardTeam/AdGuardHome/internal/releases", info.AnnouncementURL)
|
2022-06-09 15:47:05 +01:00
|
|
|
assert.Equal(t, aghalg.NBTrue, info.CanAutoUpdate)
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdater_VersionInto_MIPS(t *testing.T) {
|
|
|
|
const jsonData = `{
|
|
|
|
"version": "v0.103.0-beta.2",
|
|
|
|
"announcement": "AdGuard Home v0.103.0-beta.2 is now available!",
|
|
|
|
"announcement_url": "https://github.com/AdguardTeam/AdGuardHome/internal/releases",
|
|
|
|
"selfupdate_min_version": "v0.0",
|
2022-07-28 18:18:07 +01:00
|
|
|
"download_linux_mips_softfloat": "https://static.adtidy.org/adguardhome/beta/AdGuardHome_linux_mips_softfloat.tar.gz"
|
2021-01-13 13:18:51 +00:00
|
|
|
}`
|
|
|
|
|
|
|
|
l, lport := startHTTPServer(jsonData)
|
2021-10-22 09:58:18 +01:00
|
|
|
testutil.CleanupAndRequireSuccess(t, l.Close)
|
2021-01-13 13:18:51 +00:00
|
|
|
|
|
|
|
u := NewUpdater(&Config{
|
|
|
|
Client: &http.Client{},
|
|
|
|
Version: "v0.103.0-beta.1",
|
2021-01-25 11:09:29 +00:00
|
|
|
Channel: version.ChannelBeta,
|
2021-01-13 13:18:51 +00:00
|
|
|
GOARCH: "mips",
|
|
|
|
GOOS: "linux",
|
|
|
|
GOMIPS: "softfloat",
|
|
|
|
})
|
|
|
|
|
|
|
|
fakeURL := &url.URL{
|
|
|
|
Scheme: "http",
|
|
|
|
Host: net.JoinHostPort("127.0.0.1", lport),
|
2021-01-25 11:09:29 +00:00
|
|
|
Path: path.Join("adguardhome", version.ChannelBeta, "version.json"),
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|
|
|
|
u.versionCheckURL = fakeURL.String()
|
|
|
|
|
|
|
|
info, err := u.VersionInfo(false)
|
2021-10-22 09:58:18 +01:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
2021-01-13 13:18:51 +00:00
|
|
|
assert.Equal(t, "v0.103.0-beta.2", info.NewVersion)
|
|
|
|
assert.Equal(t, "AdGuard Home v0.103.0-beta.2 is now available!", info.Announcement)
|
|
|
|
assert.Equal(t, "https://github.com/AdguardTeam/AdGuardHome/internal/releases", info.AnnouncementURL)
|
2022-06-09 15:47:05 +01:00
|
|
|
assert.Equal(t, aghalg.NBTrue, info.CanAutoUpdate)
|
2021-01-13 13:18:51 +00:00
|
|
|
}
|