list ssh_keys and create disk
add models and requests for create computer
create server at once
add bin and route file
update create_with
write getting_started wip. and create helper methods.
add sakura to mock_helper
add bin and route file
write getting_started wip. and create helper methods.
add mocks and test
create tests and write getting started
writenig provider for sakuracloud ,wip
list ssh_keys and create disk
add models and requests for create computer
create server at once
add bin and route file
update create_with
write getting_started wip. and create helper methods.
add sakura to mock_helper
add bin and route file
write getting_started wip. and create helper methods.
add mocks and test
create tests and write getting started
mv getting_started to docs
mv getting_started to docs
use snake_case for models
fix: wrong usage of :aliases
update doc. replace to snake_case from class
update mocks format
Fix: remove commas for Ruby 1.8.7
duplicate example
use create method with option if atatch volume
remove empty line (checking travis works..)
fix args for core/provider.rb#service
- add tags for `rake test`
- use `tests/.fog` not bespoke environment variables
- vapp_life_cycle_tests made pending; extra requests arise after
71a303415b
* Handle case where droplet is locked pending events, DO support says
they are planning to expose something in the api to show these events.
Until then this is the best we have.
* Whitespace cleanup
* Refactor test helpers
* Use the collection helper for the digitalocean servers collection
Created Fog::Schema::DataValidator to contain the matching logic for the
data based schemas used by the tests.
This is tested in isolation and removes dependency on Shindo. Also
exposes a #message call to get the last message set by the validator to
avoid coupling the test output to the internals.
Tests for the #data_matches_schema helper are added as well.
* Adds and documents Shindo::Tests#data_matches_schema
* Deprecates Shindo::Tests#format method
* Strict mode is replace by expandable options
* Uses Fog::Logger instead of p for debug output
* Shindo::Tests#formats_kernel removed (was private)
* Shindo::Tests#confirm_data_matches_schema added
* #confirm_data_matches_schema uses yield
Related to issue #1477
Shindo::Tests#formats incorrectly treated missing keys as valid if their
value is allowed to be "nullable" or NilClass. These keys are not
optional. They are required but can be the value nil or the Nullable
class.
Unfortunately due to lack of documentation and a bug in the code the
current Nullable classes can be interpreted as optional and work as such.
This replaces the old format checker with a new version that supports
options to control the matching behaviour related to extra keys in
either the data or the schema.
This corrects the behaviour so extra keys in either the schema or the
supplied data fail the check unless non strict has been used.
A legacy version of the #formats test is in place that passes the
options so it behaves as the old version does.
Premptive patches have been added to fix those tests that were already
broken but passed the original checks.
Tests for #formats (the public interface) have been added however there
are no fail tests due to the way Shindo operates.
Adds a few more test cases and rewords the descriptions in preparation
to refactor the #format_kernels method.
Changes the tests and schema keys to be String based since decoding the
values rarely return Symbols.