21 lines
351 B
Go
21 lines
351 B
Go
|
package centos
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
|
||
|
"code.dumpstack.io/tools/out-of-tree/distro"
|
||
|
)
|
||
|
|
||
|
func TestCentOS(t *testing.T) {
|
||
|
assert := assert.New(t)
|
||
|
|
||
|
u := CentOS{release: "7", container: "out_of_tree_centos_7"}
|
||
|
|
||
|
|
||
|
assert.True(u.Equal(distro.Distro{Release: "7", ID: distro.CentOS}))
|
||
|
|
||
|
assert.NotEmpty(u.Packages())
|
||
|
}
|