diff options
author | Matt Martz <matt@sivel.net> | 2020-05-21 22:17:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 22:17:57 +0200 |
commit | e0f25a2b1f9e6c21f751ba0ed2dc2eee2152983e (patch) | |
tree | 96e8858d86d780543d21f5ace597cf57861c8670 /test/integration/targets/uri | |
parent | Restore CentOS on Power in CI. (diff) | |
download | ansible-e0f25a2b1f9e6c21f751ba0ed2dc2eee2152983e.tar.xz ansible-e0f25a2b1f9e6c21f751ba0ed2dc2eee2152983e.zip |
Strip no log values from module response keys. Fixes #68400 (#69653)
Diffstat (limited to 'test/integration/targets/uri')
-rw-r--r-- | test/integration/targets/uri/tasks/main.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/uri/tasks/main.yml b/test/integration/targets/uri/tasks/main.yml index 44f3373f98..de41e0117c 100644 --- a/test/integration/targets/uri/tasks/main.yml +++ b/test/integration/targets/uri/tasks/main.yml @@ -544,6 +544,18 @@ that: - result.json.json[0] == 'JSON Test Pattern pass1' +- name: Make request that includes password in JSON keys + uri: + url: "https://{{ httpbin_host}}/get?key-password=value-password" + user: admin + password: password + register: sanitize_keys + +- name: assert that keys were sanitized + assert: + that: + - sanitize_keys.json.args['key-********'] == 'value-********' + - name: Create a testing file copy: content: "content" |