diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-12-12 12:40:50 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-12-12 12:40:50 -0800 |
commit | 688968d797370861850f4610f6055ce1462458c6 (patch) | |
tree | a5995f647b22b661051d9e4c2b4a12c3a2cad35d /omnibus/omnibus-test.sh | |
parent | 4ef700e7a1543e73eca792c11b823c0c56f5b581 (diff) | |
download | chef-688968d797370861850f4610f6055ce1462458c6.tar.gz |
Fix mac_user breakage and logging
We need more defensive coding around the absense of the ShadowData.
Unfortunately I wasn't able to fix the tests on my mac where this
happens, and don't know how to introduce tests that would fail on
buildkite, so we have no coverage for this. Testing was done
manually on the CLI.
Also removed some useless converge_by statements that were
effectively double-logging. The methods that the converge_by's
were in are already wrapped by converge_by's in the superclass
so the resource is already "dirty" in the sense that it knows
that it is being updated, and the log message that e.g. the
user is being removed is already being printed. Some of the
sub-action logging with sub-converge_by's here is still good
since it shows the details of how the user is being added or
removed or modified which makes sense (still sort of abusing
converge_by to get only logging, but that doesn't matter because
we're in a block where we MUST be updating the resource anyway).
This commit also re-adds testing of unit+integration testing to the
omnibus pipeline.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'omnibus/omnibus-test.sh')
-rw-r--r-- | omnibus/omnibus-test.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh index 69a4f0a5ef..66114e005c 100644 --- a/omnibus/omnibus-test.sh +++ b/omnibus/omnibus-test.sh @@ -154,4 +154,7 @@ fi cd "$chef_gem" sudo -E bundle install -sudo -E bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec/functional +# NOTE: we have unit tests in chef/chef which ARE NOT unit tests. We need to run them on the actual shipping production artifact on the +# actual distro that they're expected to run on, or we lose test coverage, which leads to shipping regressions. We need to run all the +# tests here before shipping. +sudo -E bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation |