Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8207

Test error cases in for CLI command system tests

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:

      Description

      Many (most?) of the CLI system tests are missing tests of error cases.
      We should add test cases for common user errors in non-trivial commands:

      • CA Import (tests: incomplete chain, unspecified key alias in PKCS#12, missing key in PKCS#11 token, etc)
      • CA Cert Import
      • CA Init
      • CryptoToken Create

      The tests go into classes ending with CommandTest, for example CaImportCommandTest

      You may want to create separate sub-issues for each of the tasks before starting.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              samuel Samuel Lidén Borell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified