summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-08 16:50:34 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-08 16:50:34 -0700
commit380c72bacaf6640594510d67119df42216f63104 (patch)
treee548d0bf228af400cc8831284e3471a781d53ee6
parent409c2f34455ff192366a688eb11647618ebf661b (diff)
downloadchef-force_fail.tar.gz
Try to force a systemd_unit validation failureforce_fail
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.expeditor/verify.pipeline.yml341
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/default.rb2
2 files changed, 1 insertions, 342 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 69b65ad155..45b009571f 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -9,347 +9,6 @@ expeditor:
steps:
-#########################################################################
- # Tests Ruby 2.6
-#########################################################################
-
-- label: "Integration Specs Ubuntu :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:integration
- expeditor:
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
- privileged: true
-
-- label: "Functional Specs Ubuntu :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - apt-get update -y
- - apt-get install -y cron locales # needed for functional tests to pass
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:functional
- expeditor:
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
- privileged: true
-
-- label: "Unit Specs Ubuntu :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:unit
- - bundle exec rake component_specs
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-- label: "Integration Specs CentOS :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:integration
- expeditor:
- executor:
- docker:
- image: rubydistros/centos-7
- privileged: true
-
-- label: "Functional Specs CentOS :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - yum install -y crontabs e2fsprogs util-linux
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:functional
- expeditor:
- executor:
- docker:
- image: rubydistros/centos-7
- privileged: true
-
-- label: "Unit Specs CentOS :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:unit
- - bundle exec rake component_specs
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/centos-7
-
-- label: "Integration Specs openSUSE :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:integration
- expeditor:
- executor:
- docker:
- image: rubydistros/opensuse-15
- privileged: true
-
-- label: "Functional Specs openSUSE :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - zypper install -y cronie
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:functional
- expeditor:
- executor:
- docker:
- image: rubydistros/opensuse-15
- privileged: true
-
-- label: "Unit Specs openSUSE :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:unit
- - bundle exec rake component_specs
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/opensuse-15
-
-- label: "Integration Specs Fedora :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:integration
- expeditor:
- executor:
- docker:
- image: rubydistros/fedora-latest
- privileged: true
-
-- label: "Functional Specs Fedora :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - yum install -y crontabs e2fsprogs util-linux
- - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:functional
- expeditor:
- executor:
- docker:
- image: rubydistros/fedora-latest
- privileged: true
- environment:
- - FORCE_FFI_YAJL=ext
- - CHEF_LICENSE=accept-no-persist
-
-- label: "Unit Specs Fedora :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake spec:unit
- - bundle exec rake component_specs
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/fedora-latest
-
-- label: "Integration Specs Windows :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_win_integration.ps1
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- host_os: windows
- environment:
- - FORCE_FFI_YAJL=ext
- - CHEF_LICENSE=accept-no-persist
- shell: ["powershell", "-Command"]
-
-- label: "Functional Specs Windows :ruby: 2.6"
- commands:
- - scripts/bk_tests/bk_win_functional.ps1
- expeditor:
- cached_folders:
- - vendor
- executor:
- windows:
- privileged: true
- shell: ["powershell", "-Command"]
-
-- label: "Chocolatey Specs Windows :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_run_choco.ps1
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- host_os: windows
- shell: ["powershell", "-Command"]
-
-- label: "Unit Specs Windows :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_win_unit.ps1
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- host_os: windows
- environment:
- - FORCE_FFI_YAJL=ext
- - CHEF_LICENSE=accept-no-persist
- shell: ["powershell", "-Command"]
-
-- label: "Chefstyle :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen ruby_prof
- - bundle exec rake style
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-#########################################################################
-# Tests Ruby 2.7
-#########################################################################
-
-- label: "Integration Specs :ruby: 2.7"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:integration
- expeditor:
- executor:
- docker:
- image: ruby:2.7-buster
- privileged: true
-
-- label: "Functional Specs :ruby: 2.7"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - apt-get update -y
- - apt-get install -y cron locales net-tools # needed for functional tests to pass
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:functional
- expeditor:
- executor:
- docker:
- image: ruby:2.7-buster
- privileged: true
-
-- label: "Unit Specs :ruby: 2.7"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec rake spec:unit
- - bundle exec rake component_specs
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: ruby:2.7-buster
-
-#########################################################################
- # EXTERNAL GEM TESTING
-#########################################################################
-
-- label: "Test chef-sugar gem :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec tasks/bin/run_external_test chef/chef-sugar master rake
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-- label: "Test chef-zero gem :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec tasks/bin/run_external_test chef/chef-zero master rake pedant
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
- environment:
- - PEDANT_OPTS=--skip-oc_id
- - CHEF_FS=true
-
-- label: "Test cheffish gem :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec tasks/bin/run_external_test chef/cheffish master rake spec
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-- label: "Test chefspec gem :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec tasks/bin/run_external_test chefspec/chefspec master rake
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-- label: "Test knife-windows gem :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec tasks/bin/run_external_test chef/knife-windows master rake spec
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-- label: "Test berkshelf gem :ruby: 2.6"
- commands:
- - /workdir/scripts/bk_tests/bk_container_prep.sh
- - apt-get update -y
- - apt-get install -y graphviz
- - gem install bundler -v 1.17.3 # necessary for berks Gemfile.lock for now
- - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package docgen
- - bundle exec tasks/bin/run_external_test berkshelf/berkshelf master rake
- expeditor:
- cached_folders:
- - vendor
- executor:
- docker:
- image: rubydistros/ubuntu-18.04
-
-#########################################################################
- # START TEST KITCHEN ONLY
-#########################################################################
-
- label: "Kitchen Tests :amazon: 2"
commands:
- scripts/bk_tests/bk_linux_exec.sh
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
index af1e516030..dc6288852c 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
@@ -149,7 +149,7 @@ chef_client_cron "Run chef-client with base recipe" do
end
chef_client_systemd_timer "Run chef-client as a systemd timer" do
- interval "1hr"
+ interval "1nope"
only_if { systemd? }
end