Bad match in test cmdControllerSuite.TestShowModel

Bug #1839566 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Tim Penhey

Bug Description

As found here https://jenkins.juju.canonical.com/view/Unit%20tests/job/RunUnittests-race-amd64/1703/testReport/github/com_juju_juju_featuretests/TestPackage/ the match is too strict, and fails during a race run some times.

cmd_juju_controller_test.go:197:
    c.Assert(cmdtesting.Stdout(context), gc.Matches, fmt.Sprintf(expectedOutput, version.Current))
... value string = "" +
... "controller:\n" +
... " name: admin/controller\n" +
... " short-name: controller\n" +
... " model-uuid: deadbeef-0bad-400d-8000-4b1d0d06f00d\n" +
... " model-type: iaas\n" +
... " controller-uuid: deadbeef-1bad-500d-9000-4b1d0d06f00d\n" +
... " controller-name: kontroll\n" +
... " is-controller: true\n" +
... " owner: admin\n" +
... " cloud: dummy\n" +
... " region: dummy-region\n" +
... " type: dummy\n" +
... " life: alive\n" +
... " status:\n" +
... " current: available\n" +
... " since: 3 seconds ago\n" +
... " users:\n" +
... " admin:\n" +
... " display-name: admin\n" +
... " access: admin\n" +
... " last-connection: just now\n" +
... " machines:\n" +
... " \"0\":\n" +
... " cores: 0\n" +
... " \"1\":\n" +
... " cores: 2\n" +
... " sla: unsupported\n" +
... " agent-version: 2.7-beta1\n" +
... " credential:\n" +
... " name: cred\n" +
... " owner: admin\n" +
... " cloud: dummy\n" +
... " validity-check: valid\n"
... regex string = "" +
... "controller:\n" +
... " name: admin/controller\n" +
... " short-name: controller\n" +
... " model-uuid: deadbeef-0bad-400d-8000-4b1d0d06f00d\n" +
... " model-type: iaas\n" +
... " controller-uuid: deadbeef-1bad-500d-9000-4b1d0d06f00d\n" +
... " controller-name: kontroll\n" +
... " is-controller: true\n" +
... " owner: admin\n" +
... " cloud: dummy\n" +
... " region: dummy-region\n" +
... " type: dummy\n" +
... " life: alive\n" +
... " status:\n" +
... " current: available\n" +
... " since: just now\n" +
... " users:\n" +
... " admin:\n" +
... " display-name: admin\n" +
... " access: admin\n" +
... " last-connection: just now\n" +
... " machines:\n" +
... " \"0\":\n" +
... " cores: 0\n" +
... " \"1\":\n" +
... " cores: 2\n" +
... " sla: unsupported\n" +
... " agent-version: 2.7-beta1\n" +
... " credential:\n" +
... " name: cred\n" +
... " owner: admin\n" +
... " cloud: dummy\n" +
... " validity-check: valid\n"

Revision history for this message
Tim Penhey (thumper) wrote :
Changed in juju:
status: In Progress → Fix Committed
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.