Skip to content

Commit ddd82fe

Browse files
committed
add test
1 parent d8b6463 commit ddd82fe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spec/VirtualServerOrder_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@
175175
expect(subject.virtual_guest_template['networkComponents']).to eq [{'maxSpeed' => 1000}]
176176
end
177177

178+
it "puts the bootMode attribute into the template as supplementalCreateObjectOptions.bootMode" do
179+
expect(subject.virtual_guest_template['supplementalCreateObjectOptions']).to be_nil
180+
subject.supplementalCreateObjectOptions = {"bootMode" => 'HVM'}
181+
expect(subject.virtual_guest_template['supplementalCreateObjectOptions']).to eq ({"bootMode" => "HVM"})
182+
end
183+
178184
it "calls the softlayer API to validate an order template" do
179185
client = SoftLayer::Client.new(:username => "fakeusername", :api_key => 'DEADBEEFBADF00D')
180186

0 commit comments

Comments
 (0)