Blame internal/osbuild/sysconfig_stage_test.go
|
Packit Service |
bcdfb1 |
package osbuild
|
|
Packit Service |
bcdfb1 |
|
|
Packit Service |
bcdfb1 |
import (
|
|
Packit Service |
bcdfb1 |
"testing"
|
|
Packit Service |
bcdfb1 |
|
|
Packit Service |
bcdfb1 |
"github.com/stretchr/testify/assert"
|
|
Packit Service |
bcdfb1 |
)
|
|
Packit Service |
bcdfb1 |
|
|
Packit Service |
bcdfb1 |
func TestNewSysconfigStage(t *testing.T) {
|
|
Packit Service |
bcdfb1 |
expectedStage := &Stage{
|
|
Packit Service |
bcdfb1 |
Name: "org.osbuild.sysconfig",
|
|
Packit Service |
bcdfb1 |
Options: &SysconfigStageOptions{},
|
|
Packit Service |
bcdfb1 |
}
|
|
Packit Service |
bcdfb1 |
actualStage := NewSysconfigStage(&SysconfigStageOptions{})
|
|
Packit Service |
bcdfb1 |
assert.Equal(t, expectedStage, actualStage)
|
|
Packit Service |
bcdfb1 |
}
|