This test fails when the juju version is incremented to 1.21-alpha3
FAIL: metadata_test.go:22: metadataSuite.TestAsJSONBuffer
metadata_test.go:35:
c.Check(buf.(*bytes.Buffer).String(), gc.Equals,
`{"ID":"20140909-115934.asdf-zxcv-qwe","Started":"2014-09-09T11:59:34Z","Finished":"2014-09-09T12:00:34Z","Checksum":"123af2cef","ChecksumFormat":"my hash","Size":10,"Stored":false,"Notes":"","Environment":"asdf-zxcv-qwe","Machine":"0","Hostname":"myhost","Version":"1.21-alpha2"}`)
... obtained string = "{\"ID\":\"20140909-115934.asdf-zxcv-qwe\",\"Started\":\"2014-09-09T11:59:34Z\",\"Finished\":\"2014-09-09T12:00:34Z\",\"Checksum\":\"123af2cef\",\"ChecksumFormat\":\"my hash\",\"Size\":10,\"Stored\":false,\"Notes\":\"\",\"Environment\":\"asdf-zxcv-qwe\",\"Machine\":\"0\",\"Hostname\":\"myhost\",\"Version\":\"1.21-alpha3\"}"
... expected string = "{\"ID\":\"20140909-115934.asdf-zxcv-qwe\",\"Started\":\"2014-09-09T11:59:34Z\",\"Finished\":\"2014-09-09T12:00:34Z\",\"Checksum\":\"123af2cef\",\"ChecksumFormat\":\"my hash\",\"Size\":10,\"Stored\":false,\"Notes\":\"\",\"Environment\":\"asdf-zxcv-qwe\",\"Machine\":\"0\",\"Hostname\":\"myhost\",\"Version\":\"1.21-alpha2\"}"
OOPS: 0 passed, 1 FAILED
--- FAIL: Test (0.09 seconds)
mgz> sinzui: so, I guess I'd edit the string in state/backups/metadata/metadata_test.go to land the branch and file a bug to fix the test