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

As a tester, I would like to call Rest endpoints for both testing and utilities that will work internally and externally of a docker image.

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: EJBCA 7.2.0
    • Fix Version/s: None
    • Component/s: PKI core
    • Labels:
      None
    • Environment:
      NA

      Description

      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.

      Purpose:
      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:

      TESTSTEP 1
      DESCRIPTION: Create an end entity certificate using the username
      CLASS: RestCertificateHelper (example)
      METHOD: enrollKeystoreUsingHttps
      TESTDATA: username;password;RSA;2048

      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.

      https://bugsbunny.primekey.com:8443/ejbca/v1/certificate/enrollKeystore

      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:
      enrollKeystoreUsingJava
      enrollKeystoreUsingCplus

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              margarett Margaret Thomas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: