-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Successfully implement and prove utility exercising all documented action (command and query) capabilities compliant with the usage documentation, including:
- All actions other than
helporversionrequire an environment variable,DO_API_TOKEN, to contain a Personal Access Token ("API key") belonging to the DigitalOcean user owning the resources being operated on (the Current User); - Query and report a list of all Droplets owned by the Current User;
- Query and report a list of all Floating IPs owned by the Current User;
- Command the DigitalOcean API to assign an existing Floating IP to a Droplet other than the one to which it is presently assigned;
- Display summarised and per-command detailed help for each command in the utility. This is largely taken care of by the CLI builder being used;
- Query and report a summary of a specific Droplet;
- Command a specific Droplet to power off immediately and unconditionally;
- Command a specific Droplet to power on;
- Command the DigitalOcean API to rename a specific Droplet to a valid name specified on the command line;
- Command a specific Droplet to gracefully shut down and power itself off; and
- Display version information about the utility.
Each command which acts upon a Droplet requires the Droplet ID to be specified using a --droplet-id= or -d command-line parameter. Failing to specify a Droplet ID must produce an appropriately-informative error message without performing any API actions.
API actions which report errors must cause an appropriately-informative error message to be reported, including the detail (missing or invalid API key, Droplet ID, Floating IP, or name) as appropriate.
Unit tests for API actions must use stubs and mocks rather than perform live API calls. Separate integration tests must test correct execution as well as all known error conditions for each command.
Completion of each and all of these tasks is required before releasing Version 0.9.0 of the Gem. Release of Version 1.0.0 of the Gem requires that that release has been tested in actual use, and any new issues rectified.