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

Issue 92700044: Base utils tests on IsolationSuite.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by frankban
Modified:
9 years, 11 months ago
Reviewers:
mp+221377, fwereade, rog
Visibility:
Public.

Description

Base utils tests on IsolationSuite. This is mostly a mechanical branch. Add package_test files where missing. Fix unregistered utilsTest suite (tests not being executed). Remove dependency tests: they will be replaced by a global test after the migration. At this point, all packages in utils are self-contained, except for the following: - syslog: uses agent.DefaultLogDir; - zip: uses testing/filetesting (not a problem since filetesting will be moved to github testing); - ssh: uses cmd RcPassthroughError stuff and testing.FakeHomeSuite. https://code.launchpad.net/~frankban/juju-core/introduce-isolationsuite/+merge/221377 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Base utils tests on IsolationSuite. #

Total comments: 14

Patch Set 3 : Base utils tests on IsolationSuite. #

Total comments: 2

Patch Set 4 : Base utils tests on IsolationSuite. #

Patch Set 5 : Base utils tests on IsolationSuite. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -239 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M utils/apt/apt_test.go View 1 chunk +2 lines, -7 lines 0 comments Download
A utils/apt/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M utils/attempt_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/command_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/exec/exec_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/exec/package_test.go View 1 chunk +2 lines, -12 lines 0 comments Download
M utils/file_test.go View 1 2 3 4 4 chunks +14 lines, -19 lines 0 comments Download
M utils/fslock/fslock_test.go View 1 2 6 chunks +13 lines, -8 lines 0 comments Download
M utils/fslock/package_test.go View 1 chunk +2 lines, -12 lines 0 comments Download
M utils/gomaxprocs_test.go View 2 chunks +3 lines, -3 lines 0 comments Download
M utils/home_unix_test.go View 1 chunk +1 line, -1 line 0 comments Download
M utils/home_windows_test.go View 1 chunk +2 lines, -1 line 0 comments Download
M utils/http_test.go View 4 chunks +4 lines, -1 line 0 comments Download
M utils/isubuntu_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/limiter_test.go View 2 chunks +8 lines, -4 lines 0 comments Download
M utils/network_test.go View 1 chunk +2 lines, -0 lines 0 comments Download
M utils/package_test.go View 1 chunk +4 lines, -13 lines 0 comments Download
A utils/parallel/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M utils/parallel/parallel_test.go View 1 chunk +3 lines, -5 lines 0 comments Download
M utils/parallel/try_test.go View 12 chunks +21 lines, -14 lines 0 comments Download
M utils/password_test.go View 5 chunks +10 lines, -7 lines 0 comments Download
M utils/proxy/package_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/proxy/proxy_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/registry/package_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/registry/registry_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
A utils/set/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M utils/set/strings_test.go View 1 chunk +3 lines, -5 lines 0 comments Download
M utils/shell/script_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/ssh/authorisedkeys_test.go View 2 chunks +0 lines, -5 lines 0 comments Download
M utils/ssh/fingerprint_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/ssh/generate_test.go View 1 chunk +1 line, -2 lines 0 comments Download
A utils/ssh/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M utils/ssh/run_test.go View 5 chunks +22 lines, -9 lines 0 comments Download
M utils/ssh/ssh_gocrypto_test.go View 2 chunks +3 lines, -3 lines 0 comments Download
M utils/ssh/ssh_test.go View 1 2 3 5 chunks +51 lines, -35 lines 0 comments Download
M utils/syslog/config_test.go View 7 chunks +14 lines, -16 lines 0 comments Download
A utils/syslog/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
A utils/tailer/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M utils/tailer/tailer_test.go View 2 chunks +3 lines, -8 lines 0 comments Download
M utils/trivial_test.go View 2 chunks +8 lines, -14 lines 0 comments Download
M utils/uuid_test.go View 2 chunks +10 lines, -7 lines 0 comments Download
A utils/voyeur/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M utils/voyeur/value_test.go View 1 chunk +2 lines, -6 lines 0 comments Download
M utils/zip/zip_test.go View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9
frankban
Please take a look.
9 years, 11 months ago (2014-05-29 13:24:22 UTC) #1
frankban
Please take a look.
9 years, 11 months ago (2014-05-29 13:37:39 UTC) #2
rog
LGTM modulo a few comments below. https://codereview.appspot.com/92700044/diff/20001/utils/file_test.go File utils/file_test.go (left): https://codereview.appspot.com/92700044/diff/20001/utils/file_test.go#oldcode178 utils/file_test.go:178: data, err = ...
9 years, 11 months ago (2014-05-29 15:25:44 UTC) #3
fwereade
Just adding to rog's comments. Re the "data" var in utils_test... *this* sort of thing ...
9 years, 11 months ago (2014-05-29 21:26:56 UTC) #4
frankban
Please take a look. https://codereview.appspot.com/92700044/diff/20001/utils/file_test.go File utils/file_test.go (left): https://codereview.appspot.com/92700044/diff/20001/utils/file_test.go#oldcode178 utils/file_test.go:178: data, err = ioutil.ReadFile(path) On ...
9 years, 11 months ago (2014-05-30 09:17:13 UTC) #5
fwereade
LGTM despite my concerns about file_test: progress not perfection. But please add a TODO and ...
9 years, 11 months ago (2014-05-30 09:27:41 UTC) #6
frankban
Please take a look.
9 years, 11 months ago (2014-05-30 09:33:54 UTC) #7
frankban
Please take a look.
9 years, 11 months ago (2014-05-30 09:45:17 UTC) #8
frankban
9 years, 11 months ago (2014-05-30 09:46:04 UTC) #9
On 2014/05/30 09:27:41, fwereade wrote:
> LGTM despite my concerns about file_test: progress not perfection. But please
> add a TODO and a bug# to point out that this is totally lame and we ought to
add
> an indirection layer (possibly by adding user stuff to osenv, and mandating
that
> people use that?).

Done.
Sign in to reply to this message.

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