Sha256: 7d2fa550433722c0e14240a4887181a431f4528e4a0e088d00ae81da5550a27b

Contents?: true

Size: 1.64 KB

Versions: 79

Compression:

Stored size: 1.64 KB

Contents

Shindo.tests('AWS::SQS | queue requests', ['aws']) do

  tests('success') do

    create_queue_format = AWS::SQS::Formats::BASIC.merge({
      'QueueUrl' => String
    })

    tests("#create_queue('fog_queue_tests')").formats(create_queue_format) do
      data = Fog::AWS[:sqs].create_queue('fog_queue_tests').body
      @queue_url = data['QueueUrl']
      data
    end

    list_queues_format = AWS::SQS::Formats::BASIC.merge({
      'QueueUrls' => [String]
    })

    tests("#list_queues").formats(list_queues_format) do
      Fog::AWS[:sqs].list_queues.body
    end

    tests("#set_queue_attributes('#{@queue_url}', 'VisibilityTimeout', 60)").formats(AWS::SQS::Formats::BASIC) do
      Fog::AWS[:sqs].set_queue_attributes(@queue_url, 'VisibilityTimeout', 60).body
    end

    get_queue_attributes_format = AWS::SQS::Formats::BASIC.merge({
      'Attributes' => {
        'ApproximateNumberOfMessages'           => Integer,
        'ApproximateNumberOfMessagesNotVisible' => Integer,
        'CreatedTimestamp'                      => Time,
        'MaximumMessageSize'                    => Integer,
        'LastModifiedTimestamp'                 => Time,
        'MessageRetentionPeriod'                => Integer,
        'QueueArn'                              => String,
        'VisibilityTimeout'                     => Integer
      }
    })

    tests("#get_queue_attributes('#{@queue_url}', 'All')").formats(get_queue_attributes_format) do
      Fog::AWS[:sqs].get_queue_attributes(@queue_url, 'All').body
    end

    tests("#delete_queue('#{@queue_url}')").formats(AWS::SQS::Formats::BASIC) do
      Fog::AWS[:sqs].delete_queue(@queue_url).body
    end

  end

end

Version data entries

79 entries across 77 versions & 6 rubygems

Version Path
fog-aws-0.9.0 tests/requests/sqs/queue_tests.rb
fog-aws-0.8.1 tests/requests/sqs/queue_tests.rb
fog-aws-0.8.0 tests/requests/sqs/queue_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/tests/requests/sqs/queue_tests.rb
fog-aws-0.7.6 tests/requests/sqs/queue_tests.rb
fog-aws-0.7.5 tests/requests/sqs/queue_tests.rb
fog-aws-0.7.4 tests/requests/sqs/queue_tests.rb
fog-aws-0.7.3 tests/requests/sqs/queue_tests.rb
fog-aws-0.7.2 tests/requests/sqs/queue_tests.rb
fog-aws-0.6.0 tests/requests/sqs/queue_tests.rb
fog-aws-0.5.0 tests/requests/sqs/queue_tests.rb
fog-aws-0.4.1 tests/requests/sqs/queue_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/aws/requests/sqs/queue_tests.rb
fog-aws-0.4.0 tests/requests/sqs/queue_tests.rb
fog-aws-0.3.0 tests/requests/sqs/queue_tests.rb
fog-aws-0.2.2 tests/requests/sqs/queue_tests.rb
fog-aws-0.2.0 tests/requests/sqs/queue_tests.rb
fog-aws-0.1.2 tests/requests/sqs/queue_tests.rb
fog-aws-0.1.1 tests/requests/sqs/queue_tests.rb
fog-aws-0.1.0 tests/requests/sqs/queue_tests.rb