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

Issue 7133043: Run tests against service doubles (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by wallyworld
Modified:
11 years, 3 months ago
Reviewers:
mp+143442
Visibility:
Public.

Description

Run tests against service doubles This branch adds support run running the Openstack tests against service doubles instead of a live instance. We want the tests against the service doubles to always run, and the tests against a live instance to run if specified using -live. Tests which do not pass yet (some code is still WIP), are skipped. https://code.launchpad.net/~wallyworld/juju-core/goose-test-doubles/+merge/143442 Requires: https://code.launchpad.net/~wallyworld/juju-core/upload-fake-tools/+merge/143228 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Run tests against service doubles #

Total comments: 5

Patch Set 3 : Run tests against service doubles #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -44 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/openstack/live_test.go View 1 2 3 chunks +49 lines, -6 lines 0 comments Download
M environs/openstack/local_test.go View 1 2 1 chunk +94 lines, -36 lines 0 comments Download
M environs/openstack/provider_test.go View 1 2 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 9
wallyworld
Please take a look.
11 years, 3 months ago (2013-01-16 06:53:58 UTC) #1
wallyworld
Please take a look.
11 years, 3 months ago (2013-01-17 06:07:51 UTC) #2
dimitern
LGTM, we should go ahead and land this, before my bootstrap tests get even more ...
11 years, 3 months ago (2013-01-17 17:02:58 UTC) #3
rog
looks reasonable. a few comments below. https://codereview.appspot.com/7133043/diff/2002/environs/openstack/local_test.go File environs/openstack/local_test.go (right): https://codereview.appspot.com/7133043/diff/2002/environs/openstack/local_test.go#newcode54 environs/openstack/local_test.go:54: s.identityDouble = identityservice.NewUserPass() ...
11 years, 3 months ago (2013-01-17 17:22:14 UTC) #4
gz
Looks good overall, a couple of queries. https://codereview.appspot.com/7133043/diff/2002/environs/openstack/local_test.go File environs/openstack/local_test.go (right): https://codereview.appspot.com/7133043/diff/2002/environs/openstack/local_test.go#newcode15 environs/openstack/local_test.go:15: baseNovaURL = ...
11 years, 3 months ago (2013-01-17 17:28:57 UTC) #5
wallyworld
I've addressed the identityservice issues raised. > > https://codereview.appspot.com/7133043/diff/2002/environs/openstack/provider_test.go#newcode13 > environs/openstack/provider_test.go:13: var local = flag.Bool("local", ...
11 years, 3 months ago (2013-01-18 01:29:22 UTC) #6
wallyworld
> https://codereview.appspot.com/7133043/diff/2002/environs/openstack/local_test.go#newcode15 > environs/openstack/local_test.go:15: baseNovaURL = "/V1/1" > Why this form rather than just "/compute" ...
11 years, 3 months ago (2013-01-18 01:56:13 UTC) #7
rog
On 18 January 2013 01:29, <ian.booth@canonical.com> wrote: > I considered skipping tests but there's issues ...
11 years, 3 months ago (2013-01-18 09:27:15 UTC) #8
wallyworld
11 years, 3 months ago (2013-01-22 00:31:39 UTC) #9
*** Submitted:

Run tests against service doubles

This branch adds support run running the Openstack tests against service doubles
instead of a live instance.
We want the tests against the service doubles to always run, and the tests
against a live instance to run if specified using -live.

Tests which do not pass yet (some code is still WIP), are skipped.

R=dimitern, rog, gz
CC=
https://codereview.appspot.com/7133043
Sign in to reply to this message.

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