Samuel A. Falvo II | 2dd7d2f | 2014-06-30 16:18:08 -0700 | [diff] [blame] | 1 | // +build acceptance,old |
| 2 | |
Samuel A. Falvo II | 1d3fa66 | 2013-06-25 15:29:32 -0700 | [diff] [blame] | 3 | package main |
| 4 | |
| 5 | import ( |
Samuel A. Falvo II | 1d3fa66 | 2013-06-25 15:29:32 -0700 | [diff] [blame] | 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
| 9 | func main() { |
Rafael Garcia | e4a550e | 2013-12-06 17:00:32 -0300 | [diff] [blame] | 10 | provider, username, password, _ := getCredentials() |
Samuel A. Falvo II | 1d3fa66 | 2013-06-25 15:29:32 -0700 | [diff] [blame] | 11 | |
| 12 | _, err := gophercloud.Authenticate( |
| 13 | provider, |
| 14 | gophercloud.AuthOptions{ |
| 15 | Username: username, |
| 16 | Password: password, |
| 17 | }, |
| 18 | ) |
| 19 | if err != nil { |
| 20 | panic(err) |
| 21 | } |
| 22 | } |