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
Ensure uri module always returns status even on failure #56240
Merged
samdoran
merged 4 commits into
ansible:devel
from
samdoran:issue/55897-uri-invalid-cert-status
May 23, 2019
Merged
Ensure uri module always returns status even on failure #56240
samdoran
merged 4 commits into
ansible:devel
from
samdoran:issue/55897-uri-invalid-cert-status
May 23, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also return url and update docs for other values to indicate they are only returned on success. Add integration tests
samdoran
commented
May 8, 2019
ansibot
added
WIP
This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers.
affects_2.9
This issue/PR affects Ansible v2.9
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
net_tools
Net-tools category
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
labels
May 8, 2019
samdoran
changed the title
[WIP] Ensure uri module always returns status even on failure
Ensure uri module always returns status even on failure
May 9, 2019
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
WIP
This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers.
labels
May 11, 2019
jillr
removed
the
needs_triage
Needs a first human triage before being processed.
label
May 16, 2019
ansibot
added
the
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
label
May 19, 2019
This is lines up with with existing code in urls.py
samdoran
force-pushed
the
issue/55897-uri-invalid-cert-status
branch
from
May 20, 2019 19:40
3e0d377
to
863dbf2
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
May 20, 2019
sivel
approved these changes
May 22, 2019
samdoran
added a commit
to samdoran/ansible
that referenced
this pull request
May 23, 2019
…nsible#56240) - Also return url and update docs for other values to indicate they are only returned on success. - Add integration tests - Use info variable for common return values - Use -1 as default status rather than None. This is lines up with with existing code in urls.py - Add unit tests to ensure status and url are returned on failure (cherry picked from commit 8f4f375) Co-authored-by: Sam Doran <sdoran@redhat.com>
samdoran
added a commit
to samdoran/ansible
that referenced
this pull request
May 23, 2019
…nsible#56240) - Also return url and update docs for other values to indicate they are only returned on success. - Add integration tests - Use info variable for common return values - Use -1 as default status rather than None. This is lines up with with existing code in urls.py - Add unit tests to ensure status and url are returned on failure. (cherry picked from commit 8f4f375) Co-authored-by: Sam Doran <sdoran@redhat.com>
abadger
pushed a commit
that referenced
this pull request
May 24, 2019
…56240) - Also return url and update docs for other values to indicate they are only returned on success. - Add integration tests - Use info variable for common return values - Use -1 as default status rather than None. This is lines up with with existing code in urls.py - Add unit tests to ensure status and url are returned on failure (cherry picked from commit 8f4f375) Co-authored-by: Sam Doran <sdoran@redhat.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.9
This issue/PR affects Ansible v2.9
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
module
This issue/PR relates to a module.
net_tools
Net-tools category
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fixes #55897
Also return url and update docs for other values to indicate they are only returned on success.
Add integration tests
ISSUE TYPE
COMPONENT NAME
lib/ansible/module_utils/urls.py
ADDITIONAL INFORMATION
This seems a bit "leaky" in that I have to change the behavior of
urls.py
to makeuri.py
behave as documented. If this fix seems ok. I will also add unit tests.