1 The document shows how to create a test data file which is used for the
2 integration test to inject test data before running test.
3 ----------------------------------------------------------------------------
4 The test data is a JSON string and here is full example with description:
7 // Define the return value for getAvailableSinks API defined in
9 // The return value is a list as following. Default value is:
10 // [{"id": "id1", "friendlyName": "test-sink-1"},
11 // {"id": "id2", "friendlyName": "test-sink-2"}]
12 "getAvailableSinks": [{"id": "id1", "friendlyName": "test-device-1"},
13 {"id": "id2", "friendlyName": "test-device-2"}],
15 // Define the return value for canRoute API, the return value should be
16 // either 'true' or 'false'. The default value is 'true'.
19 // Define the return value for createRoute API. Since the return type of
20 // createRoute is a Promise, here we just need to define
21 // if return successful result or error.
22 // The value for 'passed' should be either 'true' or 'false'.
23 // If it is 'false', you also need to give the corresponding
24 // error message. If it is 'true', the error message will be ignored.
25 // TODO(leilei): Change keyword 'passed' to 'success'.
26 "createRoute": {"passed": "false", "errorMessage": "Unknown sink"}