distrobuilder/sources/archlinux-http_test.go
Thomas Hipp 7e8a05b899
sources: Get latest release from mirror
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-03-04 15:16:55 +01:00

17 lines
359 B
Go

package sources
import (
"regexp"
"testing"
"github.com/stretchr/testify/require"
)
func TestArchLinuxGetLatestRelease(t *testing.T) {
var src ArchLinuxHTTP
release, err := src.getLatestRelease("https://mirrors.evowise.com/archlinux/iso/", "x86_64")
require.NoError(t, err)
require.Regexp(t, regexp.MustCompile(`^\d{4}\.\d{2}\.\d{2}$`), release)
}