$ go test github.com/juju/juju/provider/maas/ -check.f "TestSpaces"
----------------------------------------------------------------------
FAIL: environ_whitebox_test.go:1033: environSuite.TestSpaces
[LOG] 0:00.000 DEBUG juju.testing setting feature flags: address-allocation
[LOG] 0:00.045 ERROR juju.provider.maas {map[id:{1 [] {<nil> ?reflect.Value?} false} dns_servers:{[{192.168.1.2 [] {<nil> ?reflect.Value?} false}] [] {<nil> ?reflect.Value?} false} name:{maas-eth1 [] {<nil> ?reflect.Value?} false} string:{space-1 [] {<nil> ?reflect.Value?} false} vlan:{map[name:{ [] {<nil> ?reflect.Value?} false} fabric:{ [] {<nil> ?reflect.Value?} false} vid:{0 [] {<nil> ?reflect.Value?} false} resource_uri:{ [] {<nil> ?reflect.Value?} false} id:{0 [] {<nil> ?reflect.Value?} false}] [] {0xc2081afe30 0xc20819c1a0} false} gateway_ip:{192.168.1.1 [] {<nil> ?reflect.Value?} false} cidr:{192.168.1.0/24 [] {<nil> ?reflect.Value?} false} resource_uri:{ [] {<nil> ?reflect.Value?} false}] [] {0xc2081afe30 0xc20819c1a0} false}
environ_whitebox_test.go:1043:
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"", cause:(*errors.Err)(0xc2081968c0), previous:(*errors.Err)(0xc2081968c0), file:"github.com/juju/juju/provider/maas/environ.go", line:1914} ("cannot get space name: Requested string, got <nil>.")
... error stack:
github.com/juju/juju/provider/maas/environ.go:1795: cannot get space name: Requested string, got <nil>.
github.com/juju/juju/provider/maas/environ.go:1914:
OOPS: 0 passed, 1 FAILED
--- FAIL: TestMAAS (0.05 seconds)
FAIL
FAIL github.com/juju/juju/provider/maas 0.166s
michael@UbuntuBox:~/canonical/src/github.com/juju/juju$