mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-16 14:16:54 +00:00
copy config.yaml to docker image enable external usage of dashboard package gofmt fix comment use packr for assets add gobuffalo/packr dependency add dependencies fix pointer issues add output-file option
29 lines
499 B
Go
29 lines
499 B
Go
package gogen
|
|
|
|
import (
|
|
"context"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/gobuffalo/genny"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func Test_Get(t *testing.T) {
|
|
r := require.New(t)
|
|
|
|
run := genny.DryRunner(context.Background())
|
|
|
|
get := Get("github.com/gobuffalo/buffalo", "-v", "-u")
|
|
r.NoError(run.Exec(get))
|
|
|
|
res := run.Results()
|
|
r.Len(res.Commands, 1)
|
|
|
|
c := res.Commands[0]
|
|
r.Equal(genny.GoBin()+" get -v -u github.com/gobuffalo/buffalo", strings.Join(c.Args, " "))
|
|
|
|
r.Len(res.Files, 0)
|
|
|
|
}
|