-
Notifications
You must be signed in to change notification settings - Fork 81
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
Adding instance -> custom_headers and instance -> api_path #239
Adding instance -> custom_headers and instance -> api_path #239
Conversation
…atible with python 2.*
…it was not picking up default value
Build succeeded. ✔️ build-ansible-collection SUCCESS in 3m 19s |
* fixing default api_path as it should be api/now * improving documentation, changing _path functions to be backward compatible with python 2.* * fixing deviations from pep8 standards * adding default value setting into mocker for the Client as otherwise it was not picking up default value
Build failed. ✔️ build-ansible-collection SUCCESS in 6m 44s |
recheck |
Build failed. ✔️ build-ansible-collection SUCCESS in 6m 47s |
@augustinosusky Could you please update/fix these CI failures? Thanks |
Hello @Akasurde , Thank you for addressing this. |
Build failed. ✔️ build-ansible-collection SUCCESS in 7m 01s |
Build failed. ✔️ build-ansible-collection SUCCESS in 7m 41s |
…ion in table client in the old way
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
Build failed. ✔️ build-ansible-collection SUCCESS in 7m 45s |
Hello @Akasurde, |
Hello @Akasurde , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change required.
Build failed. ✔️ build-ansible-collection SUCCESS in 6m 56s |
Again framework errors: Collecting astroid==2.3.3 (from -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt (line 54)) 2.10 - https://ansible.softwarefactory-project.io/zuul/build/82fd369988984f889762b9ec430616c0 Collecting antsibull-changelog==0.9.0 (from -r /root/ansible/test/lib/ansible_test/_data/requirements/sanity.changelog.txt (line 2)) I will add some empty commit to start it again. |
Build failed. ✔️ build-ansible-collection SUCCESS in 6m 38s |
recheck |
Build succeeded. ✔️ build-ansible-collection SUCCESS in 6m 42s |
@juremedvesek @uscinski Can you please take a look? Thanks in advance. |
Hello, @juremedvesek @uscinski , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But would like to ask, what is additional value - to be able to use different API's inside url module, or to cover installation, that do not expose service now on root? Thanks.
@Akasurde - changes looks good, they make additional extensions possible. |
Hello @juremedvesek,
|
Hello @juremedvesek, |
@augustinosusky can you please ping @Akasurde . From my point it is ok, but also him must confirm. |
Hello @Akasurde , |
Hello @Akasurde , is there anything else needed to be addressed? |
@augustinosusky Sorry for the delay. I was afk. |
Build failed (gate pipeline). For information on how to proceed, see https://ansible.softwarefactory-project.io/zuul/buildset/cc69dcc2d8e549f2b887907fbfad9af0 ✔️ build-ansible-collection SUCCESS in 6m 48s |
@Akasurde |
Build succeeded (gate pipeline). ✔️ build-ansible-collection SUCCESS in 6m 40s |
142e374
into
ansible-collections:main
@augustinosusky Thanks for the contribution. @juremedvesek Thanks for the review. |
@augustinosusky , @juremedvesek thank you very much for your help! |
SUMMARY
Adding functionality to add custom headers under instance parameter. This may be required if you are using API gateways intercepting API requests and then forwarding requests to the real endpoint.
Adding functionality to add custom api path in case it differs from the usual "api/now" path. For example if API gateway needs this.
ISSUE TYPE
COMPONENT NAME
adding instance->custom_headers and instance->api_path parameters. This affects arguments.py, client.py, table.py and attachment.py in plugins/module_utils folder.
ADDITIONAL INFORMATION
Example call for configuration item: