mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
feat: add websocket graphics config (#1672)
This adds websocket functionality for VNC. The websocket attribute may be used to specify the port to listen on (with -1 meaning auto-allocation and autoport having no effect due to security reasons).
This commit is contained in:
@@ -660,6 +660,7 @@ describe VagrantPlugins::ProviderLibvirt::Config do
|
||||
|
||||
expect(subject.graphics_type).to eq('vnc')
|
||||
expect(subject.graphics_port).to eq(-1)
|
||||
expect(subject.graphics_websocket).to eq(-1)
|
||||
expect(subject.graphics_ip).to eq('127.0.0.1')
|
||||
expect(subject.graphics_autoport).to eq('yes')
|
||||
expect(subject.channels).to be_empty
|
||||
@@ -670,6 +671,7 @@ describe VagrantPlugins::ProviderLibvirt::Config do
|
||||
subject.finalize!
|
||||
|
||||
expect(subject.graphics_port).to eq(nil)
|
||||
expect(subject.graphics_websocket).to eq(nil)
|
||||
expect(subject.graphics_ip).to eq(nil)
|
||||
expect(subject.graphics_autoport).to eq(nil)
|
||||
expect(subject.channels).to match([a_hash_including({:target_name => 'com.redhat.spice.0'})])
|
||||
|
||||
Reference in New Issue
Block a user