Tests broke because Image ID is outdated. Find by name instead - it'll require less maintenance and will be easier to use with other providers.
diff --git a/acceptance/libargs.go b/acceptance/libargs.go
index 78fde06..0c1d539 100644
--- a/acceptance/libargs.go
+++ b/acceptance/libargs.go
@@ -5,6 +5,7 @@
"fmt"
"github.com/rackspace/gophercloud"
"os"
+ "strings"
"time"
)
@@ -57,11 +58,11 @@
//
// Until then, just return Ubuntu 12.04 LTS.
for i := 0; i < len(images); i++ {
- if images[i].Id == "23b564c9-c3e6-49f9-bc68-86c7a9ab5018" {
+ if strings.Contains(images[i].Name, "Ubuntu 12.04 LTS") {
return images[i].Id
}
}
- panic("Image 23b564c9-c3e6-49f9-bc68-86c7a9ab5018 (Ubuntu 12.04 LTS) not found.")
+ panic("Image for Ubuntu 12.04 LTS not found.")
}
// aSuitableFlavor finds the minimum flavor capable of running the test image