blob: 24859bec21e7717878f5d40d220d59cee01f074c [file] [log] [blame]
Zack Williams70996442020-10-01 22:09:49 -07001---
2# timesheets 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:
Zack Williams952bc002020-10-04 09:45:59 -070010
11 - name: Obtain the root webpage, check that it's from timesheetsui
12 uri:
13 url: http://127.0.0.1/
14 headers:
15 Host: "timesheets.example.com"
16 status_code: 200
17 return_content: true
18 register: timesheet_root_page
19 failed_when: "'Timesheetsui' not in timesheet_root_page.content"
Zack Williamscb334032020-11-29 22:46:32 -070020
21 - name: Obtain the /rest/ webpage, check that it's from timesheetsdb
22 uri:
23 url: http://127.0.0.1/
24 headers:
25 Host: "timesheets.example.com"
26 status_code: 200
27 return_content: true
28 register: timesheet_rest_page
29 failed_when: "'Hello World' not in timesheet_rest_page.content"