The unit tests Pkcs11SlotLabelTest and Pkcs11WrapperTest assume that the following slots/tokens exist:
- Slot number 1
- Slot index 1
- Slot with label "ejbca"
The purpose of the tests is to check that you can use different types of slot/token references, so they should still do that.
To do as part of this issue:
- Add properties in systemtests.properties for these things (currently you can only reference the HSM slot in one of these ways in this file). If absent, the affected tests should be skipped with an explanatory message instead of failing.
- Add the properties in jenkins-files and in on the trunk job on old Jenkins.
Currently, this limitation means that the tests cannot be run on SoftHSM2 since it uses random slot numbers, and no "slot 1" exists.