LGTM. I am a little panicked around future-proofing though, I think
these api structs will want to look a little different, or maybe quite a
bit different, when we add other clouds and better networking support.
We seem to be reserving some pretty generic API names 'AddNetworks" and
will probably want a number of revisions. We may get to several -Ex
suffixes or something.
LGTM. I am a little panicked around future-proofing though, I think
these api structs will want to look a little different, or maybe quite a
bit different, when we add other clouds and better networking support.
We seem to be reserving some pretty generic API names 'AddNetworks" and
will probably want a number of revisions. We may get to several -Ex
suffixes or something.
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ params/ internal. go params/ internal. go (right):
File state/api/
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ params/ internal. go#newcode398 params/ internal. go:398: NetworkName string
state/api/
This will probably be a non-name id for clouds other than MAAS.
Shouldn't matter apart from naming.
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ provisioner/ machine. go provisioner/ machine. go (right):
File state/api/
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ provisioner/ machine. go#newcode85 provisioner/ machine. go:85: if interfaces[ i].MachineTag !=
state/api/
m.tag {
Why the conditional?
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ provisioner/ provisioner_ test.go provisioner/ provisioner_ test.go (right):
File state/api/
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ provisioner/ provisioner_ test.go# newcode359 provisioner/ provisioner_ test.go: 359: c.Assert( net.Name( ),
state/api/
gc.Equals, expectParams.Name)
Can use c.Check for these two after the err Assert.
https:/ /codereview. appspot. com/84570043/ diff/1/ state/api/ provisioner/ provisioner_ test.go# newcode412 provisioner/ provisioner_ test.go: 412: // Ensure only the first
state/api/
error is reported.
This feels like a seperate testcase really, the current test is > one
screen high which is a bit of a personal bugbear of mine. Sharing setup
steps is not that hard.
https:/ /codereview. appspot. com/84570043/ diff/1/ state/apiserver /provisioner/ provisioner_ test.go /provisioner/ provisioner_ test.go (right):
File state/apiserver
https:/ /codereview. appspot. com/84570043/ diff/1/ state/apiserver /provisioner/ provisioner_ test.go# newcode828 /provisioner/ provisioner_ test.go: 828: net.Name( ), gc.Equals, "vlan42")
state/apiserver
c.Assert(
Can use c.Check, and below.
https:/ /codereview. appspot. com/84570043/ diff/1/ state/apiserver /provisioner/ provisioner_ test.go# newcode839 /provisioner/ provisioner_ test.go: 839: // Test it fails -manager.
state/apiserver
with a non-environment
This feels like a seperate testcase.
https:/ /codereview. appspot. com/84570043/ diff/1/ state/apiserver /provisioner/ provisioner_ test.go# newcode850 /provisioner/ provisioner_ test.go: 850: func (s rverSuite) TestAddNetworkI nterface( c *gc.C) {
state/apiserver
*withoutStateSe
Giant complicated test again...
https:/ /codereview. appspot. com/84570043/