registry
registry copied to clipboard
Missing certificates during testing
When running system tests for the xml console, a message appears stating that CONNECTION ERROR - Is the EPP server running?
After studying the reasons for this, the message, I found out that the error is in the absence of the necessary certificates.
Errno::ENOENT: No such file or directory @ rb_sysopen - test/fixtures/files/webclient/webclient.crt.pem
from /opt/webapps/app/app/models/depp/user.rb:18:in read'
Caused by Errno::ENOENT: No such file or directory @ rb_sysopen - test/fixtures/files/webclient/webclient.crt.pem
from /opt/webapps/app/app/models/depp/user.rb:18:inread'
We could
- generate and add certificates to fixtures and
- stub/mock the request to external service. The fact what this service uses our codebase is doesn't really matter - that's an external service and, I suppose, all epp-requests should be mocked.