Logo: Relish

  1. Sign in

Project: Omnimax

Rackspace Authentication (pkgcloud)

This is a simple test to authenticate to Rackspace.

Scenarios
  • @pkgcloud
Authenticate (pkgcloud)
Given
I am setup to run example code for pkgcloud
When
I execute the following code:
var pkgcloud = require('pkgcloud');

// create our client with your rackspace credentials
var client = pkgcloud.providers.rackspace.compute.createClient({
  username: process.env.RAX_USERNAME,
  apiKey: process.env.RAX_API_KEY
});
client.getImages(function(images) {
    console.log('Authenticated');
});
Then
the output should match
Authenticated

Last published about 6 years ago by Max Lincoln.