Blame internal/osbuild1/firewall_stage_test.go
|
Packit Service |
15f37d |
package osbuild1
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
import (
|
|
Packit Service |
15f37d |
"testing"
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
"github.com/stretchr/testify/assert"
|
|
Packit Service |
15f37d |
)
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func TestNewFirewallStage(t *testing.T) {
|
|
Packit Service |
15f37d |
expectedFirewall := &Stage{
|
|
Packit Service |
15f37d |
Name: "org.osbuild.firewall",
|
|
Packit Service |
15f37d |
Options: &FirewallStageOptions{},
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
actualFirewall := NewFirewallStage(&FirewallStageOptions{})
|
|
Packit Service |
15f37d |
assert.Equal(t, expectedFirewall, actualFirewall)
|
|
Packit Service |
15f37d |
}
|