blob: 4466ce69825ec633e0122b4f31b46d39b7ae2e2c [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
Zack Williamsa771dd72021-05-04 14:28:35 -070019 failed_when: "'ONF Timesheets' 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:
Zack Williamsa771dd72021-05-04 14:28:35 -070023 url: http://127.0.0.1/rest/
Zack Williamscb334032020-11-29 22:46:32 -070024 headers:
25 Host: "timesheets.example.com"
26 status_code: 200
27 return_content: true
28 register: timesheet_rest_page
Zack Williamsa771dd72021-05-04 14:28:35 -070029 failed_when: "'Express' not in timesheet_rest_page.x_powered_by"