Open
Description
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
Labels
No labels