diff options
author | Matt Clay <matt@mystile.com> | 2023-03-23 14:26:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 14:26:44 -0700 |
commit | cb0a7670df15a2813e8fd3879e64a3aed518193c (patch) | |
tree | 0f6036db533a50feff391d9130569b84629a4e4d | |
parent | 0fe380ed071252bf61f74e2df5a6c490009c692b (diff) | |
download | ansible-cb0a7670df15a2813e8fd3879e64a3aed518193c.tar.gz |
[stable-2.12] Fix url lookup test to use test container (#80284) (#80289)
(cherry picked from commit 054aa9215857f376ee4d387339e6b82bcc14b437)
-rw-r--r-- | test/integration/targets/lookup_url/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/targets/lookup_url/tasks/main.yml b/test/integration/targets/lookup_url/tasks/main.yml index 4eaa32e076..1edde4229a 100644 --- a/test/integration/targets/lookup_url/tasks/main.yml +++ b/test/integration/targets/lookup_url/tasks/main.yml @@ -1,11 +1,11 @@ - name: Test that retrieving a url works set_fact: - web_data: "{{ lookup('url', 'https://gist.githubusercontent.com/abadger/9858c22712f62a8effff/raw/43dd47ea691c90a5fa7827892c70241913351963/test') }}" + web_data: "{{ lookup('url', 'https://{{ httpbin_host }}/get?one') }}" - name: Assert that the url was retrieved assert: that: - - "'one' in web_data" + - "'one' in web_data.args" - name: Test that retrieving a url with invalid cert fails set_fact: |