Sha256: 872f086375d9745a6b10b79b2e17ed5baaca8b13b52d974ca65be2e01e5c5fb7

Contents?: true

Size: 635 Bytes

Versions: 4

Compression:

Stored size: 635 Bytes

Contents

require 'spec_helper'

describe VisualizeAws do
  context 'json' do
    let(:opts) {
      {
        :source_file => source_file,
        :filename => temp_file
      }
    }
    let(:source_file) {File.join(File.dirname(__FILE__), 'dummy.json')}
    let(:expected_file) {File.join(File.dirname(__FILE__), 'dummy.dot')}
    let(:temp_file) { Tempfile.new(%w(aws .dot)) }
    let(:config) {AwsConfig.new({groups: {'0.0.0.0/0' => '*'}})}

    it 'should parse json input', :integration => true do
      VisualizeAws.new(config, opts).unleash(temp_file.path)
      expect(File.read(expected_file)).to eq(temp_file.read)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws_security_viz-0.1.2.pre.alpha.pre.58 spec/integration/visualize_aws_spec.rb
aws_security_viz-0.1.1 spec/integration/visualize_aws_spec.rb
aws_security_viz-0.1.1.pre.alpha.pre.56 spec/integration/visualize_aws_spec.rb
aws_security_viz-0.1.0 spec/integration/visualize_aws_spec.rb