Sha256: ff2425fa7f45d12139094f1627818d8d2a899e4ee6f5e7fe86fa58065d8e6968
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' require 'tagenv' describe Tagenv::Ec2::Tag do before do end it "convert_tag_hash_1" do aws_tag_format = [ { key: 'Name', value: 'app01' }, { key: 'Stages', value: 'production' } ] expect_value = { 'Name' => 'app01', 'Stages' => 'production' } expect(Ec2::TagUtil.convert_tag_hash('', aws_tag_format)).to(eq(expect_value)) end it "convert_tag_hash_2" do aws_tag_format = [ { 'key' => 'Name', 'value' => 'app01' }, { 'key' => 'Stages', 'value' => 'production' } ] expect_value = { 'Name' => 'app01', 'Stages' => 'production' } expect(Ec2::TagUtil.convert_tag_hash('', aws_tag_format)).to(eq(expect_value)) end it "convert_tag_hash_prefix" do aws_tag_format = [ { 'key' => 'Name', 'value' => 'app01' }, { 'key' => 'Stages', 'value' => 'production' } ] expect_value = { 'EC2TAG_Name' => 'app01', 'EC2TAG_Stages' => 'production' } expect(Ec2::TagUtil.convert_tag_hash('EC2TAG_', aws_tag_format)).to(eq(expect_value)) end after do end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tagenv-0.1.7 | spec/ec2/tag_util_spec.rb |