Sha256: c0dfda844a3eff2cef5f814c7b051e033c3107d8a14268652dc2fdab0d2cf95b

Contents?: true

Size: 1.14 KB

Versions: 96

Compression:

Stored size: 1.14 KB

Contents

Shindo.tests('Fog::Identity[:openstack] | EC2 credential requests', ['openstack']) do

  @credential_format = {
    'access'    => String,
    'tenant_id' => String,
    'secret'    => String,
    'user_id'   => String,
  }

  @user_id = OpenStack::Identity.get_user_id
  @tenant_id = OpenStack::Identity.get_tenant_id

  tests('success') do
    tests('#create_ec2_credential').
      formats({'credential' => @credential_format}) do
      response =
        Fog::Identity[:openstack].
          create_ec2_credential(@user_id, @tenant_id)

      @ec2_credential = response.body['credential']

      response.body
    end

    tests('#get_ec2_credential').
      formats({'credential' => @credential_format}) do
      Fog::Identity[:openstack].
        get_ec2_credential(@user_id, @ec2_credential['access']).body
    end

    tests('#list_ec2_credentials').
      formats({'credentials' => [@credential_format]}) do
      Fog::Identity[:openstack].
        list_ec2_credentials(@user_id).body
    end

    tests('#delete_ec2_credential').succeeds do
      Fog::Identity[:openstack].
        delete_ec2_credential(@user_id, @ec2_credential['access'])
    end

  end

end

Version data entries

96 entries across 96 versions & 10 rubygems

Version Path
fog-maestrodev-1.18.0.20131126122111 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131121075022 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131118164830 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131115184302 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131114200144 tests/openstack/requests/identity/ec2_credentials_tests.rb
gapinc-fog-1.12.1.2.1 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-1.18.0 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-1.17.0 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-1.16.0 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-1.15.0 tests/openstack/requests/identity/ec2_credentials_tests.rb
gapinc-fog-1.14.0 tests/openstack/requests/identity/ec2_credentials_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/openstack/requests/identity/ec2_credentials_tests.rb