eca-2267 manual tests --------------------- Describes manual tests to make sure the GUI behaves correctly. ------------------------------------------------------------------------------- Test case 1: Default value for "Use extensiondata" in End Entity Profile ------------ 1) Go to EJBCA Admin Web -> RA Functions -> Edit End Entity Profiles 2) Add Profile, write: MTPROFILE_NOEXTENSIONDATA 3) Click Add 4) Select "MT_NOEXTENSIONDATA" 5) Click Edit End Entity Profile Check if the checkbox for "Custom certificate extension data Use" is checked [] Expected value: false 6) Click Cancel ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Test case 2: Changing value for "Use extensiondata" in End Entity Profile ------------ 1) Go to EJBCA Admin Web -> RA Functions -> Edit End Entity Profiles 2) Add Profile, write: MTPROFILE_EXTENSIONDATA 3) Click Add 4) Select "MT_EXTENSIONDATA" 5) Click Edit End Entity Profile 6) Click the checkbox after "Custom certificate extension data Use" so that it is checked 7) Click Save 8) Select "MT_EXTENSIONDATA" 9) Click Edit End Entity Profile 10) Check if the checkbox for "Custom certificate extension data Use" is checked [] Expected value: true 11) Click Cancel ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Test case 3: Adding end entities ------------ First run Test case 1 and 2, then: 1) Go to EJBCA Admin Web -> RA Functions -> Add End Entity 2) Change to End Entity Profile: EMPTY (unless already visable) 3) Check if the text area for "Certificate Extension Data" is visible [] Expected value: false 4) Fill in: Username: mt_empty Password: foo123 Confirm Password: foo123 CN, Common name: mt_empty 5) Click Add 4) Change to End Entity Profile: MT_EXTENSIONDATA 5) Check if the text area for "Certificate Extension Data" is visible [] Expected value: true 6) Fill in: Username: mt_extensiondata_null Password: foo123 Confirm Password: foo123 CN, Common name: mt_extensiondata_null 7) Click Add 8) Fill in: Username: mt_extensiondata Password: foo123 Confirm Password: foo123 CN, Common name: mt_extensiondata Certificate Extension Data (2 lines): 1.2.3.4.value = Value for 1.2.3.4 5.6.7.8=aabbccdd 9) Click Add 10) Change to End Entity Profile: MT_NOEXTENSIONDATA 11) Check if the text area for "Certificate Extension Data" is visible [] Expected value: false 12) Fill in: Username: mt_noextensiondata Password: foo123 Confirm Password: foo123 CN, Common name: mt_noextensiondata 13) Click Add ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Test case 4: Viewing end entities ------------ First run test case 3, then: 4.1) Go to EJBCA Admin Web -> RA Functions -> Search/Edit End Entities -> Advanced Mode 4.2) Choose "Username" "Begins with" "mt_" and click Search 4.3) Click View End Entity on mt_empty and check if there is an "Certificate Extension Data" field [] Expected result: no field 4.4 Click View End Entity on mt_extensiondata_null and check if there is an "Certificate Extension Data" field [] Expected result: field present but empty 4.5) Click View End Entity on mt_extensiondata and check if there is an "Certificate Extension Data" field [] Expected result: field present with with 2 rows and 2 columns of data: 1.2.3.4.value Value for 1.2.3.4 5.6.7.8 aabbccdd 4.6) Click View End Entity on mt_noextensiondata and check if there is an "Certificate Extension Data" field [] Expected result: no field 4.7) In a new tab/window: Edit End Entity Profile MT_EXTENSIONDATA and uncheck "Certificate Extension Data" 4.8) Click View End Entity on mt_extensiondata and check if there is an "Certificate Extension Data" field [] Expected result: field present with with 2 rows and 2 columns of data: 1.2.3.4.value Value for 1.2.3.4 5.6.7.8 aabbccdd ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Test case 5: Edit end entities ------------ First run test case 4, then: 5.1) Go to EJBCA Admin Web -> RA Functions -> Search/Edit End Entities -> Advanced Mode 5.2) Choose "Username" "Begins with" "mt_" and click Search 5.3) Click Edit End Entity on mt_extensiondata and check if there is a text area for "Certificate Extension Data" [] Expected result: no field 5.4) In a new tab/window: Edit End Entity Profile MT_EXTENSIONDATA and check "Certificate Extension Data" 5.3) Click Edit End Entity on mt_extensiondata and check if there is a text area for "Certificate Extension Data" [] Expected result: field present with content: 1.2.3.4.value=Value for 1.2.3.4 5.6.7.8=aabbccdd 5.4) Change "5.6.7.8=aabbccdd" to "1.5.6.7.8=aabbccdd" and click Save and Close the window 5.5) Again click Edit End Entity on mt_extensiondata and check if the value is present [] Expected result: field present with the new content: 1.2.3.4.value=Value for 1.2.3.4 1.5.6.7.8=aabbccdd ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Optionally (covered by unit tests): Test case 5: Issue certificate with certificate extension with RAW and dynamic value ------------------------------------------------ Run the other tests first and then: 1) Edit src/java/certextensions.properties adding and rebuilding and deploying EJBCA: id1.oid = 1.5.6.7.8 id1.classpath=org.cesecore.certificates.certificate.certextensions.BasicCertificateExtension id1.displayname=MT_EXTENSION id1.used=true id1.translatable=false id1.critical=false id1.property.encoding=RAW id1.property.dynamic=true 2) CA Functions -> Edit Certificate Profiles 3) Select ENDENTITY, write: "MT_EXTENSIONDATA" and click "Use selected as template" 4) Select MT_EXTENSIONDATA and click Edit Certificate Profile 5) In the Used Custom Certificate Extensions list select MT_EXTENSION and click Save 6) RA Functions -> Edit End Entity Profiles 7) Select MT_EXTENSIONDATA and click Edit End Entity Profile 8) Select MT_EXTENSIONDATA in the list of available certificate profiles and as the default certificate profile and click Save 9) Go to EJBCA Public Web 10) Enroll -> Create Browser Certificate 11) Fill in and lick OK: Username: mt_extensiondata Password: foo123 12) Make sure Certificate Profile is MT_EXTENSION and click OK 13) Save the certificate in binary format and do an "asn1dump" on it and check if the OBJECT IDENTIFIER '1 5 6 7 8' is present and its value [] Expected present and directly followed on the next line by "OCTET STRING AA BB CC DD" -------------------------------------------------------------------------------