File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,10 @@ def initialize
141141 end
142142
143143 def additional_cloud_properties
144- { "root_device_name" => "/dev/vda1" }
144+ {
145+ "root_device_name" => "/dev/vda1" ,
146+ "nvme_support" => "supported"
147+ }
145148 end
146149 end
147150
Original file line number Diff line number Diff line change @@ -92,6 +92,24 @@ module Bosh::Stemcell
9292 end
9393 end
9494
95+ describe Infrastructure ::Alicloud do
96+ its ( :name ) { should eq ( "alicloud" ) }
97+ its ( :hypervisor ) { should eq ( "kvm" ) }
98+ its ( :default_disk_size ) { should eq ( 5120 ) }
99+ its ( :disk_formats ) { should eq ( [ "raw" ] ) }
100+ its ( :stemcell_formats ) { should eq ( [ "alicloud-raw" ] ) }
101+
102+ it { should eq Infrastructure . for ( "alicloud" ) }
103+ it { should_not eq Infrastructure . for ( "aws" ) }
104+
105+ it "has alicloud specific additional cloud properties" do
106+ expect ( subject . additional_cloud_properties ) . to eq ( {
107+ "root_device_name" => "/dev/vda1" ,
108+ "nvme_support" => "supported"
109+ } )
110+ end
111+ end
112+
95113 describe Infrastructure ::Google do
96114 its ( :name ) { should eq ( "google" ) }
97115 its ( :hypervisor ) { should eq ( "kvm" ) }
You can’t perform that action at this time.
0 commit comments