Add unit test for hostname stage

Refs: #405
This commit is contained in:
Jiri Kortus 2020-03-30 16:59:09 +02:00 committed by Tom Gundersen
parent 144570026d
commit c2ed6da92e

View file

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