summaryrefslogtreecommitdiff
path: root/spec/functional/resource
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-1346-46/+46
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* update filter for opensuse and fix depsdheerajd-msys2020-04-131-1/+1
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* update test for opensusedheerajd-msys2020-04-131-0/+206
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* remove support for SLES11dheerajd-msys2020-04-131-206/+0
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* Add more typo fixesVivek Singh2020-04-073-34/+34
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* some spec typosVivek Singh2020-04-072-2/+2
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Skip the ifconfig functional tests if we don't have ifconfignet-toolsTim Smith2020-03-271-2/+2
| | | | | | I'm looking at you Ubuntu 20.04 Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove a functional test that was already well cover in unit testsTim Smith2020-03-231-7/+0
| | | | | | This is really unit test land Signed-off-by: Tim Smith <tsmith@chef.io>
* Tweak functional spec orderTim Smith2020-03-231-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update the cron functional tests for the new errorTim Smith2020-03-231-7/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Make the spec look more like realityTim Smith2020-03-231-4/+0
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix some invalid functional testsTim Smith2020-03-231-14/+9
| | | | | | | | | | | | | | | | | | This was setting a totally invalid cron timing: ``` # Chef Name: something @hourly * * * * /bin/true ``` This should be: ``` # Chef Name: something @hourly /bin/true ``` Signed-off-by: Tim Smith <tsmith@chef.io>
* 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>