Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed May 18, 2016
1 parent c8d07ab commit c5445e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/clients_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Example:

func init() {
clientsCmd.AddCommand(clientsCreateCmd)
clientsCreateCmd.Flags().String("id", "", "Give the client this id")
clientsCreateCmd.Flags().StringSliceP("callbacks", "c", []string{}, "REQUIRED list of allowed callback URLs")
clientsCreateCmd.Flags().StringSliceP("grant-types", "g", []string{"authorization_code"}, "A list of allowed grant types")
clientsCreateCmd.Flags().StringSliceP("response-types", "r", []string{"code"}, "A list of allowed response types")
Expand Down
9 changes: 8 additions & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ func TestExecute(t *testing.T) {
args: []string{"host", "--dangerous-auto-logon"},
timeout: 10 * time.Second,
},
{args: []string{"clients", "create"}},
{
args: []string{"token", "user",},
timeout: time.Second,
},
{args: []string{"clients", "create", "--id", "foobarbaz"}},
{args: []string{"clients", "delete", "foobarbaz"}},
{args: []string{"keys", "create", "foo", "-a", "RS256"}},
{args: []string{"keys", "create", "foo", "-a", "ES521"}},
{args: []string{"keys", "get", "foo"}},
{args: []string{"keys", "delete", "foo"}},
{args: []string{"connections", "create", "google", "localuser", "googleuser"}},
{args: []string{"token", "client"}},
{args: []string{"policies", "create", "-i", "foobar", "-s", "peter", "max", "-r", "blog", "users", "-a", "post", "ban", "--allow"}},
{args: []string{"policies", "get", "foobar"}},
{args: []string{"policies", "delete", "foobar"}},
Expand Down

0 comments on commit c5445e1

Please sign in to comment.