mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
18 lines
346 B
Go
18 lines
346 B
Go
package client
|
|
|
|
import (
|
|
"github.com/distribution/reference"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func TestLatestCaddyImage(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
image, err := LatestCaddyImage()
|
|
require.NoError(t, err)
|
|
|
|
assert.Regexp(t, `^caddy:2\.\d+\.\d+$`, reference.FamiliarString(image))
|
|
}
|