mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-20 16:51:03 -04:00
f3a9b00ec8
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
21 lines
341 B
Go
21 lines
341 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestTags(t *testing.T) {
|
|
out, err := run("tags", fmt.Sprintf("%s/busybox", domain))
|
|
if err != nil {
|
|
t.Fatalf("output: %s, error: %v", out, err)
|
|
}
|
|
expected := `glibc
|
|
latest
|
|
musl
|
|
`
|
|
if !strings.HasSuffix(out, expected) {
|
|
t.Fatalf("expected: %s\ngot: %s", expected, out)
|
|
}
|
|
}
|