* Prevent negative status from crashing launchd service resource (#6262)
Signed-off-by: dtheyer <davidheyer2016@gmail.com>
Signed-off-by: dtheyer <davidheyer2016@gmail.com>
* Add missing resource_id for service resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* Rebase with inspec-4 to get hab pipeline changes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
---------
Signed-off-by: dtheyer <davidheyer2016@gmail.com>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: dtheyer <davidheyer2016@gmail.com>
Co-authored-by: Sonu Saha <sonu.saha@progress.com>
* Upgraded mock ubuntu test from 20.04 to 22.04
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
* Revert resource_id introduction and update test;
We do not support resource id in inspec-4
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
---------
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Sonu Saha <sonu.saha@progress.com>
* Functional Test to verify git fetcher able to work in a directory where git is not initialized or does not contain the .git directory
* Fix: If git branch, tag or reference information is not given it should clone the repo and checkout the default HEAD
* Remove the logic to find default branch in case of branch, tag or ref is not provided as it's not required logically as we will be cloning the and checkout the default HEAD
* This is a temporary change to make verify test working on this PR. Revert once the work is done for the git fetcher fix
* Unit Test: Fix unit test
* Verifies the git url before creating cache_key, if given relative path does not exist make sure it deletes the cache directory created to copy the cloned repo. It raises error if any git command fails
* Reverted verify git repo url call from cache_key as cache_key and shifted that to resolve_ref which is already raising the error in case of git ls remote command fails
* Unit test to cover the changes done for resolve_ref when branch, tag or ref is not given and
unit test for invalid git repo
---------
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
Co-authored-by: Vasundhara Jagdale <vasundhara.jagdale@chef.io>
* HAB: Add an exception to trust the workdir
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* Updating powershell script as equivalent to shell script for hab
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
---------
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
* Using metadata to fetch basic info as name and version required in archive
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Typo fixes
Signed-off-by: Nik08 <nikita.mathur@progress.com>
---------
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Failing test for Ruby 3.1 - ERB.new call options changed
* Fix for Ruby 3.1 by using named params to ERB.new
* Restrict test to non-windows systems
* Restrict test to non-windows systems
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* make profile check optional
* Clarify error message when making inspec check optional
* Add test fixture profile that emits evaluation markers on stderr
* Make export to inspec.json optional, not enabled by default
* Add test confirming non-evaluative archive
* Fix failing plugin search test, failing since we published a new test gem
---------
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Sathish Babu <80091550+sathish-progress@users.noreply.github.com>
* OMNIBUS CONFIG: Update omnibus config to sign msi packages with updated method
* TEMP: A temporary change to verify windows build
* Revert Gemfile temp changes for omnibus
---------
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Sonu Saha <98935583+ahasunos@users.noreply.github.com>
* Verify pipeline tests upgraded to ruby 3.1
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Removed unused test fixtures of older ruby version
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Updates test fixtures from ruby 2.7 to ruby 3.0 & 3.1
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Habitat package upgrade to ruby 31
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Upgraded omnibus ruby version to ruby 3.1
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Update ruby gem version in expeditor verify
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* Update ruby gem version to ruby 3.3.3 in expeditor verify
Signed-off-by: Nik08 <nikita.mathur@progress.com>
* add ruby test 3.1 in verify pipeline (#5892)
* add ruby test 3.1 in verify pipeline
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
* updating rubygem to 3.3.3
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
* Test fixture plugin files for ABI 3.1.0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Use kwargs to match new calling style for ERB in ruby 2.7 and 3.0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Allow Date and Time data types, needed for waivers, since safe load is now the default for YAML
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Use Time.parse, not Time.new since the rules tightened for what you can pass the constructor for waiver dates
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add ruby platform debug message to test parallel output
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Conditionalize permitted_classes in inputs yaml_load for <= 3.1.x only
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* In ruby 3.1.0 net/pop3 is no more a default gem and that will require us to add it in Gemfile so trying with the byebug gem which we are bundling already
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* CFINSPEC-166 Updated url fetcher to handle Net::OpenTimeout Exception on Windows
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
* Inputs test fix as fixed in vasundhara/ruby-3-support
Signed-off-by: Nik08 <nikita.mathur@progress.com>
---------
Signed-off-by: Nik08 <nikita.mathur@progress.com>
Co-authored-by: jayashrig158 <61735743+jayashrig158@users.noreply.github.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>