Skip to content

Commit

Permalink
cmd: add auto migration image
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jun 9, 2017
1 parent 8e1fe9a commit cdece2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func TestExecute(t *testing.T) {
var osArgs = make([]string, len(os.Args))
var path = filepath.Join(os.TempDir(), fmt.Sprintf("hydra-%s.yml", uuid.New()))
os.Setenv("DATABASE_URL", "memory")
os.Setenv("FORCE_ROOT_CLIENT_CREDENTIALS", "admin:pw")
copy(osArgs, os.Args)

for _, c := range []struct {
Expand All @@ -38,7 +39,7 @@ func TestExecute(t *testing.T) {
return err != nil
},
},
{args: []string{"clients", "connect", "--url", "http://127.0.0.1:4444/"}},
{args: []string{"connect", "--url", "https://127.0.0.1:4444/", "--id", "admin", "--secret", "pw"}},
{args: []string{"clients", "create", "--id", "foobarbaz"}},
{args: []string{"clients", "create", "--id", "public-foo", "--is-public"}},
{args: []string{"clients", "delete", "foobarbaz"}},
Expand Down

0 comments on commit cdece2e

Please sign in to comment.