blob: 6fa1b629466d52ff57681aa3730322fc77b8120a [file] [log] [blame]
Zack Williams109e16e2020-07-21 21:43:59 -07001---
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/'"