1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[Brightbox] Expands on some tests

Starts checking fields that should have been altered by a request have.
This commit is contained in:
Paul Thornthwaite 2013-01-16 11:49:28 +00:00 committed by Paul Thornthwaite
parent 4e41e00fed
commit 0d93b3f0f9

View file

@ -40,6 +40,9 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
pending if Fog.mocking?
result = Fog::Compute[:brightbox].activate_console_server(server_id)
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
test("has set 'console_url'") { ! result["console_url"].empty? }
test("has set 'console_token'") { ! result["console_token"].empty? }
test("has set 'console_token_expires'") { ! result["console_token_expires"].empty? }
end
tests("#stop_server('#{server_id}')") do