Sha256: fa6ecb08408edb7f3118283ca29fde91c9b413c4cbafa675542061686211d0ff

Contents?: true

Size: 968 Bytes

Versions: 36

Compression:

Stored size: 968 Bytes

Contents

require 'spec_helper'

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

      described_class.new('MyEFSFileSystem', parent)
    end

    it 'allows FileSystemTags to be set' do
      expected_tags = []
      expected_tags << { 'Key' => 'key-1', 'Value' => 'value-1' }
      expected_tags << { 'Key' => 'key-2', 'Value' => 'value-2' }

      expect(subject.render['Properties']['FileSystemTags']).to be_nil
      subject.tag 'key-1', 'value-1'
      subject.file_system_tag 'key-2', 'value-2'
      expect(subject.render['Properties']['FileSystemTags']).to eq(expected_tags)
    end

    it 'allows PerformanceMode to be set' do
      expect(subject.render['Properties']['PerformanceMode']).to be_nil
      subject.performance_mode 'maxIO'
      expect(subject.render['Properties']['PerformanceMode']).to eq('maxIO')
    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_file_system_spec.rb
convection-2.3.0 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.29 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.28.pre.beta.2 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.28.pre.beta.1 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.27 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.26 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.25 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.24 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.23 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.22 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.21 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.20 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.19 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.18 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.17 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.16 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.15 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.14 spec/convection/model/template/resource/aws_efs_file_system_spec.rb
convection-2.2.13 spec/convection/model/template/resource/aws_efs_file_system_spec.rb