Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --client-from-env option to flexer test #47

Closed
wants to merge 1 commit into from

Conversation

ukinau
Copy link

@ukinau ukinau commented Sep 26, 2017

This option allow us to specify cmp api credential via environment
variables. until we introduced this option, we needed to change
.flexer.yaml file everytime we change the connector we are working on.

This option will be used like bellow

$ PROVIDER_USER=test PROVIDER_PASS=test
CMP_URI=https://sandbox-cmp.nflex.io/cmp/basic/api CMP_USERNAME=cmpuser
CMP_PASSWORD=cmppass flexer test -e

by executing as above all tests will have the cmp api client with above
information uri to be https://sandbox-cmp.nflex.io/cmp/basic/api,
username to be cmpuser...

This option allow us to specify cmp api credential via environment
variables. until we introduced this option, we needed to change
.flexer.yaml file everytime we change the connector we are working on.

This option will be used like bellow

$ PROVIDER_USER=test PROVIDER_PASS=test
CMP_URI=https://sandbox-cmp.nflex.io/cmp/basic/api CMP_USERNAME=cmpuser
CMP_PASSWORD=cmppass flexer test

by executing as above all tests will have the cmp api client with above
information uri to be https://sandbox-cmp.nflex.io/cmp/basic/api,
username to be cmpuser...
@ukinau
Copy link
Author

ukinau commented Sep 27, 2017

This was achieved by alternative way

@ukinau ukinau closed this Sep 27, 2017
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.

1 participant