Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1933)

Issue 36980043: StartContainer returns hardware characteristics.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by thumper
Modified:
10 years, 5 months ago
Reviewers:
mp+197644, wallyworld
Visibility:
Public.

Description

StartContainer returns hardware characteristics. Initial change to have the hardware characteristics of containers returned. At this stage just the arch is filled out. https://code.launchpad.net/~thumper/juju-core/container-hardware-characteristics/+merge/197644 Requires: https://code.launchpad.net/~thumper/juju-core/kvm-provisioner/+merge/197629 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -28 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M container/interface.go View 1 chunk +1 line, -1 line 0 comments Download
M container/kvm/kvm.go View 2 chunks +10 lines, -6 lines 0 comments Download
M container/kvm/live_test.go View 1 chunk +4 lines, -2 lines 1 comment Download
M container/lxc/lxc.go View 5 chunks +14 lines, -9 lines 0 comments Download
M container/testing/common.go View 1 chunk +3 lines, -1 line 0 comments Download
M provider/local/environ.go View 1 chunk +2 lines, -3 lines 0 comments Download
M worker/provisioner/kvm-broker.go View 1 chunk +3 lines, -3 lines 0 comments Download
M worker/provisioner/lxc-broker.go View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 2
thumper
Please take a look.
10 years, 5 months ago (2013-12-04 04:37:36 UTC) #1
wallyworld
10 years, 5 months ago (2013-12-04 04:44:10 UTC) #2
LGTM but I'd like to see the tests more proscriptive. eg we know what arch has
to be so test that rather than no nil.

https://codereview.appspot.com/36980043/diff/1/container/kvm/live_test.go
File container/kvm/live_test.go (right):

https://codereview.appspot.com/36980043/diff/1/container/kvm/live_test.go#new...
container/kvm/live_test.go:101: c.Assert(hardware, gc.Not(gc.Equals),
&instance.HardwareCharacteristics{})
I do think we should be asserting an actual expected value, not just "not nil"
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b