summaryrefslogtreecommitdiff
path: root/spec/functional/resource
Commit message (Collapse)AuthorAgeFilesLines
* DNF refresh and aarch64-el8 supportlcg/dnf-refreshLamont Granquist2020-03-191-157/+442
| | | | | | | | should port all fixes from the yum provider back into the dnf provider. adds aarch for el8 since the func tests now pass. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix windows_certificate functional tests under buildkiteKapil/GitHub-9435_Fix_windows_certificate_functional_tests_under_buildkiteKapil Chouhan2020-03-091-62/+62
| | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* Disable failing windows tests while we troubleshootTim Smith2020-03-061-54/+54
| | | | | | | | We have an active issue filed to get these tests fixed, but for now we need to make sure we can get builds to current so we can continue to validate Chef 16 builds. Signed-off-by: Tim Smith <tsmith@chef.io>
* Replaced dsc_resource to powershell_script resourceNAshwini2020-03-051-4/+4
| | | | Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
* Replace powershell_out to powershell_execNAshwini2020-03-051-2/+2
| | | | Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
* Remove support for PSVersion<5, optimized propertyNAshwini2020-03-051-19/+18
| | | | Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
* Add functional spec and review commentNAshwini2020-03-051-0/+91
| | | | Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
* Remove the last bits of Appveyor from the specsappveyorTim Smith2020-02-282-3/+2
| | | | | | We don't have Appveyor anymore. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove all the code that checks for Windows Nanonano_supportTim Smith2020-02-281-68/+7
| | | | | | Windows Nano isn't a thing anymore so we shouldn't spending compute time checking to see if we're on Windows Nano Signed-off-by: Tim Smith <tsmith@chef.io>
* More optimization of code and updated get_account_with_user_rights to return ↵Vasu11052020-02-261-2/+4
| | | | | | account_name with domain Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Did some more refactorign added more functional specs for missing scenariosVasu11052020-02-251-16/+56
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Using win32 api to fetch the account with user rights. Used this method in ↵Vasu11052020-02-241-19/+41
| | | | | | set action to set the users for privileges and removed dsc_resource code Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Replaced powershell_out with powershell_exec and updated data type for ↵Vasu11052020-02-231-4/+4
| | | | | | sensitive class Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* MSYS-1230 Migrating windows_user_privilege resource from windows cookbookVasu11052020-02-231-0/+129
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-082-3/+3
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove some references to Travis from code commentsnuke_travisTim Smith2019-09-162-6/+0
| | | | | | I removed the travis skips, but the comments were still there. Signed-off-by: Tim Smith <tsmith@chef.io>
* [macos] fix mac_user platform constraintsryan/fix-macos-buildRyan Cragun2019-09-101-4/+23
| | | | Signed-off-by: Ryan Cragun <ryan@chef.io>
* Merge pull request #8775 from chef/ryancragun/mac_userTim Smith2019-09-091-0/+188
|\ | | | | Add mac_user resource that is compatible with macOS >= 10.14
| * add functional testryancragun/mac_userRyan Cragun2019-09-031-0/+188
| | | | | | | | Signed-off-by: Ryan Cragun <ryan@chef.io>
* | bump mixlib-shellout floor and add func testing on optionsLamont Granquist2019-09-041-1/+19
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | only test these on rhel >= 8 where they worklcg/fix-dnf-rhel8Lamont Granquist2019-07-191-5/+5
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove rspec config for TravistravisTim Smith2019-07-092-4/+4
| | | | | | We're running this all in buildkite w/o issues. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix multiline stringLamont Granquist2019-07-081-9/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix 4 copsLamont Granquist2019-07-053-8/+12
| | | | | | | | | | | | | | - Layout/MultilineMethodCallBraceLayout - Layout/ClosingParenthesisIndentation - Layout/IndentFirstArgument EnforcedStyle: consistent - Layout/BlockEndNewline the first of these autocorrected to horrible looking code which exposed that we really needed the other three as well, which also cleaned up a bunch of other terrible looking code. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/SymbolProcLamont Granquist2019-07-053-10/+4
| | | | | | enforce pretzels. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/StringLiteralsInInterpolationLamont Granquist2019-07-059-19/+19
| | | | | | since we use double quotes, be consistent everywhere. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/ClassCheckLamont Granquist2019-07-051-2/+2
| | | | | | convert kind_of? to is_a? Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/RegexpLiteralLamont Granquist2019-07-051-2/+2
| | | | | | | given how many regexps we have with /'s in the match this seems like a very good one. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/NegatedIfLamont Granquist2019-07-051-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Layout/MultilineMethodCallIndentationLamont Granquist2019-07-021-3/+3
| | | | | | | | Layout/MultilineMethodCallIndentation: Enabled: true EnforcedStyle: indented Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/MethodCallWithoutArgsParenthesesLamont Granquist2019-07-022-6/+6
| | | | | | | | zero args methods don't get parens. this certainly reads better than the inverse. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/SymbolArrayLamont Granquist2019-07-022-2/+2
| | | | | | start enforcing using %i{} instead of arrays of symbols Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+1
| | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/AlignArgumentslcg/new-chefstyleLamont Granquist2019-07-021-5/+5
| | | | | | | | | | | | | | this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixes for chefstyle bumpLamont Granquist2019-07-023-7/+7
| | | | | | | | result of automation https://github.com/chef/chefstyle/pull/72 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Set permissions on /etc/init.d/inittest to get tests to pass on SLES 11Jeremiah Snapp2019-06-241-0/+1
| | | | | | | Chef::Resource::Service tests were failing on SLES 11 x86_64 and SLES 11 s390x because the permissions weren't correct. Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
* Enable All BK verification testsJaymala Sinha2019-06-041-1/+1
| | | | Signed-off-by: Jaymala Sinha <jsinha@chef.io>
* Fix service enable idempotency in sles11 (#8256)dheerajd-msys2019-05-231-0/+205
| | | | | | * fix service enable idempotency in sles11 Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* Merge pull request #8418 from cc-build/bulk_distro_constantLamont Granquist2019-04-291-12/+13
|\ | | | | "chef-client" => #{Chef::Dist::CLIENT}
| * chef-client => Chef::Dist::CLIENTMarc Chamberland2019-04-261-12/+13
| | | | | | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* | Add start_when_available support to windows_taskVivek Singh2019-04-261-0/+51
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Merge pull request #8168 from ↵Bryan McLellan2019-04-261-2/+2
|\ \ | |/ |/| | | | | MsysTechnologiesllc/Vijay/MSYS-958_write_permissions_does_not_work_properly_on_windows Fix for write permissions were not working properly on windows
| * Minor fixes as per the review commentsvijaymmali19902019-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | - Using proper verbiage for constant SUBFOLDERS_AND_FILES_ONLY - Source https://metacpan.org/pod/Win32::Security::ACE#dbmAceFlags - Minor DRY up and Fixes - Ensured chefstyle Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
| * - Minor fixes to fix functional test casesvijaymmali19902019-02-111-2/+2
| | | | | | | | | | | | | | | | - Added functional test cases for deny_rights option - Ensured chef style - Fixes MSYS-958 Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* | Limit locale resource to LinuxBryan McLellan2019-04-151-45/+64
| | | | | | | | | | | | Platforms that don't use /etc/locale.conf aren't supported Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | Merge pull request #8359 from chef/btm/fix-dsc-test-errorsTim Smith2019-04-111-1/+1
|\ \ | | | | | | Don't force DSC functional tests to PS4
| * | Don't force DSC functional tests to PS4btm/fix-dsc-test-errorsBryan McLellan2019-04-111-1/+1
| | | | | | | | | | | | | | | | | | New Windows platforms like 2016 have Powershell 5. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | | Avoid accidentally reusing a gid in testsBryan McLellan2019-04-111-1/+12
|/ / | | | | | | | | | | | | Some platforms have groups in odd ranges, make sure the gid we select is not in use. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | locale resource: Add support to set all LC ENV variablesNimesh-Msys2019-04-041-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | - Deprecated `lc_all` - Provided other features like generate locale if it is not available - Removed system dependancy - Added unit and functional test cases - Added YARD format comments - Ensured Chefstyle - Fixes: MSYS-988 Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* | windows_certificate: Import root/nested certificates while importing P7B ↵Nimesh-Msys2019-02-251-0/+75
| | | | | | | | | | | | | | | | | | | | certificates - P7B might contain multiple certificates and we should not miss the internal one while import. - Added test cases and ensured chef-style - Fixes: MSYS-977 Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>