vagrant/test/unit/plugins/providers/docker/action
Dan Čermák fe4743a22b
Mock call to PrepareNetworks.list_interfaces in docker prepare_networks_test
The test "generates a network name and configuration" calls at the end
`process_public_network()`, which can return an empty list if the currently
executing machine has no usable network interfaces (this is typically the case
for workers that build rpm packages in OBS or Koji). This results in an
exception of type Errors::NetworkNoInterfaces to be thrown and causing this test
to fail.

This commit adds a mock of the PrepareNetworks.list_interfaces call that returns
a single entry with just the required defaults.
2019-11-01 17:36:31 +01:00
..
compare_synced_folders_test.rb Add unit test for dockers compare_synced_folders 2019-02-04 11:12:55 -08:00
connect_networks_test.rb Try to mock up docker version subprocess result in test 2019-09-11 09:36:11 -07:00
create_test.rb Remove stub methods and replace with allows for rpsec 3 2017-08-04 15:02:59 -07:00
destroy_network_test.rb Try to mock up docker version subprocess result in test 2019-09-11 09:36:11 -07:00
host_machine_sync_folders_test.rb Add test for syncing folders with docker provider 2018-10-17 14:14:27 -07:00
login_test.rb Try to mock up docker version subprocess result in test 2019-09-11 09:36:11 -07:00
prepare_networks_test.rb Mock call to PrepareNetworks.list_interfaces in docker prepare_networks_test 2019-11-01 17:36:31 +01:00