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

Resolve EjbcaWSTest dependencies

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Testing

      Description

      Tests methods in EjbcaWSTest are highly dependent on each other, hence executed in name order. E.g. lots of tests depend on "test03_1GeneratePkcs10()" since this one created user is reused among a bunch of other test cases. If this test fails, following cases will fail (with false alert) as a result.

      Additionally, adding new tests is messy due to this and other dependencies. Each test case should be modifiable without breaking other tests. Suggesting to add all test prerequisite in '@Before'  / '@BeforeClass' method instead.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            hsunmark Henrik Sunmark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified