LEFT | RIGHT |
1 package ec2_test | 1 package ec2_test |
2 | 2 |
3 import ( | 3 import ( |
4 "io/ioutil" | 4 "io/ioutil" |
5 . "launchpad.net/gocheck" | 5 . "launchpad.net/gocheck" |
6 "launchpad.net/juju/go/environs/ec2" | 6 "launchpad.net/juju/go/environs/ec2" |
7 "os" | 7 "os" |
8 "path/filepath" | 8 "path/filepath" |
9 "sort" | 9 "sort" |
10 "strings" | 10 "strings" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // explicit path relative to home | 78 // explicit path relative to home |
79 keys, err = ec2.AuthorizedKeys(filepath.Join("~", ".ssh", "authorized_ke
ys2")) | 79 keys, err = ec2.AuthorizedKeys(filepath.Join("~", ".ssh", "authorized_ke
ys2")) |
80 c.Check(err, IsNil) | 80 c.Check(err, IsNil) |
81 c.Check(keys, Equals, "auth2\n") | 81 c.Check(keys, Equals, "auth2\n") |
82 | 82 |
83 // explicit absolute path | 83 // explicit absolute path |
84 keys, err = ec2.AuthorizedKeys(filepath.Join(d, "authorized_keys2")) | 84 keys, err = ec2.AuthorizedKeys(filepath.Join(d, "authorized_keys2")) |
85 c.Check(err, IsNil) | 85 c.Check(err, IsNil) |
86 c.Check(keys, Equals, "auth2\n") | 86 c.Check(keys, Equals, "auth2\n") |
87 } | 87 } |
LEFT | RIGHT |