Sha256: 46409550bb782231e36d2724aa28e38a3016ba751c50888f00ba4e5540998090

Contents?: true

Size: 814 Bytes

Versions: 1

Compression:

Stored size: 814 Bytes

Contents

describe 'Cloud Servers', :markdown =>
  """
  
  Scenarios using [Next Generation Cloud Servers API V2](http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ch_preface.html).
  """ do
    code_sample "Create Server", """
    [Create a Server](http://docs.rackspace.com/servers/api/v2/cs-devguide/content/CreateServers.html)
    using the image and flavor, and region specified in the environment.
    """, standard_env_vars.merge({
      'RAX_REGION' => 'DFW',
      'SERVER1_IMAGE' => 'f70ed7c7-b42e-4d77-83d8-40fa29825b85',
      'SERVER1_FLAVOR' => 'performance1-1'
    }),  [] do |success|
      # Assertions
      expect(Pacto).to have_validated_service('Cloud Servers', 'Create Server')
      expect(Pacto).to_not have_failed_validations
      expect(Pacto).to_not have_unmatched_requests
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polytrix-0.0.1 features/2_servers_spec.rb