2023-05-23 13:20:48 +00:00
|
|
|
package oraclelinux
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
|
|
|
"code.dumpstack.io/tools/out-of-tree/distro"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestOracleLinux(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
|
2023-05-23 16:54:34 +00:00
|
|
|
u := OracleLinux{release: "9"}
|
2023-05-23 13:20:48 +00:00
|
|
|
|
|
|
|
assert.True(u.Equal(distro.Distro{Release: "9", ID: distro.OracleLinux}))
|
|
|
|
|
|
|
|
assert.NotEmpty(u.Packages())
|
|
|
|
}
|