blob: 6fa1b629466d52ff57681aa3730322fc77b8120a [file] [log] [blame]
---
# unifi molecule/default/verify.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
- name: Verify
hosts: all
tasks:
# Redirect tests
- name: Check that unconfigured UniFi serves a 302 redirect to /setup
uri:
url: http://127.0.0.1:8080
headers:
follow_redirects: "none"
status_code: 302
return_content: true
register: webpage
failed_when: "webpage.location != 'http://127.0.0.1:8080/setup/'"