Sha256: de5f357a94af68107590a8d95095c79a09d353d79234bea8269a3ee79704cf2c

Contents?: true

Size: 957 Bytes

Versions: 68

Compression:

Stored size: 957 Bytes

Contents

require 'spec_helper'

class Convection::Model::Template::Resource
  describe ElastiCacheParameterGroup do
    let(:elasticache_template) do
      Convection.template do
        description 'Elasticache Test Template'

        elasticache_parameter_group 'MyRedisParamGroup' do
          cache_parameter_group_family 'redis2.8'
          description 'Redis cache parameter group'
          parameter 'my_param_key', 'my_param_value'
          parameter 'my_other_key', 'my_other_value'
        end
      end
    end

    subject do
      template_json
        .fetch('Resources')
        .fetch('MyRedisParamGroup')
        .fetch('Properties')
    end

    it 'has multiple parameters ("Properties")' do
      expect(subject['Properties']).to include(
        'my_param_key' => 'my_param_value',
        'my_other_key' => 'my_other_value'
      )
    end

    private

    def template_json
      JSON.parse(elasticache_template.to_json)
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
convection-2.3.1 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.3.0 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.29 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.28.pre.beta.2 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.28.pre.beta.1 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.27 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.26 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.25 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.24 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.23 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.22 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.21 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.20 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.19 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.18 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.17 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.16 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.15 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.14 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb
convection-2.2.13 spec/convection/model/template/resource/elasticache_parameter_group_spec.rb