Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ee certs after web systemtests #813

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Stueypoo
Copy link
Contributor

Describe your changes

After running the "web" system tests, there are many test EE certs left behind. I've added some extra clean up code, generally at the time of the test CA removal.

I also found a few OCSP tests cases that have hard-coded references to port 8080. I've changed these to the the systemtest configuration file.

How has this been tested?

Ran "ant test:runweb" and checked for any faliures/errors, then checked the EJBCA's CertificateData table for any new certificates left behind..

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have kept the patch limited to only change the parts related to the patch
  • This change requires a documentation update

See also Contributing Guidelines.

Clean up EE certs after tests
Clean up EE certs after tests
Remove EE certs as a test CA is removed.
Remove EE certs as test CA is removed.
Replaced a hard-coded port reference of "8080"
Replacing hard-coded reference to port 8080.
Remove EE certs after testcase test08OcspEcdsaGood().
@primetomas
Copy link
Collaborator

Thanks for looking into this. We run tests in ephemeral containers nowadays so are not sensitive for left over certs. But clean-up is of course best practice still.

@primetomas
Copy link
Collaborator

Added some review comments.

@Stueypoo
Copy link
Contributor Author

Stueypoo commented Mar 1, 2025

Reverts files that no longer need a change. Much simpler!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants