Add unit test for groups stage

Refs: #405
This commit is contained in:
Jiri Kortus 2020-03-27 17:13:40 +01:00 committed by Tom Gundersen
parent bc52b93ece
commit 3306a3b20e

View file

@ -0,0 +1,16 @@
package osbuild
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewGroupsStage(t *testing.T) {
expectedStage := &Stage{
Name: "org.osbuild.groups",
Options: &GroupsStageOptions{},
}
actualStage := NewGroupsStage(&GroupsStageOptions{})
assert.Equal(t, expectedStage, actualStage)
}