Sha256: 8388af2e7470d0c6df41721b5bdc3083d2aa1596760c7ea70df880024ccedeb7

Contents?: true

Size: 575 Bytes

Versions: 6

Compression:

Stored size: 575 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

module ESP::Integration
  class CloudTrailEventTest < ESP::Integration::TestCase
    context ESP::CloudTrailEvent do
      context 'live calls' do
        context '.for_alert' do
          should 'return events for alert id' do
            report = ESP::Report.all.detect { |r| r.status == 'complete' }
            events = ESP::CloudTrailEvent.for_alert(report.alerts.last.id)

            assert_equal ESP::CloudTrailEvent, events.resource_class
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
esp_sdk-2.8.0 test/esp/integration/cloud_trail_event_integration_test.rb
esp_sdk-2.7.0 test/esp/integration/cloud_trail_event_integration_test.rb
esp_sdk-2.6.0 test/esp/integration/cloud_trail_event_integration_test.rb
esp_sdk-2.5.0 test/esp/integration/cloud_trail_event_integration_test.rb
esp_sdk-2.4.0 test/esp/integration/cloud_trail_event_integration_test.rb
esp_sdk-2.3.0 test/esp/integration/cloud_trail_event_integration_test.rb