Skip to content

Commit

Permalink
Fix the testserver backend. (#10)
Browse files Browse the repository at this point in the history
The `testserver` subcommand was running the `Htpasswd` backend rather
than the `Testserver` backend.

Signed-off-by: James Peach <[email protected]>
  • Loading branch information
jpeach authored Sep 30, 2020
1 parent 71f16eb commit afc454a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/testserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewTestserverCommand() *cobra.Command {
return ExitErrorf(EX_CONFIG, "invalid TLS configuration: %s", err)
}

auth.RegisterServer(srv, &auth.Htpasswd{Log: log})
auth.RegisterServer(srv, &auth.Testserver{Log: log})

log.Info("started serving", "address", mustString(cmd.Flags().GetString("address")))
return auth.RunServer(listener, srv, ctrl.SetupSignalHandler())
Expand Down

0 comments on commit afc454a

Please sign in to comment.