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

     1  @TPP
     2  Feature: renew action returns error if incorrect options are used
     3  
     4    Background:
     5      And the default aruba exit timeout is 180 seconds
     6  
     7    Scenario: where renew actions does not allow options: -cn, -c, -o, -ou, -l, -st
     8      Given I enroll random certificate in TPP with -no-prompt -pickup-id-file p.txt
     9        And it should retrieve certificate
    10        And it should write Pickup ID to the file "p.txt"
    11      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -cn xxx.venafi.example.com
    12      Then it should fail with "Renewal does not allow options: -cn, -c, -o, -ou, -l, -st"
    13      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -c  ccc
    14      Then it should fail with "Renewal does not allow options: -cn, -c, -o, -ou, -l, -st"
    15      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -o  ooo
    16      Then it should fail with "Renewal does not allow options: -cn, -c, -o, -ou, -l, -st"
    17      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -ou uuu
    18      Then it should fail with "Renewal does not allow options: -cn, -c, -o, -ou, -l, -st"
    19      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -l  lll
    20      Then it should fail with "Renewal does not allow options: -cn, -c, -o, -ou, -l, -st"
    21      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -st ttt
    22      Then it should fail with "Renewal does not allow options: -cn, -c, -o, -ou, -l, -st"
    23  
    24  
    25    Scenario: where it returns error if both -id and -thumbprint are used
    26      Given I enroll random certificate in TPP with -no-prompt -pickup-id-file p.txt -cert-file c.pem
    27        And it should retrieve certificate
    28        And it should write Pickup ID to the file "p.txt"
    29        And it should write certificate to the file named "c.pem"
    30      When I renew the certificate in TPP with -no-prompt -no-pickup -id file:p.txt -thumbprint file:c.pem
    31      Then it should fail with "-id and -thumbprint cannot be used at the same time"
    32  
    33  
    34  
    35