metadataSuite.TestAsJSONBuffer fails when version is alpha3

Bug #1386204 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Unassigned

Bug Description

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

Michael Foord (mfoord)
Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.