ctdk / goiardi

A Chef server written in Go, able to run entirely in memory, with optional persistence with saving the in-memory data to disk or using MySQL or Postgres as the data storage backend. Docs: http://goiardi.readthedocs.io/en/latest/index.html
http://goiardi.gl
Apache License 2.0
280 stars 39 forks source link

Document the stupidest way to start a ephemeral server from code #17

Open josephholsten opened 10 years ago

josephholsten commented 10 years ago

Sometimes it's nice to do integration tests when for talking to chef. The net/http package does these end-to-end tests in places like src/pkg/net/http/client_test.go:70.

It would be lovely to have a one-liner to spin up goiardi from code with something less dirty than exec.Command(). Obviously it wouldn't need real persistence or TLS or perhaps even signal handling.

(This is all part of my grand scheme to get discoteq, chef-golang and goiardi into debian unstable.)