7e8a05b899
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
17 lines
359 B
Go
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)
|
|
}
|