20
Views
4
Comments
[Testing Framework] Is it possible to changing REST and SOAP URLs?
testing-framework
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi Leonardo, 

We use the on-premises OutSystems Platform.

In the TestConsoleCore module of the Testing Framework, REST and SOAP connections are designed to use localhost, but in our environment, we use SSL offloading, so we cannot directly access localhost via https.

We tried changing the Effective URL from ServiceCenter, but within the OnBeforeRequestAdvanced server action, the FQDN is replaced with the deployment zone value, so in our environment, it ultimately reverts back to localhost.

As a temporary solution, we are forcing the replacement of the value in URL_Parse.ParsedURL.ParsedURL.Host to keep the application running. 

Is it possible to customize the application so that developers can freely change the connection URL later without directly modifying the action?

Takashi

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Takashi.

The code should work even in that situation. There is some code in the OnBeforeRequest that will ignore SSL certificate errors if it detects that the hostname might not have a proper certificate installed.

For the certificate to be ignored, both conditions need to be met:

* The deployment zone (where the test unit is deployed) has the setting EnableHttps turned off.

* The deployment zone address is an IP address or a machine name (a domain without the "." character).


In any other scenario, Testing Framework assumes the deployment zone is correctly configured for SSL and has a valid certificate installed, in particular:

* If the deployment zone is configured with EnableHttps turned on (regardless of the deployment zone address).

* If the deployment zone address is a FQDN (domain name containing at least one "." character).


Please check how your deployment zone is configured, and let me know which of the conditions above is failing. It may be that I need to tighten this logic to cater for your case as well.

UserImage.jpg
Takashi Sugimoto

Hi Leonardo, 

Sorry, I replied in the wrong way, so I'm reposting.


As shown below, EnableHttps in the deployment zone is OFF, but the address was set to localhost.

Does this setting meet the conditions for ignoring the certificate?


And I apologize for the inconvenience, but due to summer vacation, my next reply will be after August 18.


Kind regards,

Takashi

UserImage.jpg
Takashi Sugimoto

Hi Leonardo,


Thank you for your reply.

In the deployment zone, the EnableHttps setting is off, but the address was set to localhost.

Does this setting meet the conditions for ignoring the certificate?

Kind regards,

Takashi

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Takashi. Your configuration seems ok.

What error exactly are you experiencing? Could you share a screenshot of the error log?

Thank you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.