Delta Between Two Patch Sets: environs/ec2/live_test.go
Issue 6849044 :
environs/jujutest: simplify interface
Left Patch Set: environs/jujutest: simplify interface
Right Patch Set: environs/jujutest: simplify interface
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
[revision details]
environs/dummy/environs_test.go
environs/ec2/live_test.go
environs/ec2/local_test.go
environs/jujutest/livetests.go
environs/jujutest/tests.go
LEFT RIGHT
(Both sides are equal) 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading...
391 } 391 }
392 392
393 func hasSecurityGroup(r amzec2.Reservation, g amzec2.SecurityGroup) bool { 393 func hasSecurityGroup(r amzec2.Reservation, g amzec2.SecurityGroup) bool {
394 for _, rg := range r.SecurityGroups { 394 for _, rg := range r.SecurityGroups {
395 if rg.Id == g.Id { 395 if rg.Id == g.Id {
396 return true 396 return true
397 } 397 }
398 } 398 }
399 return false 399 return false
400 } 400 }
LEFT RIGHT