Sha256: 0e3e3449cc58634b2102bece3c25b25fb27ae094d74df9d1b25b87c92a942610

Contents?: true

Size: 1.17 KB

Versions: 36

Compression:

Stored size: 1.17 KB

Contents

require 'spec_helper'

class Convection::Model::Template::Resource
  describe EFSMountTarget do
    subject do
      parent = double(:template)
      allow(parent).to receive(:template).and_return(parent)

      described_class.new('MyEFSMountTarget', parent)
    end

    it 'allows FileSystemId to be set' do
      expect(subject.render['Properties']['FileSystemId']).to be_nil
      subject.file_system_id 'fs-1'
      expect(subject.render['Properties']['FileSystemId']).to eq('fs-1')
    end

    it 'allows IpAddress to be set' do
      expect(subject.render['Properties']['IpAddress']).to be_nil
      subject.ip_address '127.0.0.1'
      expect(subject.render['Properties']['IpAddress']).to eq('127.0.0.1')
    end

    it 'allows SecurityGroups to be set' do
      expect(subject.render['Properties']['SecurityGroups']).to be_nil
      subject.security_groups ['sg-1', 'sg-2']
      expect(subject.render['Properties']['SecurityGroups']).to eq(['sg-1', 'sg-2'])
    end

    it 'allows SubnetId to be set' do
      expect(subject.render['Properties']['SubnetId']).to be_nil
      subject.subnet_id 's-1'
      expect(subject.render['Properties']['SubnetId']).to eq('s-1')
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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