8000 cucumber test fails when autosign.conf file exist · Issue #50 · danieldreier/autosign · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
cucumber test fails when autosign.conf file exist #50
Open
@logicminds

Description

@logicminds
Feature: Validate autosign key
  In order to sign puppet certificates automatically
  I want to validate autosign keys programatically
  So that I only grant access to allowed systems without needing manual authorization

  Scenario: Validate a certificate signing request                # features/validate.feature:6
    Given I set the environment variables to:                     # aruba-0.14.14/lib/aruba/cucumber/environment.rb:17
      | variable                  | value                 |
      | AUTOSIGN_TESTMODE         | true                  |
      | AUTOSIGN_TEST_SECRET      | secret                |
      | AUTOSIGN_TEST_LOGLEVEL    | info                  |
      | AUTOSIGN_TEST_JOURNALFILE | /tmp/autosign_journal |
    When I run `rm -f /tmp/autosign_journal`                      # aruba-0.14.14/lib/aruba/cucumber/command.rb:6
    And I run `autosign-validator i-7672fe81` interactively       # aruba-0.14.14/lib/aruba/cucumber/command.rb:29
    And I pipe in the file "../../fixtures/i-7672fe81.pem"        # aruba-0.14.14/lib/aruba/cucumber/command.rb:47
    Then the output should contain "token validated successfully" # aruba-0.14.14/lib/aruba/cucumber/command.rb:139
      expected "" to string includes: "token validated successfully" (RSpec::Expectations::ExpectationNotMetError)
      features/validate.feature:16:in `Then the output should contain "token validated successfully"'
    Then the exit status should be 0                

Removing any autosign.conf file will fix this test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0