Add unit test for RPM stage

Refs: #406
This commit is contained in:
Jiri Kortus 2020-03-31 12:53:45 +02:00 committed by Tom Gundersen
parent 703039495b
commit ea02b33d2b

View file

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