diff options
author | John Levon <john.levon@nutanix.com> | 2021-05-11 11:25:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 11:25:39 +0100 |
commit | 71f8b30557d3635336aec06c084188370ed5e248 (patch) | |
tree | b8b6dc50ed36a64c4dc5b043d821f1925673e00d /test/py | |
parent | 4a9df7bea8a96c6c415077cca4f2e90fc22de3f0 (diff) | |
download | libvfio-user-71f8b30557d3635336aec06c084188370ed5e248.zip libvfio-user-71f8b30557d3635336aec06c084188370ed5e248.tar.gz libvfio-user-71f8b30557d3635336aec06c084188370ed5e248.tar.bz2 |
some specification updates (#465)
Make a few specification updates after review by Stefan Hajnoczi.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/test_negotiate.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/py/test_negotiate.py b/test/py/test_negotiate.py index 9a6afd9..09edf99 100644 --- a/test/py/test_negotiate.py +++ b/test/py/test_negotiate.py @@ -108,15 +108,15 @@ def test_invalid_json_bad_capabilities_object(): def test_invalid_json_bad_max_fds(): client_version_json(errno.EINVAL, - b'{ "capabilities": { "max_fds": "foo" } }') + b'{ "capabilities": { "max_msg_fds": "foo" } }') def test_invalid_json_bad_max_fds(): client_version_json(errno.EINVAL, - b'{ "capabilities": { "max_fds": -1 } }') + b'{ "capabilities": { "max_msg_fds": -1 } }') def test_invalid_json_bad_max_fds2(): client_version_json(errno.EINVAL, - b'{ "capabilities": { "max_fds": %d } }' % + b'{ "capabilities": { "max_msg_fds": %d } }' % (VFIO_USER_CLIENT_MAX_FDS_LIMIT + 1)) def test_invalid_json_bad_migration_object(): @@ -151,7 +151,7 @@ def test_valid_negotiate_no_json(): assert major == LIBVFIO_USER_MAJOR assert minor == LIBVFIO_USER_MINOR json = parse_json(json_str) - assert json.capabilities.max_fds == SERVER_MAX_FDS + assert json.capabilities.max_msg_fds == SERVER_MAX_FDS assert json.capabilities.max_msg_size == SERVER_MAX_MSG_SIZE # FIXME: migration object checks @@ -167,7 +167,7 @@ def test_valid_negotiate_empty_json(): vfu_run_ctx(ctx) def test_valid_negotiate_json(): - client_version_json(json=bytes('{ "capabilities": { "max_fds": %s } }' % + client_version_json(json=bytes('{ "capabilities": { "max_msg_fds": %s } }' % VFIO_USER_CLIENT_MAX_FDS_LIMIT, "utf-8")) # notice client closed connection |