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

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

Issue 6347044: environs/ec2: bootstrap (Closed)
Left Patch Set: environs/ec2: bootstrap Created 11 years, 8 months ago
Right Patch Set: environs/ec2: bootstrap Created 11 years, 8 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « environs/ec2/cloudinit_test.go ('k') | environs/ec2/local_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
1 package ec2_test 1 package ec2_test
2 2
3 import ( 3 import (
4 "crypto/rand" 4 "crypto/rand"
5 "fmt" 5 "fmt"
6 "io" 6 "io"
7 "io/ioutil" 7 "io/ioutil"
8 amzec2 "launchpad.net/goamz/ec2" 8 amzec2 "launchpad.net/goamz/ec2"
9 . "launchpad.net/gocheck" 9 . "launchpad.net/gocheck"
10 "launchpad.net/juju-core/environs" 10 "launchpad.net/juju-core/environs"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if err != nil { 48 if err != nil {
49 panic(fmt.Errorf("cannot parse amazon tests config data: %v", er r)) 49 panic(fmt.Errorf("cannot parse amazon tests config data: %v", er r))
50 } 50 }
51 for _, name := range envs.Names() { 51 for _, name := range envs.Names() {
52 Suite(&LiveTests{ 52 Suite(&LiveTests{
53 LiveTests: jujutest.LiveTests{ 53 LiveTests: jujutest.LiveTests{
54 Environs: envs, 54 Environs: envs,
55 Name: name, 55 Name: name,
56 ConsistencyDelay: 5 * time.Second, 56 ConsistencyDelay: 5 * time.Second,
57 CanOpenState: true, 57 CanOpenState: true,
58 » » » » HasProvisioner: false, // TODO(dfc) waiting on juju/conn.Depoy 58 » » » » HasProvisioner: false, // TODO(dfc) waiting on juju/conn.Deploy
59 }, 59 },
60 }) 60 })
61 } 61 }
62 } 62 }
63 63
64 // LiveTests contains tests that can be run against the Amazon servers. 64 // LiveTests contains tests that can be run against the Amazon servers.
65 // Each test runs using the same ec2 connection. 65 // Each test runs using the same ec2 connection.
66 type LiveTests struct { 66 type LiveTests struct {
67 testing.LoggingSuite 67 testing.LoggingSuite
68 jujutest.LiveTests 68 jujutest.LiveTests
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 365
366 func hasSecurityGroup(r amzec2.Reservation, g amzec2.SecurityGroup) bool { 366 func hasSecurityGroup(r amzec2.Reservation, g amzec2.SecurityGroup) bool {
367 for _, rg := range r.SecurityGroups { 367 for _, rg := range r.SecurityGroups {
368 if rg.Id == g.Id { 368 if rg.Id == g.Id {
369 return true 369 return true
370 } 370 }
371 } 371 }
372 return false 372 return false
373 } 373 }
LEFTRIGHT

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