registry icon indicating copy to clipboard operation
registry copied to clipboard

Missing certificates during testing

Open OlegPhenomenon opened this issue 4 years ago • 1 comments

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'

OlegPhenomenon avatar Jun 10 '21 06:06 OlegPhenomenon

We could

  1. generate and add certificates to fixtures and
  2. 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.

yulgolem avatar Jun 10 '21 06:06 yulgolem