summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1305 from chef/remove_old_virtualboxTim Smith2018-11-262-53/+0
|\ | | | | Remove circa ~2005 virtualization hypervisor detection
| * Remove circa ~2005 virtualization hypervisor detectionremove_old_virtualboxTim Smith2018-11-262-53/+0
| | | | | | | | | | | | | | | | | | | | This removes support for the following legacy virtualization hypervisors that were based on the VirtualPC tech that Microsoft bought from Connectix and then rebranded. It never worked on Windows 2008 / 7 or later. It's just dead tech that no one is using at this point. See for release details: https://en.wikipedia.org/wiki/Microsoft_Virtual_Server Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #1301 from chef/nuke_old_specsTim Smith2018-11-2619-2406/+0
|\ \ | |/ |/| Remove old spec files
| * Remove old spec filesnuke_old_specsTim Smith2018-11-2419-2406/+0
| | | | | | | | | | | | These are unused and add 10k to the gem size. Signed-off-by: Tim Smith <tsmith@chef.io>
* | :art: :hammer: rename virtualization[:host] to virtualization[:hypervisor_host]Ressl Robert2018-11-251-1/+1
| | | | | | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
* | :art: :pencil: change describe of test for Hyper-V guest and the hostname of ↵Ressl Robert2018-11-251-1/+1
| | | | | | | | | | | | the host Signed-off-by: Ressl Robert <r.ressl@safematix.com>
* | :umbrella: :pencil: add tests for function to load hyper_v hostname from guestRessl Robert2018-11-251-0/+13
|/ | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
* Revert "Remove the Ruby < 2.5 logic from the FIPS plugins"Tim Smith2018-11-242-18/+109
| | | | This reverts commit 63f35470d70930b3d98acb7058d4584178f98246.
* Remove the Ruby < 2.5 logic from the FIPS pluginsTim Smith2018-11-242-109/+18
| | | | | | So much to delete here. Signed-off-by: Tim Smith <tsmith@chef.io>
* use dummy ipaddress and empty stringsawanoboly2018-11-081-2/+6
| | | | Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
* Removed unused refresh_plugins method in System classrefresh_pluginsTim Smith2018-10-261-67/+0
| | | | | | We don't run this via Ohai or Chef anymore. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the deprecated system_profiler pluginTim Smith2018-10-262-79564/+0
| | | | | | This has been replaced by the hardware plugin on macOS. Signed-off-by: Tim Smith <tsmith@chef.io>
* Correctly detect SLES 15 systems as "suse" platformTim Smith2018-10-101-1/+2
| | | | | | This was a mistake when we introduced it. The system self identifies as SLES, but we need to make that suse to align with SLES 11/12 detection in Ohai. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1266 from jaymzh/finish_fs2_workTim Smith2018-10-102-33/+378
|\ | | | | [filesystem] Convert rest of unix to fs2
| * [filesystem] Convert rest of unix to fs2Phil Dibowitz2018-10-062-33/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR [almost] finishes the implementing support for the "filesystem2" format for the rest of the platforms that were never converted - everything except Windows which will be in a follow-up PR. Here's some other cleanup along hte way: * Fix the fact that "allow_partial_data" only worked on Linux. Oops. * Add helper for "allow_partial_data" stuff so that "allow_partial_data" support was easy to be consistent about * Always get all ZFS options, no reason not to provide all data * Change the way zfs options are laid out. The existing way separates everything into two hashes that need be correlated by the user and doesn't seem to make much sense. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* | Merge pull request #1262 from jaymzh/unify_cpu_pluginTim Smith2018-10-046-9/+9
|\ \ | | | | | | Unify the cpu plugin
| * | Unify the cpu pluginPhil Dibowitz2018-10-036-9/+9
| |/ | | | | | | | | | | | | Utilize the Ohai 7 syntax to keep the code for all these variations of the plugin in the same place and consistent. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* | Unify the OS pluginsPhil Dibowitz2018-10-033-67/+33
|/ | | | | | | Utilize the Ohai 7 syntax to keep the code for all these variations of the plugin in the same place and consistent. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Avoid gathering all data with sysctl which seems to hangTim Smith2018-09-271-2/+2
| | | | | | | | | | While it works fine for me @bdausses was seeing chef-client hang forever. It turns out running sysctl -a on his host was causing the system to hang. Besides this crash it actually takes about 2x longer to gather the additional data. This shaves a whole 0.033255 seconds from the total runtime. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1240 from jugatsu/fix-root-group-plugin-on-localizedTim Smith2018-09-141-4/+12
|\ | | | | Fix root_group plugin invalid byte sequence on non-English version of Windows
| * Fix rspec unit test for root_group pluginAnton Kvashenkin2018-09-121-2/+5
| | | | | | | | Signed-off-by: Anton Kvashenkin <anton.jugatsu@gmail.com>
| * Change rspec unit test for root_group pluginAnton Kvashenkin2018-09-121-4/+9
| | | | | | | | Signed-off-by: Anton Kvashenkin <anton.jugatsu@gmail.com>
* | Merge pull request #1244 from higanworks/opnstack_timeout_from_ConfigTim Smith2018-09-101-4/+22
|\ \ | | | | | | override timout by Ohai::Config.ohai[:openstack_metadata_timeout]
| * | run rake style:auto_correctsawanoboly2018-09-101-1/+1
| | | | | | | | | | | | Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
| * | override timout by Ohai::Config.ohai[:openstack_metadata_timeout]sawanoboly2018-09-101-4/+22
| |/ | | | | | | Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
* | Add "EncryptionStatus" to each volume on WindowsNimesh2018-09-081-0/+226
|/ | | | | | | | | | - Changes to fetch Encryption Status of a volume using GetConversionStatus method of Win32_EncryptableVolume class - Handle wmi exceptions when a namespace or class is not accessible - Added test cases - Minor code fixes and cleanup - Fixes MSYS-894 Signed-off-by: Nimesh <nimesh.patni@msystechnologies.com>
* Uniquely name our network plugin helper methodsTim Smith2018-08-221-9/+9
| | | | | | Simple fix for now that unbreaks the linux network plugin. Signed-off-by: Tim Smith <tsmith@chef.io>
* Prefer ipv4 for default_gateway over ipv6 on windowsNimesh2018-08-211-0/+137
| | | | | | | | | | | - Minor fix to select default_interface based on the least metric value - Fix to prefer default_fateway in IPV4 Format - DRY-UP to get interface_code - Commented as per YARD format - Added test cases - Fixes: MSYS-875 Signed-off-by: Nimesh <nimesh.patni@msystechnologies.com>
* Account for directory being a string via client.rbTim Smith2018-08-071-1/+11
| | | | | | Make sure it's an array before we .each it and add a spec that passes it as a string Signed-off-by: Tim Smith <tsmith@chef.io>
* Make sure we test multi-directory parsingTim Smith2018-08-071-4/+5
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Load collect_data() even if we've already seen itbtm/fix-multiple-plugin-loadingBryan McLellan2018-07-122-12/+11
| | | | | | | | | | | | | | | If we happen to load a plugin with the same name twice, we refuse to run #collect_data but we still load the rest of the plugin, which means you get #collect_data from the first plugin and rest of the plugin from the last plugin. This makes it so you get #collect_data from the last plugin as well. I don't know how to use the logger from the class method so I fell back to `Ohai::Log`. Happy to fix that if someone knows the magic. Fixes #1212 Signed-off-by: Bryan McLellan <btm@chef.io>
* Merge pull request #1210 from chef/sp/1209Tim Smith2018-07-091-0/+45
|\ | | | | Add system_enclosure plugin for Windows
| * Addressing Chefstyle issuessp/1209Stuart Preston2018-07-101-3/+3
| | | | | | | | Signed-off-by: Stuart Preston <stuart@chef.io>
| * Fix copyright on specStuart Preston2018-07-041-4/+2
| | | | | | | | Signed-off-by: Stuart Preston <stuart@chef.io>
| * Use fake data for mockingStuart Preston2018-07-041-4/+4
| | | | | | | | Signed-off-by: Stuart Preston <stuart@chef.io>
| * Use wmilite instead of shelling out to PowerShellStuart Preston2018-07-041-0/+47
| | | | | | | | Signed-off-by: Stuart Preston <stuart@chef.io>
* | Merge pull request #1214 from chef/fix_amazon_2Tim Smith2018-07-061-0/+16
|\ \ | | | | | | Properly detect Amazon Linux 2 final release platform version
| * | Add tests for Amazon Linux 2 detectionTim Smith2018-06-271-0/+16
| |/ | | | | | | | | | | Past and current string tests Signed-off-by: Tim Smith <tsmith@chef.io>
* | fixes for new chefstyle rulesLamont Granquist2018-07-0582-7296/+7294
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* detect red hat openstack clusterstm/rhat_ostackThom May2018-05-301-5/+24
| | | | Signed-off-by: Thom May <thom@chef.io>
* Fix an issue caused by using the wrong field in the AIX filesystem plugin.Joshua Justice2018-05-211-10/+10
| | | | | | Also alters the test to reveal the exact nature of the issue. Signed-off-by: Joshua Justice <jjustice6@bloomberg.net>
* Remove unnecessary parenthesescleanupTim Smith2018-05-181-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* [filesystem] Unify plugins, bring BSD into the modern agePhil Dibowitz2018-05-043-3/+14
| | | | | | | | | | | | We never converted anything other than mac or linux because we're clowny, and now BSD and other Unixes has a totally different API than Mac and Linux. This creates a single plugin so they can leverage the helper classes, and moves mac, linux and BSD into it, and adds full support for BSD. This starts to fix #1180 Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Merge pull request #970 from chef/dmi_idsTim Smith2018-05-031-17/+25
|\ | | | | Make the DMI IDs we whitelist configurable
| * Add a spec for passing additional DMI IDsdmi_idsTim Smith2018-04-171-2/+9
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Allow configuring what DMI IDs we whitelistTim Smith2018-04-171-17/+18
| | | | | | | | | | | | A lot of people want their OEM / IPMI dmi data. It’s super handy to have. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #1175 from coderanger/shard-less-optionalThom May2018-05-031-11/+69
|\ \ | | | | | | Make the shard plugin work under FIPS by using SHA2 instead of MD5
| * | The danger of negative tests.Noah Kantrowitz2018-05-011-1/+1
| | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | Add support for using the OS serial number instead of the BIOS serial number ↵Noah Kantrowitz2018-05-011-3/+11
| | | | | | | | | | | | | | | on Windows. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | Add support for all OSes, with special guest star Windows.Noah Kantrowitz2018-05-011-2/+36
| | | | | | | | | | | | | | | This makes things work basically the same on all platforms, as much as possible. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>