Sha256: 9c363766caa1961e53871862b36250ad1bd09afac6281cc1d14a26760227a827

Contents?: true

Size: 973 Bytes

Versions: 169

Compression:

Stored size: 973 Bytes

Contents

Shindo.tests('AWS::IAM | group requests', ['aws']) do

  tests('success') do

    @group_format = {
      'Group' => {
        'Arn'       => String,
        'GroupId'   => String,
        'GroupName' => String,
        'Path'      => String
      },
      'RequestId' => String
    }

    tests("#create_group('fog_group')").formats(@group_format) do
      Fog::AWS[:iam].create_group('fog_group').body
    end

    @groups_format = {
      'Groups' => [{
        'Arn'       => String,
        'GroupId'   => String,
        'GroupName' => String,
        'Path'      => String
      }],
      'IsTruncated' => Fog::Boolean,
      'RequestId'   => String
    }

    tests("#list_groups").formats(@groups_format) do
      Fog::AWS[:iam].list_groups.body
    end

    tests("#delete_group('fog_group')").formats(AWS::IAM::Formats::BASIC) do
      Fog::AWS[:iam].delete_group('fog_group').body
    end

  end

  tests('failure') do
    test('failing conditions')
  end

end

Version data entries

169 entries across 167 versions & 20 rubygems

Version Path
fog-1.21.0 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/aws/requests/iam/group_tests.rb
fog-1.20.0 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/aws/requests/iam/group_tests.rb
fog-1.19.0 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/aws/requests/iam/group_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/aws/requests/iam/group_tests.rb