BootstrapSuite.TestBootstrapProviderDetect(No)Regions fails the expected auth type due to misordering

Bug #1618582 reported by Nicholas Skaggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Tim Penhey

Bug Description

As seen in http://reports.vapour.ws/releases/issue/57c5ccbb749a564e161e47f0;

    BootstrapSuite.TestBootstrapProviderDetectRegions and
    BootstrapSuite.TestBootstrapProviderDetectNoRegions fails the expected auth type due to misordering:

[LOG] 0:00.179 INFO juju.cmd.juju.commands combined bootstrap constraints:
bootstrap_test.go:1113:
    c.Assert(bootstrap.args.Cloud, jc.DeepEquals, cloud.Cloud{
        Type: "dummy",
        AuthTypes: []cloud.AuthType{cloud.EmptyAuthType, cloud.UserPassAuthType},
        Regions: []cloud.Region{{Name: "bruce", Endpoint: "endpoint"}},
    })
... obtained cloud.Cloud = cloud.Cloud{Type:"dummy", AuthTypes:cloud.AuthTypes{"userpass", "empty"}, Endpoint:"", IdentityEndpoint:"", StorageEndpoint:"", Regions:[]cloud.Region{cloud.Region{Name:"bruce", Endpoint:"endpoint", IdentityEndpoint:"", StorageEndpoint:""}}, Config:map[string]interface {}(nil), RegionConfig:cloud.RegionConfig(nil)}
... expected cloud.Cloud = cloud.Cloud{Type:"dummy", AuthTypes:cloud.AuthTypes{"empty", "userpass"}, Endpoint:"", IdentityEndpoint:"", StorageEndpoint:"", Regions:[]cloud.Region{cloud.Region{Name:"bruce", Endpoint:"endpoint", IdentityEndpoint:"", StorageEndpoint:""}}, Config:map[string]interface {}(nil), RegionConfig:cloud.RegionConfig(nil)}
... mismatch at .AuthTypes[0]: unequal; obtained "userpass"; expected "empty"

Similar to last month's https://bugs.launchpad.net/juju/+bug/1604561.

Introduced in https://github.com/juju/juju/commit/f5c7ebb3456fef2e294e0b3c75626cb3bc805a99

tags: added: regression unit-test
summary: - BootstrapSuite.TestBootstrapProviderDetectRegions AuthTypes[0]:
- unequal; obtained "userpass"; expected "empty"
+ BootstrapSuite.TestBootstrapProviderDetectRegions fails the expected
+ auth type due to misordering
description: updated
tags: added: xenial
summary: - BootstrapSuite.TestBootstrapProviderDetectRegions fails the expected
+ BootstrapSuite.TestBootstrapProviderDetect(No)Regions fails the expected
auth type due to misordering
description: updated
tags: added: trusty
tags: added: intermittent-failure
Changed in juju:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Ian Booth (wallyworld)
milestone: none → 2.0-beta17
Changed in juju:
importance: Critical → High
importance: High → Critical
Tim Penhey (thumper)
Changed in juju:
assignee: Ian Booth (wallyworld) → Tim Penhey (thumper)
status: Triaged → In Progress
Tim Penhey (thumper)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
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.