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

Delta Between Two Patch Sets: environs/ec2/local_test.go

Issue 7086055: Add putFakeTools to openstack tests (Closed)
Left Patch Set: Add putFakeTools to openstack tests Created 12 years, 3 months ago
Right Patch Set: Add putFakeTools to openstack tests Created 12 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « environs/ec2/live_test.go ('k') | environs/openstack/export_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 package ec2_test 1 package ec2_test
2 2
3 import ( 3 import (
4 "bytes" 4 "bytes"
5 "launchpad.net/goamz/aws" 5 "launchpad.net/goamz/aws"
6 amzec2 "launchpad.net/goamz/ec2" 6 amzec2 "launchpad.net/goamz/ec2"
7 "launchpad.net/goamz/ec2/ec2test" 7 "launchpad.net/goamz/ec2/ec2test"
8 "launchpad.net/goamz/s3" 8 "launchpad.net/goamz/s3"
9 "launchpad.net/goamz/s3/s3test" 9 "launchpad.net/goamz/s3/s3test"
10 . "launchpad.net/gocheck" 10 . "launchpad.net/gocheck"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 t.env = t.tests.Env 365 t.env = t.tests.Env
366 } 366 }
367 367
368 func (t *localNonUSEastSuite) TearDownTest(c *C) { 368 func (t *localNonUSEastSuite) TearDownTest(c *C) {
369 t.tests.TearDownTest(c) 369 t.tests.TearDownTest(c)
370 t.srv.stopServer(c) 370 t.srv.stopServer(c)
371 t.LoggingSuite.TearDownTest(c) 371 t.LoggingSuite.TearDownTest(c)
372 } 372 }
373 373
374 func (t *localNonUSEastSuite) TestPutBucket(c *C) { 374 func (t *localNonUSEastSuite) TestPutBucket(c *C) {
375 » p := t.env.PublicStorage().(ec2.Storage) 375 » p := ec2.WritablePublicStorage(t.env).(ec2.Storage)
376 for i := 0; i < 5; i++ { 376 for i := 0; i < 5; i++ {
377 p.ResetMadeBucket() 377 p.ResetMadeBucket()
378 var buf bytes.Buffer 378 var buf bytes.Buffer
379 err := p.Put("test-file", &buf, 0) 379 err := p.Put("test-file", &buf, 0)
380 c.Assert(err, IsNil) 380 c.Assert(err, IsNil)
381 } 381 }
382 } 382 }
LEFTRIGHT

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