Sha256: 590254d556651fb701039de43823c0012634a17204ca25beb0d43965b2a7e0f5

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

Feature: How to Overcome Your Fear of Authority

  Scenario: run the main script with the auth token set in the env

    Given the "SEMAPHORE_AUTH_TOKEN" env variable is set
     When I run `git-semaphore --check-auth` in a git working dir
     Then the exit status should be 0
      And the stderr should contain exactly:
        """
        """

  Scenario: run the main script with the auth token set in git config

    Given "semaphore.authtoken" git config is set for git repo "blegga"
     When I run `git-semaphore --check-auth` in "blegga" directory
     Then the exit status should be 0
      And the stderr should contain exactly:
        """
        """

  Scenario: run the main script with the auth token not set in the env

    Given the "SEMAPHORE_AUTH_TOKEN" env variable is not set
      And "semaphore.authtoken" git config is not set for git repo "blegga"
     When I run `git-semaphore --check-auth` in "blegga" directory
     Then the exit status should be 255
      And the stderr should contain exactly:
        """
        Please set - and export - the SEMAPHORE_AUTH_TOKEN env variable
        Alternatively, set semaphore.authtoken in your local git config

        """

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
git-semaphore-0.0.9 features/semaphore_auth_token.feature
git-semaphore-0.0.7 features/semaphore_auth_token.feature
git-semaphore-0.0.6 features/semaphore_auth_token.feature
git-semaphore-0.0.5 features/semaphore_auth_token.feature
git-semaphore-0.0.4 features/semaphore_auth_token.feature
git-semaphore-0.0.3 features/semaphore_auth_token.feature
git-semaphore-0.0.2 features/semaphore_auth_token.feature