Initial commit of UniFi controller ansible role
Change-Id: I53f5cbc07ab26655c76e015d74c22d2a2044f1dd
diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml
new file mode 100644
index 0000000..6fa1b62
--- /dev/null
+++ b/molecule/default/verify.yml
@@ -0,0 +1,20 @@
+---
+# 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/'"