clientSuite.TestClientWatchAllAdminPermission fails at mismatch of multiwatcher.Delta

Bug #1790194 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

FAIL: client_test.go:762: clientSuite.TestClientWatchAllAdminPermission

client_test.go:838:
    if !c.Check(deltas[aIndex], jc.DeepEquals, multiwatcher.Delta{
        Entity: &multiwatcher.RemoteApplicationInfo{
            Name: "remote-db2",
            ModelUUID: s.State.ModelUUID(),
            OfferUUID: "offer-uuid",
            OfferURL: "admin/prod.db2",
            Life: "alive",
            Status: multiwatcher.StatusInfo{
                Current: status.Unknown,
            },
        },
    }) {
        ...
    }
... obtained multiwatcher.Delta = multiwatcher.Delta{Removed:false, Entity:(*multiwatcher.RemoteApplicationInfo)(0xc420237900)}
... expected multiwatcher.Delta = multiwatcher.Delta{Removed:false, Entity:(*multiwatcher.RemoteApplicationInfo)(0xc42046a6e0)}
... mismatch at (*.Entity).Status.Current: unequal; obtained ""; expected "unknown"

got:
&multiwatcher.RemoteApplicationInfo{ModelUUID:"deadbeef-0bad-400d-8000-4b1d0d06f00d", Name:"remote-db2", OfferUUID:"offer-uuid", OfferURL:"admin/prod.db2", Life:"alive", Status:multiwatcher.StatusInfo{Err:error(nil), Current:"", Message:"", Since:(*time.Time)(nil), Version:"", Data:map[string]interface {}(nil)}}

&multiwatcher.MachineInfo{ModelUUID:"deadbeef-0bad-400d-8000-4b1d0d06f00d", Id:"0", InstanceId:"i-0", AgentStatus:multiwatcher.StatusInfo{Err:error(nil), Current:"pending", Message:"", Since:(*time.Time)(nil), Version:"", Data:map[string]interface {}(nil)}, InstanceStatus:multiwatcher.StatusInfo{Err:error(nil), Current:"pending", Message:"", Since:(*time.Time)(nil), Version:"", Data:map[string]interface {}(nil)}, Life:"alive", Config:map[string]interface {}(nil), Series:"quantal", SupportedContainers:[]instance.ContainerType(nil), SupportedContainersKnown:false, HardwareCharacteristics:(*instance.HardwareCharacteristics)(0xc420520740), Jobs:[]multiwatcher.MachineJob{"JobManageModel"}, Addresses:[]multiwatcher.Address(nil), HasVote:false, WantsVote:true}

http://ci.jujucharms.com/job/github-merge-juju/1053/testReport/junit/github/com_juju_juju_apiserver_facades_client_client/TestPackage/

Revision history for this message
Heather Lanigan (hmlanigan) wrote :
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

50% reproduction rate with develop locally. Appears related to the recent update of the pubsub library version in juju.

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

to reproduce locally, fetch the tip of develop, make to update deps and 'run go test -gocheck.v' in apiserver/facades/client/client/

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.