Add unit tests for chrony stage

Refs: #405
This commit is contained in:
Jiri Kortus 2020-03-27 16:55:39 +01:00 committed by Tom Gundersen
parent fc205786fc
commit ea3fccd643

View file

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