From 909323776755b3a9c2571ec62c74177ecabddb2a Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Thu, 18 Feb 2016 21:00:19 +0100 Subject: [PATCH] move integration tests to top-level --- .gitignore | 2 +- test/integration/.kitchen.yml => .kitchen.yml | 0 Berksfile | 5 +++++ Rakefile | 2 +- test/{integration => }/cookbooks/os_prepare/metadata.rb | 0 .../cookbooks/os_prepare/recipes/default.rb | 0 test/integration/Berksfile | 3 --- .../{test/integration => }/default/_debug_spec.rb | 0 test/integration/{test/integration => }/default/os_spec.rb | 0 .../{test/integration => }/profile/controls/example.rb | 0 .../{test/integration => }/profile/controls/gordon.rb | 0 test/integration/{test/integration => }/profile/inspec.yml | 0 .../integration => }/profile/libraries/gordon_config.rb | 0 13 files changed, 7 insertions(+), 5 deletions(-) rename test/integration/.kitchen.yml => .kitchen.yml (100%) create mode 100644 Berksfile rename test/{integration => }/cookbooks/os_prepare/metadata.rb (100%) rename test/{integration => }/cookbooks/os_prepare/recipes/default.rb (100%) delete mode 100644 test/integration/Berksfile rename test/integration/{test/integration => }/default/_debug_spec.rb (100%) rename test/integration/{test/integration => }/default/os_spec.rb (100%) rename test/integration/{test/integration => }/profile/controls/example.rb (100%) rename test/integration/{test/integration => }/profile/controls/gordon.rb (100%) rename test/integration/{test/integration => }/profile/inspec.yml (100%) rename test/integration/{test/integration => }/profile/libraries/gordon_config.rb (100%) diff --git a/.gitignore b/.gitignore index f86e0c1..b1d59bb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,5 @@ /pkg/ /spec/reports/ /tmp/ -test/integration/.kitchen Berksfile.lock +.kitchen diff --git a/test/integration/.kitchen.yml b/.kitchen.yml similarity index 100% rename from test/integration/.kitchen.yml rename to .kitchen.yml diff --git a/Berksfile b/Berksfile new file mode 100644 index 0000000..d39a9ca --- /dev/null +++ b/Berksfile @@ -0,0 +1,5 @@ +# encoding: utf-8 + +source 'https://supermarket.chef.io' + +cookbook 'os_prepare', path: './test/cookbooks/os_prepare' diff --git a/Rakefile b/Rakefile index f2f6588..48e4217 100644 --- a/Rakefile +++ b/Rakefile @@ -123,6 +123,6 @@ namespace :test do task :integration do concurrency = ENV['CONCURRENCY'] || 1 path = File.join(File.dirname(__FILE__), 'test', 'integration') - sh('sh', '-c', "cd #{path} && bundle exec kitchen test -c #{concurrency}") + sh('sh', '-c', "bundle exec kitchen test -c #{concurrency}") end end diff --git a/test/integration/cookbooks/os_prepare/metadata.rb b/test/cookbooks/os_prepare/metadata.rb similarity index 100% rename from test/integration/cookbooks/os_prepare/metadata.rb rename to test/cookbooks/os_prepare/metadata.rb diff --git a/test/integration/cookbooks/os_prepare/recipes/default.rb b/test/cookbooks/os_prepare/recipes/default.rb similarity index 100% rename from test/integration/cookbooks/os_prepare/recipes/default.rb rename to test/cookbooks/os_prepare/recipes/default.rb diff --git a/test/integration/Berksfile b/test/integration/Berksfile deleted file mode 100644 index 24bb514..0000000 --- a/test/integration/Berksfile +++ /dev/null @@ -1,3 +0,0 @@ -source 'https://supermarket.chef.io' - -cookbook 'os_prepare', path: './cookbooks/os_prepare' diff --git a/test/integration/test/integration/default/_debug_spec.rb b/test/integration/default/_debug_spec.rb similarity index 100% rename from test/integration/test/integration/default/_debug_spec.rb rename to test/integration/default/_debug_spec.rb diff --git a/test/integration/test/integration/default/os_spec.rb b/test/integration/default/os_spec.rb similarity index 100% rename from test/integration/test/integration/default/os_spec.rb rename to test/integration/default/os_spec.rb diff --git a/test/integration/test/integration/profile/controls/example.rb b/test/integration/profile/controls/example.rb similarity index 100% rename from test/integration/test/integration/profile/controls/example.rb rename to test/integration/profile/controls/example.rb diff --git a/test/integration/test/integration/profile/controls/gordon.rb b/test/integration/profile/controls/gordon.rb similarity index 100% rename from test/integration/test/integration/profile/controls/gordon.rb rename to test/integration/profile/controls/gordon.rb diff --git a/test/integration/test/integration/profile/inspec.yml b/test/integration/profile/inspec.yml similarity index 100% rename from test/integration/test/integration/profile/inspec.yml rename to test/integration/profile/inspec.yml diff --git a/test/integration/test/integration/profile/libraries/gordon_config.rb b/test/integration/profile/libraries/gordon_config.rb similarity index 100% rename from test/integration/test/integration/profile/libraries/gordon_config.rb rename to test/integration/profile/libraries/gordon_config.rb