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 |
| 19 | failed_when: "'Timesheetsui' 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: |
| 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" |