+maxlinc - Add ApiKey authentication
diff --git a/acceptance/00-authentication.go b/acceptance/00-authentication.go
new file mode 100644
index 0000000..10ed022
--- /dev/null
+++ b/acceptance/00-authentication.go
@@ -0,0 +1,28 @@
+package main
+
+import (
+ "github.com/rackspace/gophercloud"
+ "strings"
+ "fmt"
+ "os"
+)
+
+func main() {
+ provider, username, _, apiKey := getCredentials()
+
+ if !strings.Contains(provider, "rackspace") {
+ fmt.Fprintf(os.Stdout, "Skipping test because provider doesn't support API_KEYs\n")
+ return
+ }
+
+ _, err := gophercloud.Authenticate(
+ provider,
+ gophercloud.AuthOptions{
+ Username: username,
+ ApiKey: apiKey,
+ },
+ )
+ if err != nil {
+ panic(err)
+ }
+}