Sha256: 1ecb52ade09a6696768220283b7e3351a7027a23eaa93d7109fa21a9a77b7415

Contents?: true

Size: 960 Bytes

Versions: 10

Compression:

Stored size: 960 Bytes

Contents

require "spec_helper"

module Terraforming
  module Resource
    describe <%= camelize(resource) %> do
      let(:client) do
        # TODO: Select appropriate Client class from here:
        # http://docs.aws.amazon.com/sdkforruby/api/index.html
        Aws::SomeResource::Client.new(stub_responses: true)
      end

      describe ".tf" do
        xit "should generate tf" do
          expect(described_class.tf(client: client)).to eq <<-EOS
resource "aws_<%= resource %>" "resource_name" {

}

        EOS
        end
      end

      describe ".tfstate" do
        xit "should generate tfstate" do
          expect(described_class.tfstate(client: client)).to eq({
            "aws_<%= resource %>.resource_name" => {
              "type" => "aws_<%= resource %>",
              "primary" => {
                "id" => "",
                "attributes" => {
                }
              }
            }
          })
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
terraforming-0.18.0 templates/resource_spec.rb.erb
terraforming-0.17.0 templates/resource_spec.rb.erb
terraforming-0.16.0 templates/resource_spec.rb.erb
terraforming-0.15.0 templates/resource_spec.rb.erb
aws-insight-0.14.1 templates/resource_spec.rb.erb
aws-insight-0.14.0 templates/resource_spec.rb.erb
terraforming-0.14.0 templates/resource_spec.rb.erb
terraforming-0.13.2 templates/resource_spec.rb.erb
terraforming-0.13.1 templates/resource_spec.rb.erb
terraforming-0.13.0 templates/resource_spec.rb.erb