From 1908c5af61f2d4b98461575fe7e0276c954ba9f3 Mon Sep 17 00:00:00 2001 From: Tomasz Setkowski Date: Fri, 11 Dec 2015 14:10:18 +0000 Subject: [PATCH] updates to run tests locally --- .kitchen.openstack.yml | 4 ++++ Gemfile.lock | 6 +++--- Rakefile | 10 ++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.kitchen.openstack.yml b/.kitchen.openstack.yml index 5283b77..92d6560 100644 --- a/.kitchen.openstack.yml +++ b/.kitchen.openstack.yml @@ -21,10 +21,14 @@ suites: - recipe[gocd] - recipe[gocd_test::plugin_lwrp] attributes: + apt: + compile_time_update: true java: jdk_version: 7 gocd: server: + wait_up: + retries: 120 max_mem: '1024m' min_mem: '512m' agent: diff --git a/Gemfile.lock b/Gemfile.lock index 3aaa93b..9a5279c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -202,7 +202,7 @@ GEM formatador (0.2.5) gherkin (2.12.2) multi_json (~> 1.3) - hashie (3.4.2) + hashie (3.4.3) highline (1.7.8) hitimes (1.2.3) httpclient (2.6.0.1) @@ -267,7 +267,7 @@ GEM slop (~> 3.4) rack (1.6.4) rake (10.4.2) - retryable (2.0.2) + retryable (2.0.3) ridley (4.3.2) addressable buff-config (~> 1.0) @@ -360,4 +360,4 @@ DEPENDENCIES test-kitchen BUNDLED WITH - 1.10.2 + 1.10.5 diff --git a/Rakefile b/Rakefile index 458c8b0..fcd698a 100644 --- a/Rakefile +++ b/Rakefile @@ -60,6 +60,16 @@ namespace :integration do end end + desc 'Run Test Kitchen with openstack (private)' + task :openstack do + Kitchen.logger = Kitchen.default_file_logger + @loader = Kitchen::Loader::YAML.new(project_config: './.kitchen.openstack.yml') + config = Kitchen::Config.new( loader: @loader) + config.instances.each do |instance| + instance.test(:always) + end + end + desc 'Run Test Kitchen with docker' task :docker do Kitchen.logger = Kitchen.default_file_logger