1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/google/requests/sql/flag_tests.rb
Ferran Rodenas 716f474545 [google|sql] Add support for Flags
- Add models, requests and tests for Flags
2014-07-29 19:46:20 -07:00

27 lines
559 B
Ruby

Shindo.tests('Fog::Google[:sql] | flag requests', ['google']) do
@sql = Fog::Google[:sql]
@get_flag_format = {
'name' => String,
'allowedStringValues' => Fog::Nullable::Array,
'appliesTo' => Array,
'kind' => String,
'maxValue' => Fog::Nullable::String,
'minValue' => Fog::Nullable::String,
'type' => String,
}
@list_flags_format = {
'kind' => String,
'items' => [@get_flag_format],
}
tests('success') do
tests('#list_flags').formats(@list_flags_format) do
@sql.list_flags.body
end
end
end