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.2.12 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.11 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.10 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.9 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.8 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.7 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.6 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.5 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.4 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.3 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.2 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.1 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.2.0 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.1.2 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.1.1 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
convection-2.1.0 spec/convection/model/template/resource/aws_efs_mount_target_spec.rb