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

28 lines
559 B
Ruby
Raw Normal View History

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