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

Issue 5845051: Make test charm repository available from testing package

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by fwereade
Modified:
11 years, 12 months ago
Reviewers:
mp+97956
Visibility:
Public.

Description

Make test charm repository available from testing package charm, state, and store were all testing against the same repo, and very soon so will hook (so it can have a real unit to work with); seemed sensible to make it hard for tests to accidentally write to charms they shouldn't, and to avoid explicit use of "../charm/testrepo" in other packages. Only notable change is file mode testing; it was actually only tested in one place, and implicitly at that, so it's now explicitly tested in its own test. https://code.launchpad.net/~fwereade/juju/go-testing-charm/+merge/97956 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Make test charm repository available from testing package #

Total comments: 11

Patch Set 3 : Make test charm repository available from testing package #

Patch Set 4 : Make test charm repository available from testing package #

Total comments: 1

Patch Set 5 : Make test charm repository available from testing package #

Patch Set 6 : Make test charm repository available from testing package #

Patch Set 7 : Make test charm repository available from testing package #

Total comments: 1

Patch Set 8 : Make test charm repository available from testing package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -204 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M charm/bundle_test.go View 1 2 5 chunks +57 lines, -22 lines 0 comments Download
M charm/charm_test.go View 1 2 3 chunks +1 line, -41 lines 0 comments Download
M charm/config_test.go View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M charm/dir_test.go View 1 2 7 chunks +11 lines, -42 lines 0 comments Download
M charm/meta_test.go View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 32 chunks +52 lines, -71 lines 0 comments Download
M state/watch_test.go View 1 2 3 4 5 6 7 5 chunks +5 lines, -5 lines 0 comments Download
M store/branch_test.go View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M store/store_test.go View 1 2 3 4 5 chunks +4 lines, -14 lines 0 comments Download
A testing/charm.go View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download

Messages

Total messages: 13
fwereade
Please take a look.
12 years, 1 month ago (2012-03-16 18:40:20 UTC) #1
fwereade
Please take a look.
12 years, 1 month ago (2012-03-16 18:45:00 UTC) #2
niemeyer
Great idea. A few ideas for improvements: https://codereview.appspot.com/5845051/diff/12/testing/charm.go File testing/charm.go (right): https://codereview.appspot.com/5845051/diff/12/testing/charm.go#newcode11 testing/charm.go:11: var srcRepo ...
12 years, 1 month ago (2012-03-16 19:25:13 UTC) #3
fwereade
Great comments, thanks. https://codereview.appspot.com/5845051/diff/12/testing/charm.go File testing/charm.go (right): https://codereview.appspot.com/5845051/diff/12/testing/charm.go#newcode11 testing/charm.go:11: var srcRepo = os.ExpandEnv("$GOPATH/src/launchpad.net/juju/go/testing/repo") On 2012/03/16 ...
12 years, 1 month ago (2012-03-16 21:22:14 UTC) #4
fwereade
Please take a look. https://codereview.appspot.com/5845051/diff/12/testing/charm.go File testing/charm.go (right): https://codereview.appspot.com/5845051/diff/12/testing/charm.go#newcode11 testing/charm.go:11: var srcRepo = os.ExpandEnv("$GOPATH/src/launchpad.net/juju/go/testing/repo") On ...
12 years, 1 month ago (2012-03-16 22:20:59 UTC) #5
fwereade
Please take a look.
12 years, 1 month ago (2012-03-17 00:13:38 UTC) #6
rog
LGTM bar lack of docs. https://codereview.appspot.com/5845051/diff/3002/testing/charm.go File testing/charm.go (right): https://codereview.appspot.com/5845051/diff/3002/testing/charm.go#newcode23 testing/charm.go:23: type Repo struct { ...
12 years, 1 month ago (2012-03-22 10:57:46 UTC) #7
fwereade
Please take a look.
12 years ago (2012-04-18 16:47:19 UTC) #8
fwereade
Please take a look.
12 years ago (2012-04-23 08:15:28 UTC) #9
fwereade
Please take a look.
12 years ago (2012-04-23 08:41:45 UTC) #10
rog
On 2012/04/23 08:41:45, fwereade wrote: > Please take a look. LGTM
11 years, 12 months ago (2012-04-27 09:40:47 UTC) #11
niemeyer
LGTM too. https://codereview.appspot.com/5845051/diff/17001/charm/bundle_test.go File charm/bundle_test.go (right): https://codereview.appspot.com/5845051/diff/17001/charm/bundle_test.go#newcode64 charm/bundle_test.go:64: func (s *BundleSuite) TestBundleFileModes(c *C) { Took ...
11 years, 12 months ago (2012-04-27 14:50:51 UTC) #12
fwereade
11 years, 12 months ago (2012-04-27 15:08:43 UTC) #13
*** Submitted:

Make test charm repository available from testing package

charm, state, and store were all testing against the same repo, and very
soon so will hook (so it can have a real unit to work with); seemed sensible
to make it hard for tests to accidentally write to charms they shouldn't,
and to avoid explicit use of "../charm/testrepo" in other packages.

Only notable change is file mode testing; it was actually only tested in one
place, and implicitly at that, so it's now explicitly tested in its own
test.

R=niemeyer, rog
CC=
https://codereview.appspot.com/5845051
Sign in to reply to this message.

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