Logo: Relish

  1. Sign in

Project: Omnimax

Rackspace Authentication (gophercloud)

This is a simple test to authenticate to Rackspace.

Scenarios
  • @gophercloud
Authenticate (gophercloud)
Given
I am setup to run example code for gophercloud
When
I execute the following code:
package main

import (
    // "github.com/rackspace/gophercloud"
    // "os"
)

func main() {
    // var provider = "rackspace-us"
    // var username = os.Getenv("RAX_USERNAME")
    // var api_key = os.Getenv("RAX_API_KEY")
    // _, err := gophercloud.Authenticate(
    //     provider,
    //     gophercloud.AuthOptions{
    //         Username: username,
    //         Password: password,
    //     },
    // )
    // if err != nil {
    //     panic(err)
    // }
    // println("Authenticated")
    println("Fail - gophercloud does not support authentication with an API_KEY")
}
Then
the output should match
Authenticated

Last published about 6 years ago by Max Lincoln.