summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/deb822_repository
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2023-05-25 21:09:53 +0200
committerGitHub <noreply@github.com>2023-05-25 21:09:53 +0200
commite88ff32b104f0c9ee6120428e65229cf5a6521fe (patch)
tree92f63a6e466e4d8b3f8e41a0fb057941bbb0af9c /test/integration/targets/deb822_repository
parentUpdate dnf5 module to handle API change for setting the download directory. F... (diff)
downloadansible-e88ff32b104f0c9ee6120428e65229cf5a6521fe.tar.xz
ansible-e88ff32b104f0c9ee6120428e65229cf5a6521fe.zip
deb822_repository: use http-agent with open_url (#80876)
* Use http-agent in open_url API while getting cloudflare content Fixes: #80809 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'test/integration/targets/deb822_repository')
-rw-r--r--test/integration/targets/deb822_repository/tasks/test.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/integration/targets/deb822_repository/tasks/test.yml b/test/integration/targets/deb822_repository/tasks/test.yml
index 3231cbeb95..4911bb92a5 100644
--- a/test/integration/targets/deb822_repository/tasks/test.yml
+++ b/test/integration/targets/deb822_repository/tasks/test.yml
@@ -9,7 +9,7 @@
- main
- restricted
register: deb822_check_mode_1
- check_mode: yes
+ check_mode: true
- name: Create deb822 repo
deb822_repository:
@@ -211,3 +211,19 @@
that:
- ansible_test_repo_remove is changed
- ansible_test_repo_stats.results|map(attribute='stat')|selectattr('exists') == []
+
+- name: Check if http-agent works when using cloudflare repo - check_mode
+ deb822_repository:
+ name: cloudflared
+ types: deb
+ uris: https://pkg.cloudflare.com/cloudflared
+ suites: "bullseye"
+ components: main
+ signed_by: https://pkg.cloudflare.com/cloudflare-main.gpg
+ state: present
+ check_mode: true
+ register: ansible_test_http_agent
+
+- assert:
+ that:
+ - ansible_test_http_agent is changed