Sha256: d0f16d2dd03b806d54777bb6f47c9089b4d3d019a3f5cf75aaa2ce99f75a4cd0

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

Feature: gcli key

  @commands
  Scenario: Available commands
    When I run `gcli key`
    Then the exit status should be 0
      And the output should contain "gcli key create"
      And the output should contain "gcli key delete"
      And the output should contain "gcli key edit"
      And the output should contain "gcli key get"
      And the output should contain "gcli key list"

  Scenario: List keys
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/keys') { json [{:key => "ssh"}] }
    """
    When I run `gcli key ls wycats thor`
    Then the exit status should be 0

  Scenario: Get key
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/keys/1') { json :key => "ssh" }
    """
    When I run `gcli key get wycats thor 1`
    Then the exit status should be 0

  Scenario: Create key
    Given the GitHub API server:
    """
    post('/repos/wycats/thor/keys') { json :key => "ssh" }
    """
    When I run `gcli key create wycats thor --params=title:octo key:fh34d55`
    Then the exit status should be 0

  Scenario: Edit key
    Given the GitHub API server:
    """
    patch('/repos/wycats/thor/keys/1') { json :key => "ssh" }
    """
    When I run `gcli key edit wycats thor 1 --params=title:octo key:fh34d55`
    Then the exit status should be 0

  Scenario: Delete key
    Given the GitHub API server:
    """
    delete('/repos/wycats/thor/keys/1') { status 200 }
    """
    When I run `gcli key del wycats thor 1`
    Then the exit status should be 0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_cli-0.5.4 features/key.feature