File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,7 +158,10 @@ def initialize
158158 end
159159
160160 def additional_cloud_properties
161- { "root_device_name" => "/dev/vda1" }
161+ {
162+ "root_device_name" => "/dev/vda1" ,
163+ "nvme_support" => "supported"
164+ }
162165 end
163166 end
164167
Original file line number Diff line number Diff line change @@ -95,6 +95,24 @@ module Bosh::Stemcell
9595 end
9696 end
9797
98+ describe Infrastructure ::Alicloud do
99+ its ( :name ) { should eq ( "alicloud" ) }
100+ its ( :hypervisor ) { should eq ( "kvm" ) }
101+ its ( :default_disk_size ) { should eq ( 5120 ) }
102+ its ( :disk_formats ) { should eq ( [ "raw" ] ) }
103+ its ( :stemcell_formats ) { should eq ( [ "alicloud-raw" ] ) }
104+
105+ it { should eq Infrastructure . for ( "alicloud" ) }
106+ it { should_not eq Infrastructure . for ( "aws" ) }
107+
108+ it "has alicloud specific additional cloud properties" do
109+ expect ( subject . additional_cloud_properties ) . to eq ( {
110+ "root_device_name" => "/dev/vda1" ,
111+ "nvme_support" => "supported"
112+ } )
113+ end
114+ end
115+
98116 describe Infrastructure ::Google do
99117 its ( :name ) { should eq ( "google" ) }
100118 its ( :hypervisor ) { should eq ( "kvm" ) }
You can’t perform that action at this time.
0 commit comments