github.com/Venafi/vcert/v5@v5.10.2/aruba/features/enroll/pickup_id.feature (about)

     1  @@FAKE
     2  Feature: -pickup-id feature
     3  
     4    VEN-41305
     5  
     6    Background:
     7      And the default aruba exit timeout is 180 seconds
     8  
     9    Scenario: The PickupID is only present in STDOUT when the pickup-id-file parameter is not specified
    10      When I enroll a certificate in test-mode with -cn vfidev.example.com -no-prompt
    11      Then it should output Pickup ID
    12  
    13    Scenario: The PickupID is only present in STDOUT when the pickup-id-file parameter is not specified
    14      When I enroll a certificate in test-mode with -cn vfidev.example.com -no-prompt -file all.pem
    15      Then it should output Pickup ID
    16  
    17    Scenario: The PickupID is only present in STDOUT when the pickup-id-file parameter is not specified
    18      When I enroll a certificate in test-mode with -cn vfidev.example.com -no-prompt -pickup-id-file p.txt
    19      Then it should not output Pickup ID
    20      And it should write Pickup ID to a file named "p.txt"
    21  
    22    Scenario: If the pickup-id-file parameter is not specified and the -format parameter is "json", the "PickupID" is included in the JSON body written to STDOUT
    23      Given I enroll a certificate in test-mode with -no-prompt -cn vfidev.example.com -format json
    24      And the JSON response should have "Certificate"
    25      And the JSON response should have "PrivateKey"
    26      And the JSON response should have "Chain"
    27      And the JSON response should have "PickupId"
    28  
    29    Scenario: If the pickup-id-file parameter is not specified, the -format parameter is "json" and the -file parameter is specified, the "PickupID" is the only data present in the JSON body written to STDOUT
    30      Given I enroll a certificate in test-mode with -no-prompt -cn vfidev.example.com -format json -file all.json
    31      And the JSON response should not have "Certificate"
    32      And the JSON response should not have "PrivateKey"
    33      And the JSON response should not have "Chain"
    34      And the JSON response should have "PickupId"
    35  
    36    Scenario: requesting and retrieving certificate by Pickup ID
    37      When I enroll a certificate in test-mode with -cn vfidev.example.com -no-pickup -no-prompt
    38      Then it should post certificate request
    39      And it should output Pickup ID
    40      Then I retrieve the certificate from test-mode using the same Pickup ID
    41      And it should retrieve certificate
    42  
    43    Scenario: request a certificate and write Pickup ID to a file
    44      Given I enroll a certificate in test-mode with -cn vfidev.example.com -no-prompt -no-pickup -pickup-id-file p.txt
    45      Then it should post certificate request
    46      Then I retrieve the certificate from test-mode with -pickup-id-file p.txt
    47      And it should retrieve certificate
    48  
    49    Scenario: An error is returned if both the pickup-id and pickup-id-file parameters are specified for the pickup command
    50      Given I enroll a certificate in test-mode with -cn vfidev.example.com -no-prompt -no-pickup -pickup-id-file p.txt
    51      And I retrieve the certificate from test-mode with -pickup-id-file p.txt -pickup-id xxx
    52      Then the exit status should not be 0
    53      And the output should contain "Both -pickup-id and -pickup-id-file options cannot be specified at the same time"