Sha256: 85fbc7038547362c968d4e347b29b846933ef5317a97617495268541184edfe7

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

require "spec_helper"
require "aws/rikanjo/mode/rds"

describe 'AWS::Rikanjo::Mode::Rds' do

  it "build current price url" do
    a = Aws::RiKanjoo::Mode::Rds.new(
        region        = 'ap-northeast-1',
        instance_type = 'm3.large',
        ri_util       = 'light',
        multiaz       = false,
    )
    expect(a.price_url).to eq "https://a0.awsstatic.com/pricing/1/rds/mysql"
  end

  it "build current om price file" do
    a = Aws::RiKanjoo::Mode::Rds.new(
        region        = 'ap-northeast-1',
        instance_type = 'm2.xlarge',
        ri_util       = 'medium',
        multiaz       = false,
    )
    expect(a.om_price_file).to eq "pricing-standard-deployments.min.js"
  end

  it "build current om price file(multiaz)" do
    a = Aws::RiKanjoo::Mode::Rds.new(
        region        = 'ap-northeast-1',
        instance_type = 'm2.xlarge',
        ri_util       = 'medium',
        multiaz       = true,
    )
    expect(a.om_price_file).to eq "pricing-multiAZ-deployments.min.js"
  end

  it "build current ri price file" do
    a = Aws::RiKanjoo::Mode::Rds.new(
        region        = 'ap-northeast-1',
        instance_type = 'm2.xlarge',
        ri_util       = 'medium',
        multiaz       = true,
    )
    expect(a.ri_price_file).to eq "pricing-medium-utilization-reserved-instances.min.js"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-rikanjo-0.0.7 spec/lib/rikanjo_rds_spec.rb