restoreSuite.TestRestoreReboostrapBuiltInProvider map ordering wrong

Bug #1604561 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Ian Booth

Bug Description

As see at
    http://reports.vapour.ws/releases/issue/578e8333749a5643a514108e

restoreSuite.TestRestoreReboostrapBuiltInProvider map ordering wrong

restore_test.go:271:
    _, err := testing.RunCommand(c, s.command, "restore", "-m", "testing:test1", "--file", "afile", "-b")
restore_test.go:267:
    c.Assert(args.Cloud, jc.DeepEquals, cloud.Cloud{
        Type: "lxd",
        AuthTypes: []cloud.AuthType{"empty", "certificate"},
        Regions: []cloud.Region{{Name: "localhost"}},
    })
... obtained cloud.Cloud = cloud.Cloud{Type:"lxd", AuthTypes:[]cloud.AuthType{"certificate", "empty"}, Endpoint:"", StorageEndpoint:"", Regions:[]cloud.Region{cloud.Region{Name:"localhost", Endpoint:"", StorageEndpoint:""}}, Config:map[string]interface {}(nil)}
... expected cloud.Cloud = cloud.Cloud{Type:"lxd", AuthTypes:[]cloud.AuthType{"empty", "certificate"}, Endpoint:"", StorageEndpoint:"", Regions:[]cloud.Region{cloud.Region{Name:"localhost", Endpoint:"", StorageEndpoint:""}}, Config:map[string]interface {}(nil)}
... mismatch at .AuthTypes[0]: unequal; obtained "certificate"; expected "empty"

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Check was introduced in PR: https://github.com/juju/juju/pull/5825

Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
Ian Booth (wallyworld)
Changed in juju-core:
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Ian Booth (wallyworld)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta13 → none
milestone: none → 2.0-beta13
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.