parent
8c808831d3
commit
8dafb64f1b
1 changed files with 24 additions and 0 deletions
24
internal/osbuild/script_stage_test.go
Normal file
24
internal/osbuild/script_stage_test.go
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
package osbuild
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNewScriptStageOptions(t *testing.T) {
|
||||
expectedOptions := &ScriptStageOptions{
|
||||
Script: "/root/test.sh",
|
||||
}
|
||||
actualOptions := NewScriptStageOptions("/root/test.sh")
|
||||
assert.Equal(t, expectedOptions, actualOptions)
|
||||
}
|
||||
|
||||
func TestNewScriptStage(t *testing.T) {
|
||||
expectedStage := &Stage{
|
||||
Name: "org.osbuild.script",
|
||||
Options: &ScriptStageOptions{},
|
||||
}
|
||||
actualStage := NewScriptStage(&ScriptStageOptions{})
|
||||
assert.Equal(t, expectedStage, actualStage)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue