Zack Williams | 109e16e | 2020-07-21 21:43:59 -0700 | [diff] [blame] | 1 | --- |
| 2 | # unifi molecule/default/verify.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: Verify |
| 8 | hosts: all |
| 9 | tasks: |
| 10 | |
| 11 | # Redirect tests |
| 12 | - name: Check that unconfigured UniFi serves a 302 redirect to /setup |
| 13 | uri: |
| 14 | url: http://127.0.0.1:8080 |
| 15 | headers: |
| 16 | follow_redirects: "none" |
| 17 | status_code: 302 |
| 18 | return_content: true |
| 19 | register: webpage |
| 20 | failed_when: "webpage.location != 'http://127.0.0.1:8080/setup/'" |