Sha256: ec5e48d1a6e0aa179951745f2ab1183a89e40333569a29d6bd020555e8493c9f

Contents?: true

Size: 587 Bytes

Versions: 37

Compression:

Stored size: 587 Bytes

Contents

Shindo.tests("AWS::CloudWatch | metrics", ['aws', 'cloudwatch']) do

  tests('success') do
    pending # FIXME: the hardcoded instance id won't be available
    tests("#all").succeeds do
      Fog::AWS[:cloud_watch].metrics.all
    end
    instanceId = 'i-fd713391'
    metricName = 'CPUUtilization'
    namespace = 'AWS/EC2'
    tests("#get").returns({:dimensions=>[{"Name"=>"InstanceId", "Value"=>instanceId}], :name=>metricName, :namespace=>namespace}) do
      Fog::AWS[:cloud_watch].metrics.get(namespace, metricName, {'InstanceId' => instanceId}).attributes
    end
    
  end

end

Version data entries

37 entries across 37 versions & 12 rubygems

Version Path
fog-nirvanix-1.8.2 tests/aws/models/cloud_watch/metrics_tests.rb
fog-nirvanix-1.8.1 tests/aws/models/cloud_watch/metrics_tests.rb
fog-parser-fix-1.6.1 tests/aws/models/cloud_watch/metrics_tests.rb
fog-test-again-1.6.0 tests/aws/models/cloud_watch/metrics_tests.rb
fog-parser-fix-1.6.0 tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.8.0 tests/aws/models/cloud_watch/metrics_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.7.0 tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.6.0 tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.5.0 tests/aws/models/cloud_watch/metrics_tests.rb
rackspace-fog-1.4.2 tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.4.0 tests/aws/models/cloud_watch/metrics_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/aws/models/cloud_watch/metrics_tests.rb
michiels-fog-1.3.1 tests/aws/models/cloud_watch/metrics_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/aws/models/cloud_watch/metrics_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.3.1 tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.3.0 tests/aws/models/cloud_watch/metrics_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/aws/models/cloud_watch/metrics_tests.rb
fog-1.2.0 tests/aws/models/cloud_watch/metrics_tests.rb