Sha256: f9985d8fc4260dc2e1638d9cd0d6f9089eda20359e0aea26e5e2b975cb5f44ae

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

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
      pending if Fog.mocking?
      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
      pending if Fog.mocking?
      Fog::AWS[:iam].list_groups.body
    end

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

  end

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

end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb
fog-1.1.2 tests/aws/requests/iam/group_tests.rb
fog_tractical-1.1.4 tests/aws/requests/iam/group_tests.rb
fog_tractical-1.1.3 tests/aws/requests/iam/group_tests.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb
fog-1.1.1 tests/aws/requests/iam/group_tests.rb
fog-1.1.0 tests/aws/requests/iam/group_tests.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb
tag-fog-1.0.1 tests/aws/requests/iam/group_tests.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb
fog-1.0.0 tests/aws/requests/iam/group_tests.rb