Sha256: 01c0a9c9a9708397437ddbdffdeb095818a0761aeb8749efe43680413242d428

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require "spec_helper"

describe Lono::Cfn do
  before(:all) do
    @env = "LONO_ROOT=#{ENV['LONO_ROOT']}"
    @args = "--noop"
  end

  describe "lono cfn" do
    it "create stack" do
      out = execute("#{@env} bin/lono cfn create my-stack #{@args}")
      expect(out).to include("Creating")
    end

    it "update stack" do
      out = execute("#{@env} bin/lono cfn update my-stack #{@args}")
      expect(out).to include("Updating")
    end

    it "delete stack" do
      out = execute("#{@env} bin/lono cfn delete my-stack #{@args}")
      expect(out).to include("Deleted")
    end

    it "preview stack" do
      out = execute("#{@env} bin/lono cfn preview my-stack #{@args}")
      expect(out).to include("CloudFormation preview")
    end

    it "diff stack" do
      out = execute("#{@env} bin/lono cfn diff my-stack #{@args}")
      expect(out).to include("diff")
    end

    it "download stack" do
      out = execute("#{@env} bin/lono cfn download my-stack #{@args}")
      expect(out).to include("Download")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lono-3.5.0 spec/lib/lono/cfn_spec.rb