Sha256: 692bab9f8226837c62876231997a750d5d275aaaed79c2d426c483fbf38cdae1

Contents?: true

Size: 940 Bytes

Versions: 15

Compression:

Stored size: 940 Bytes

Contents

require 'cloud_formation/bridge/resources/cloud_formation_outputs'
require 'cloud_formation/bridge/poller'

describe CloudFormation::Bridge::Resources::CloudFormationOutputs do

  include CloudFormationCreator

  it 'should correctly pull the outputs from the CFN', integration: true do

    with_main_formation do |stack, poller, outputs|
      params = {
        "Name" => stack.name,
        "EntryTopic" => outputs["Topic"],
        "EntryQueue" => outputs["Queue"],
      }

      with_cloud_formation('outputs-formation', params, false) do |outputs_stack|

        wait_until "messages available" do
          poller.visible_messages > 0
        end

        poller.poll

        wait_until_complete(outputs_stack)

        expected_outputs = stack_outputs(outputs_stack)

        expect(outputs["Topic"]).to eq(expected_outputs["Topic"])
        expect(outputs["Queue"]).to eq(expected_outputs["Queue"])
      end
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cfn-bridge-0.0.16 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.15 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.14 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.13 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.11 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.10 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.9 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.8 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.7 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.6 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.5 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.4 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.3 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.2 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb
cfn-bridge-0.0.1 spec/lib/cloud_formation/bridge/resources/cloud_formation_outputs_spec.rb