From 9300d25bb8996cdfaf47a67a2a1ae1d91f5aafce Mon Sep 17 00:00:00 2001 From: Nan Liu Date: Tue, 13 Sep 2016 17:37:54 -0700 Subject: [PATCH] Add end to end large tests with plugin tasks The ethtool plugin requires specific hardware to work correctly. For now this is not possible to specify in docker so this set of end to end tests use vagrant and e1000 nic to verify the plugin works as expected. --- Vagrantfile | 34 +++++++++++++++++++ examples/tasks/ethtool-file.json | 57 +++++--------------------------- spec/ethtool_spec.rb | 29 ++++++++++++++++ spec/spec_helper.rb | 5 +++ 4 files changed, 76 insertions(+), 49 deletions(-) create mode 100644 Vagrantfile create mode 100644 spec/ethtool_spec.rb create mode 100644 spec/spec_helper.rb diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..c5feb6c --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,34 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# NOTE: override this via the option --provider {provider_name} +ENV["VAGRANT_DEFAULT_PROVIDER"] = "virtualbox" + +Vagrant.configure(2) do |config| + operating_systems = %w{ centos72 } + + operating_systems.each do |os| + config.vm.define os do |system| + system.vm.box = "boxcutter/#{os}" + + $script = <