Non passing validations now cause HTTP 400 error
[integration/test.git] / csit / suites / iotdm / basic / 001_SanityTestsHttp.robot
1 *** Settings ***
2 Documentation     Sanity test suite verifies basic functionality of IoTDM but also
3 ...               functionality of testing client libraries.
4 ...               CRUD + N operations are performed on minimal resource tree using HTTP protocol.
5 Suite Setup       Setup Suite
6 Suite Teardown    End Suite
7 Resource          ../../../libraries/IoTDM/iotdm_sanity_tests.robot
8 Resource          ../../../libraries/IoTDM/IoTDMResources.robot
9
10 *** Variables ***
11 ${rx_port}        ${5000}
12
13 *** Test Cases ***
14 1.01 HTTP Sanity test - Create AE
15     [Documentation]    Create AE resource and verify response
16     Sanity Test Create AE
17
18 1.02 HTTP Sanity test - Retrieve AE
19     [Documentation]    Retrieve AE resource and verify response
20     Sanity Test Retrieve AE
21
22 1.03 HTTP Sanity test - Update AE
23     [Documentation]    Update AE resource and verify response
24     Sanity Test Update AE
25
26 1.04 HTTP Sanity test - Retrieve updated AE
27     [Documentation]    Retrieve updated AE, verify updated element and verify response
28     Sanity Test Retrieve Updated AE
29
30 1.05 HTTP Sanity test - Delete AE
31     [Documentation]    Delete AE resource and verify response
32     Sanity Test Delete AE
33
34 1.06 HTTP Sanity test - Retrieve deleted AE
35     [Documentation]    Try to retrieve already deleted AE. Expect and verify error response
36     Sanity Test Retrieve Deleted AE
37
38 1.07 HTTP Sanity test - Create AE, Container and Subscription
39     [Documentation]    Create AE, Container and Subscription resources. Subscription resource has set
40     ...    eventType 3 so notification will be trigerred when child resource of Container resource is
41     ...    created. Notifications will be sent to communication Rx channel.
42     ...    Verify response of create requests.
43     Sanity Test Create AE Container Subscription    http://${local_ip}:${rx_port}
44
45 1.08 HTTP Sanity test - Create Content Instance and handle notification
46     [Documentation]    Create contentInstance resource what should trigger notification. Receive the notification
47     ...    and create positive response and send. Verify the received notification request.
48     Sanity Test Create Content Instance And Handle Notification
49
50 1.09 HTTP Sanity test - Create Content Instance and use automatic notification response
51     [Documentation]    Set up automatic reply for notifications from specific subscription resource. Create
52     ...    contentInstance resource what will trigger the notification and check if was handled
53     ...    automatically.
54     Sanity Test Create Content Instance And Use Automatic Notification Response
55
56 *** Keywords ***
57 Setup Suite
58     [Documentation]    Connect to IoTDM and prepare testing resource tree
59     IOTDM Basic Suite Setup    ${ODL_SYSTEM_1_IP}    ${ODL_RESTCONF_USER}    ${ODL_RESTCONF_PASSWORD}
60     Connect And Provision cseBase
61     Create Iotdm Http Connection    ${defAeId}    ${ODL_SYSTEM_1_IP}    8282    application/json    ${rx_port}
62     Resolve Local Ip Address
63
64 End Suite
65     Clear The Resource Tree
66     Close Iotdm Communication