fluxcd-flux2/test/e2e/e2e_test.go
Chanwit Kaewkasi ca08157ddd implement e2e tests for install manifests
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2021-08-03 23:53:58 +07:00

24 lines
621 B
Go

// +build e2e
package e2e
import (
"testing"
"github.com/stretchr/testify/assert"
"gotest.tools/golden"
)
func TestFluxInstallManifests(t *testing.T) {
actual, err := runAsBytes(fluxBinary, "install")
assert.NoError(t, err)
golden.Assert(t, string(actual), "../../../testdata/flux_install_manifests.golden")
}
func TestFluxInstallManifestsExtra(t *testing.T) {
actual, err := runAsBytes(fluxBinary, "install", "--components-extra", "image-reflector-controller,image-automation-controller")
assert.NoError(t, err)
golden.Assert(t, string(actual), "../../../testdata/flux_install_manifests_extra.golden")
}