blackbaud / skyux-sdk-builder-plugin-pact

MIT License
0 stars 0 forks source link

Need support for SSL config options #2

Open Blackbaud-AlexKingman opened 4 years ago

Blackbaud-AlexKingman commented 4 years ago

In the past, e2e Pact testing allowed for using SSL mock provider servers [example]. After switching to skyux-sdk-builder-plugin-pact, it appears the SSL properties no longer work.

When using the following settings in your skyuxconfig.json file:

"pacts": [
    {
       ...  
       "ssl": true,
       "sslcert": "./node_modules/@blackbaud/skyux-builder/ssl/server.crt",
       "sslkey": "./node_modules/@blackbaud/skyux-builder/ssl/server.key"
       ...
    }
  ]

with an https url for the provider's server, the Pact server generates the following error

ERROR: 'Unhandled Promise rejection:', 'Unable to connect to "**http**://localhost:8106/interactions"

See more information here: https://github.com/blackbaud/skyux-sdk-builder/issues/43

Blackbaud-AlexKingman commented 4 years ago

Note: I ran some preliminary tests in isolation with only pact-js and the pact-karma libraries (which builder uses under the hood).

I need to investigate more, but this issue was happening even with SKYUX out of the picture. If anyone has some time and could confirm this, we might need to take it to the pact-foundation to find out more.