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

     1  @TPP
     2  Feature: certificate revocation
     3  
     4    As a user
     5    I want to revoke certificates
     6  
     7    Background:
     8      And the default aruba exit timeout is 180 seconds
     9  
    10    Scenario: revoking certificate using empty -id
    11      Then I revoke the certificate from TPP
    12      Then the output should contain "Certificate DN or Thumbprint is required to revoke the certificate"
    13  
    14    Scenario: revoking certificate that does not exist
    15      When I revoke the certificate from TPP with -id xxx
    16      Then it should fail with "Certificate does not exist"
    17  
    18    Scenario: revoking certificate with incorrect reason
    19      When I revoke the certificate from TPP with -id someId -reason xxx
    20      Then it should fail with "xxx is not valid revocation reason"
    21  
    22    Scenario: revoking certificate using -id flag
    23      Given I enroll random certificate from TPP with -no-prompt
    24      And it should retrieve certificate
    25      When I revoke the certificate from TPP using the same Pickup ID
    26      Then the output should contain "Successfully created revocation request for"
    27      When I revoke the certificate from TPP using the same Pickup ID with -reason none
    28      Then the output should contain "Successfully created revocation request for"
    29  
    30    Scenario: revoking certificate using -id file:*.txt flag
    31      Given I enroll random certificate from TPP with -no-prompt -pickup-id-file p.txt
    32      And it should retrieve certificate
    33      Then I revoke the certificate from TPP with -id file:p.txt
    34  
    35    Scenario Outline: revoking certificates with different reasons
    36      Given I enroll random certificate from TPP with -no-prompt
    37      And I revoke the certificate from TPP using the same Pickup ID with -reason <reason>
    38      Then the output should contain "Successfully created revocation request for"
    39      Examples:
    40        | reason                  |
    41        | none                    |
    42        | key-compromise          |
    43        | ca-compromise           |
    44        | affiliation-changed     |
    45        | superseded              |
    46        | cessation-of-operation  |