| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
|
|
|
|
|
| |
WARNING: Using `expect { }.not_to raise_error(SpecificErrorClass)` risks false positives, since literally any other error would cause the expectation to pass, including those raised by Ruby (e.g. NoMethodError, NameError and ArgumentError), meaning the code you are intending to test may not even get reached. Instead consider using `expect { }.not_to raise_error` or `expect { }.to raise_error(DifferentSpecificErrorClass)`. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /Users/pete/work/chef/spec/unit/resource_spec.rb:381:in `block (4 levels) in <top (required)>'.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
|
|
|
|
|
|
| |
We don't want / need the whole commit, but we need this
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
|
|\
| |
| | |
Warn during bootstrapping when using validation keys
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We should highly encourage users to move to validatorless bootstrapping
1) It's more secure
2) It requires less admin work since there no validation key to pass
around or rotate
This also provides an improved message helping the user to move off the
old keys and fixes some bad formatting where the 2nd line was indented
about 40 columns.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
|
|/
|
|
| |
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FileUtils.mkdir_p expects the mode to be in octal form. We accept Integers, but Ruby doesn't have a way to tell if what the user passed was octal or not. The safest thing to do here is to only accept mode as a String and then convert it to octal form with .to_i(8). This adds a new deprecation and correctly sets the file mode value as octal. Right now this feature works like this:
String mode: applies wrong permission
Base 10 mode: applies wrong permissions
Octal mode: Works
New behavior:
String mode: Works
Base 10 mode: Works but throws a deprecation warning
Octal mode: applies the wrong permissions and throws a deprecation warning
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Fix zypper_repository key handling on SLES 15+
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| |
| |
| | |
These aren't actually fingerprints. They're short key ids
https://futureboy.us/pgp.html#ShortKeyID
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
powershell gallery
Signed-off-by: sanga17 <sausekar@msystechnologies.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I recently discovered that when using
Chef::Application::Apply.new.run(enforce_license: false), chef-apply will still
run the license verification when I expected it to be disabled. It seems this
feature works if you install this as a gem, however if you build chef using
omnibus with this set, it refuses to work. I suspect this might be something
with appbundler.
I noticed that other binaries (i.e. solo) were using "run(enforce_license:
false)" instead of "run(enforce_license = false)" which chef-apply uses. If I
changed this to "run(enforce_license: false)", this worked as expected.
Signed-off-by: Lance Albertson <lance@osuosl.org>
|
|
|
|
|
|
| |
I confirmed these work with chefdk
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit de8d3a3299a18d4bfd2b419cb1303258441a862a.
This code works fine within Workstation, but it fails hard with DK. We
need to keep the DK verify checks running with Chef 15 until both of
these codebases go away. For now just revert this and roll forward with
life in master where we have the new paths
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We've changed up some things
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We've already done this on master
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
| |
Chad Jessup
This fixes bootstrapping on Windows. All credit goes to Chad Jessup <chad.jessup@gmail.com>
but since the original PR was left without DCO I'm replicating it here, with valid DCO.
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We're not using this
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Backport of some of #9646 to make it so Chef-16 style knife plugins
can run on Chef-15.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/
|
|
| |
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
|
|
|
|
|
|
|
| |
There's no need to calculate it here since this code will only ever run
on 15
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
| |
Use 2006 as the base year. Chef 15 goes EOL next year on 5-1-2021 so
2006 + 15 = 2021 and then we know it.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
|
| |
the bootstrap context isn't responsible for merging so this was always
testing the wrong behavior
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
|
|
| |
This looks like it never worked but we happened to never run into it until we added a desktop platform to the pipeline.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Also add a pile of specs
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Use the data files from the macos cookbook
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Windows 10 1909 is a service pack, but without being called a service pack.
1909 is a very small update over 1903, and in fact most of the binaries are not rebuilt.
The version for 1909 is 10.0.18363, but the version in many files is still 10.0.18362, which was the version for 1903.
This caused this functional test to fail on 1909 because 10.0.18362 != 10.0.18363. Nowhere else are we concerned with the file versions matching the OS version, so the fix is to match less of the version. By matching only '10.0', we should not see this again.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|\
| |
| | |
Fixed windows share cannot modify frozen string bug
|
| |
| |
| |
| | |
Signed-off-by: sanga17 <sausekar@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: sanga17 <sausekar@msystechnologies.com>
|
|\ \
| | |
| | | |
Skip the ifconfig functional tests if we don't have ifconfig
|
| |/
| |
| |
| |
| |
| | |
I'm looking at you Ubuntu 20.04
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Update all our links to use the new docs site format / cleanup descriptions
|
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks for pointing this out Ian
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/
| |
| |
| |
| |
| | |
When we migrated to hugo the URLs changed a bit. Nothing ends in .html and we moved all the resources into their own dir.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
Merging in this check broke the build tests on Windows hosts.
Signed-off-by: Tim Smith <tsmith@chef.io>
|