Contents

CLI

@overriak

In order to remotely administer the Overriak service from the command line as a registered user with an API key I should be able to access the remote API via the CLI.

Scenario: Access help

  • When I run `overriaktion --help`
  • Then the exit status should be 0
  • And the output should contain:
    text
    Usage: overriaktion api_key operation [cluster_name] [node_uri]
    
    Client gem for the Overriak service.

Scenario: Throw error with invalid switch

  • When I run `overriaktion api_key thingy`
  • Then the exit status should be 0
  • And the output should contain:
    text
    'thingy' is not a valid operation

Scenario: List riak clusters

  • When I run `overriaktion api_key list`
  • Then the exit status should be 0
  • And the output should contain:
    text
    Localhost
      - root@127.0.0.1:8098

Scenario: Sample a riak node in a riak cluster

  • When I run `overriaktion api_key sample Localhost root@127.0.0.1:8098`
  • Then the exit status should be 0
  • And the output should contain:
    text
    OK

Source: features/cli.feature at commit eea407ad, Overriaktion (MIT license).