libvirt/tests/virnetdaemondata
Erik Skultety a32135b3b1 rpc: virnetserverclient: Introduce new attribute conn_time to client
Besides ID, libvirt should provide several parameters to help the user
distinguish two clients from each other. One of them is the connection
timestamp. This patch also adds a testcase for proper JSON formatting of the
new attribute too (proper formatting of older clients that did not support
this attribute yet is included in the existing tests) - in order to
testGenerateJSON to work, a mock of time_t time(time_t *timer) needed to be
created.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
2016-05-02 22:25:52 +02:00
..
input-data-admin-nomdns.json test: Replace tabs with spaces in virnetdaemondata json files 2015-08-24 09:30:40 +02:00
input-data-admin-server-names.json tests: virnetdaemon: Replace tabs with spaces 2016-04-21 12:36:03 +02:00
input-data-anon-clients.json tests: Adapt virnetservertest to daemon refactor 2015-06-16 13:46:20 +02:00
input-data-client-ids.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
input-data-client-timestamp.json rpc: virnetserverclient: Introduce new attribute conn_time to client 2016-05-02 22:25:52 +02:00
input-data-initial-nomdns.json tests: Adapt virnetservertest to daemon refactor 2015-06-16 13:46:20 +02:00
input-data-initial.json tests: Adapt virnetservertest to daemon refactor 2015-06-16 13:46:20 +02:00
input-data-no-keepalive-required.json test: Replace tabs with spaces in virnetdaemondata json files 2015-08-24 09:30:40 +02:00
output-data-admin-nomdns.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
output-data-admin-server-names.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
output-data-anon-clients.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
output-data-client-ids.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
output-data-client-timestamp.json rpc: virnetserverclient: Introduce new attribute conn_time to client 2016-05-02 22:25:52 +02:00
output-data-initial-nomdns.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
output-data-initial.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
output-data-no-keepalive-required.json rpc: virnetserverclient: Identify clients by an integer ID 2016-05-02 22:25:51 +02:00
README tests: Adapt virnetservertest to daemon refactor 2015-06-16 13:46:20 +02:00

   virnetservertest data files
   ===========================

The various input-data-*.json files are a record of all the historical
formats that libvirt has been able to produce data for. Everytime a
new field is added to the JSON output, a *new* input data file should
be created. We must not add new fields to existing input-data files,
nor must we ever re-structure them if code changes, as we must check
new code handles the legacy formats.

The various output-data-*.json files are the record of what the *new*
JSON output should look like for the correspondingly named input-data
file. It is permissible to change the existing output-data-*.json
files if the format we save in is updated.