Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Add environment variable injection for SOAP and WSDL endpoints#55

Merged
isudana merged 56 commits intoapache:masterapache/synapse:masterfrom
n-jay:feature1n-jay/synapse:feature1Copy head branch name to clipboard
Sep 25, 2022
Merged

Add environment variable injection for SOAP and WSDL endpoints#55
isudana merged 56 commits intoapache:masterapache/synapse:masterfrom
n-jay:feature1n-jay/synapse:feature1Copy head branch name to clipboard

Conversation

@n-jay
Copy link
Member

@n-jay n-jay commented Feb 13, 2022

Purpose

Add environment variable injection capability to SOAP and WSDL endpoints.

Approach

Amended AddressEndpointFactory & WSDLEndpointFactory classes to extract environment variables via System.getenv() based on $SYSTEM prefix presence in the Synapse config XML uri elements.

Automation Tests

  • Unit tests
    Covers code written in AddressEndpointFactory.

  • Integration tests
    N/A

Test environment

  • Java version 1.8.0_141
  • Ubuntu 20.04

Learning

A medium post describing the context of the project is linked here.

n-jay added 26 commits August 16, 2021 21:08
This is to unit test environment variable extraction during build time.
Used to mock environment variable injection setting during build-time
Delete external library inclusions & add environment variables via surefire
Code to be verified in PR
To check unit tests during build time
extractedEnvVariableValue);
endpointDefinition.setAddress(extractedEnvVariableValue);
} else {
endpointDefinition.setAddress(extractedAddress);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the no. of variables and remove the else condition

Copy link
Member Author

@n-jay n-jay May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit: 8e51818

@n-jay
Copy link
Member Author

n-jay commented Apr 25, 2022

Code review conducted. Changes requested:

  • Add system prefix constant to SynapseConstants file.
  • Add singular method to DefaultEndpointFactory and call it from the extended class

pom.xml Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
modules/core/pom.xml Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.