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

Issue 84470043: worker/singular: mongo sanity-check tests

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by rog
Modified:
10 years, 1 month ago
Reviewers:
dimitern, mp+214189
Visibility:
Public.

Description

worker/singular: mongo sanity-check tests All the previous tests of this package test that the logic works as written, but nothing checks that the approach will actually work when integrated with mongo. These tests actually start a replica set and mimic some of the structure that we intend to use in a full juju installation. By their nature, the tests are slow (~ 2 minutes to run) and unreliable (mongo occasionally core dumps), so I have disabled them by default. They can be enabled with the -juju.unreliabletests flag. https://code.launchpad.net/~rogpeppe/juju-core/538-worker-singular-mongo-test/+merge/214189 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : worker/singular: mongo sanity-check tests #

Patch Set 3 : worker/singular: mongo sanity-check tests #

Total comments: 26

Patch Set 4 : worker/singular: mongo sanity-check tests #

Patch Set 5 : worker/singular: mongo sanity-check tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+578 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A worker/singular/mongo_test.go View 1 2 3 4 1 chunk +570 lines, -0 lines 0 comments Download
M worker/singular/singular.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M worker/singular/singular_test.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
10 years, 1 month ago (2014-04-04 09:44:08 UTC) #1
dimitern
Looks sane, here are some suggestions/questions. https://codereview.appspot.com/84470043/diff/40001/worker/singular/mongo_test.go File worker/singular/mongo_test.go (right): https://codereview.appspot.com/84470043/diff/40001/worker/singular/mongo_test.go#newcode1 worker/singular/mongo_test.go:1: package singular_test Copyright ...
10 years, 1 month ago (2014-04-04 10:43:17 UTC) #2
rog
Please take a look. https://codereview.appspot.com/84470043/diff/40001/worker/singular/mongo_test.go File worker/singular/mongo_test.go (right): https://codereview.appspot.com/84470043/diff/40001/worker/singular/mongo_test.go#newcode1 worker/singular/mongo_test.go:1: package singular_test On 2014/04/04 10:43:17, ...
10 years, 1 month ago (2014-04-04 11:54:55 UTC) #3
dimitern
LGTM, thanks! I'd ask for a separate review from someone more familiar with replicaset internals ...
10 years, 1 month ago (2014-04-04 12:25:33 UTC) #4
rog
10 years, 1 month ago (2014-04-04 12:36:46 UTC) #5
Please take a look.
Sign in to reply to this message.

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