Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 1 | |
| 2 | *** Settings *** |
Kailash Khalasi | ad9acf5 | 2018-07-12 10:06:06 -0700 | [diff] [blame] | 3 | Documentation Test Suite for XOS Service APIs |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 4 | Suite Setup Setup |
| 5 | Suite Teardown Teardown |
| 6 | Test Template Verify API Functionality |
| 7 | Library Collections |
| 8 | Library String |
| 9 | Library OperatingSystem |
| 10 | Library XML |
| 11 | Library RequestsLibrary |
| 12 | Library HttpLibrary.HTTP |
| 13 | Library ../Framework/utils/utils.py |
| 14 | Library ../Framework/restApi.py |
Suchitra Vemuri | c5ee223 | 2018-05-02 15:43:54 -0700 | [diff] [blame] | 15 | Resource ${TESTLIBRARY} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 16 | Variables ../Properties/RestApiProperties.py |
| 17 | |
| 18 | *** Variables *** |
| 19 | ${xos_service} core |
| 20 | |
| 21 | *** Test Cases *** TYPE API |
| 22 | {% for m in proto.messages %} |
| 23 | {%- if xproto_unquote(m.options.app_label) != "core" -%} |
| 24 | {%- if m.name not in ['XOSBase'] -%} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 25 | {% autoescape false %} |
| 26 | {% endautoescape %} |
Kailash Khalasi | 9302c18 | 2018-05-07 13:46:15 -0600 | [diff] [blame] | 27 | Create {{ m.name }} CREATE /xosapi/v1/{{ xproto_unquote(m.options.app_label) }}/{{ xproto_pluralize(m) | lower }} ${json_{{ m.name | lower}}_1} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 28 | [Tags] {{ m.name }} |
| 29 | |
Kailash Khalasi | ba1f3f1 | 2018-08-28 12:28:34 -0700 | [diff] [blame] | 30 | Update {{ m.name }} UPDATE /xosapi/v1/{{ xproto_unquote(m.options.app_label) }}/{{ xproto_pluralize(m) | lower }} ${json_{{ m.name | lower}}_amend_1} ${id} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 31 | [Tags] {{ m.name }} |
| 32 | |
Kailash Khalasi | ba1f3f1 | 2018-08-28 12:28:34 -0700 | [diff] [blame] | 33 | Get {{ m.name }} RETRIEVE /xosapi/v1/{{ xproto_unquote(m.options.app_label) }}/{{ xproto_pluralize(m) | lower }} ${json_{{ m.name | lower}}_amend_1} ${id} ${json_{{ m.name | lower}}_amend_key} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 34 | [Tags] {{ m.name }} |
| 35 | |
Kailash Khalasi | 9302c18 | 2018-05-07 13:46:15 -0600 | [diff] [blame] | 36 | Delete {{ m.name }} DELETE /xosapi/v1/{{ xproto_unquote(m.options.app_label) }}/{{ xproto_pluralize(m) | lower }} data_id=${id} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 37 | [Tags] {{ m.name }} |
Kailash Khalasi | 7261480 | 2018-05-02 09:21:23 -0700 | [diff] [blame] | 38 | {% endif -%} |
| 39 | {% endif -%} |
| 40 | {% endfor %} |
| 41 | |
| 42 | *** Keywords *** |
| 43 | Setup |
| 44 | Setup Tests |
| 45 | |
| 46 | Teardown |
| 47 | Teardown Tests |