Sha256: 71f1e427cfb76bc0e175773b698c22d9dbf164eccd91e6559eb25209f8fbab66

Contents?: true

Size: 1.42 KB

Versions: 7

Compression:

Stored size: 1.42 KB

Contents

Feature: gcli key

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

  Scenario: List keys
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/keys') { status 200 }
    """
    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') { status 200 }
    """
    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') { status 200 }
    """
    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') { status 200 }
    """
    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

7 entries across 7 versions & 1 rubygems

Version Path
github_cli-0.6.2 features/key.feature
github_cli-0.6.1 features/key.feature
github_cli-0.6.0 features/key.feature
github_cli-0.5.9 features/key.feature
github_cli-0.5.8 features/key.feature
github_cli-0.5.7 features/key.feature
github_cli-0.5.6 features/key.feature