Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 1 | --- |
| 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 Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 10 | |
| 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 Williams | a771dd7 | 2021-05-04 14:28:35 -0700 | [diff] [blame] | 19 | failed_when: "'ONF Timesheets' not in timesheet_root_page.content" |
Zack Williams | cb33403 | 2020-11-29 22:46:32 -0700 | [diff] [blame] | 20 | |
| 21 | - name: Obtain the /rest/ webpage, check that it's from timesheetsdb |
| 22 | uri: |
Zack Williams | a771dd7 | 2021-05-04 14:28:35 -0700 | [diff] [blame] | 23 | url: http://127.0.0.1/rest/ |
Zack Williams | cb33403 | 2020-11-29 22:46:32 -0700 | [diff] [blame] | 24 | headers: |
| 25 | Host: "timesheets.example.com" |
| 26 | status_code: 200 |
| 27 | return_content: true |
| 28 | register: timesheet_rest_page |
Zack Williams | a771dd7 | 2021-05-04 14:28:35 -0700 | [diff] [blame] | 29 | failed_when: "'Express' not in timesheet_rest_page.x_powered_by" |