Affects Version/s: EJBCA 7.2.0
Fix Version/s: None
Component/s: PKI core
As a tester, I would like to programmatically call rest endpoints that can be used both as a test step or as a utility method.
Example: For a given EE, username, password, KeyAlg and KeySpec, I wish to create certificates using enrollKeys.
Results: A certificate is generated for the given user.
a. To test Rest endpoints as outlined in the documentation
b. To use as a utility method to support tests that require end entity certificates.
How to utilize, given a test that has the step:
DESCRIPTION: Create an end entity certificate using the username
CLASS: RestCertificateHelper (example)
NOTE: Ideally these parameters are passed from a testmanagement system and not directly from a JUnit script.
URL: The ip address or domain name for the restcall should be defined in the properties.
e.g. appserver.domainname = localhost or appserver.domainname = 192.168.56.7 or appserver.domainname = bugsbunny.primekey.com.
Due to the fact this method should support as a utility method AND test, it should not use internal calls to the source. It should always verify functionality as utilized by a customer. If a customer is not instructed to use NetBeans then this method should not be constructed using NetBeans.
Other methods will be: