Commit graph

569 commits

Author SHA1 Message Date
Sonu Saha
265e2a5db6
Fix Windows CI by not installing html-proofer for Ruby < 3.0 (#6496)
* Resolve html-proofer issue for Ruby 2.7

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Update test to pass on windows
the tests are taken care on main

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* LINT: Add newline after guard clause

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-04-04 09:59:43 -04:00
Nikita Mathur
7668329aa5 Test case added for verifying running of same profile with different versions
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 17:42:18 -04:00
Vasu1105
a1115a6385 Fixes azure connection test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-09 10:47:04 +05:30
Vasu1105
33624303f9 CFINSPEC-250: Fix for inspec json command does not populate the attribues/inputs for the profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-12 10:52:34 -04:00
Vasu1105
75381f547d CFINSPEC-181: Fix unable to upload inspec compliance profile using to Chef Automate.
Add --with-cookstyle option to inspec check command to disable cookstyle check as default

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-04-18 17:50:52 -04:00
Vasu1105
1dc1c29dde Fix lint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 14:28:02 -05:00
Vasu1105
f283dfba26 Skip the test on Windows uuid generation using helper method in test generates blank string on Windows due to which it fails
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 14:27:47 -05:00
Vasu1105
52da5ea4ee Skip aws test as it looking for credentials.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 14:27:35 -05:00
Vasu1105
a35e3ba17f CFINSPEC-68: Fix aws test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 14:27:24 -05:00
Vasu1105
e291f09bc1 CFINSPEC-68 Fix test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 14:27:08 -05:00
Nikita Mathur
edddb92f76 Basic test case added for streaming reporter plugin type
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-02-04 17:28:09 +05:30
Vasu1105
e26ef71a6b adds test for core resource iheritance in custom resource
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-01 15:16:12 +05:30
Nikita Mathur
8f06362cab Test cases and documentation added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-11-29 19:12:30 +05:30
Clinton Wolfe
48976409ea Skip functional cookstyle tests on windows
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-11-15 23:55:22 -05:00
Clinton Wolfe
497cf9ab98
Merge pull request #5618 from inspec/nm/check-cookstyle
Integrate InSpec check with Cookstyle
2021-10-25 19:32:45 -04:00
Clinton Wolfe
43980e438d
Merge branch 'main' into ns/fully_waived 2021-10-20 17:51:09 -04:00
Nikita Mathur
ced270725d Change after code review on cookstyle check
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-29 13:23:35 +05:30
Nikita Mathur
811e10b606 Build fix for vendor test
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-29 13:23:35 +05:30
Nikita Mathur
1de38f3b13 Build fix for archive and vendor tests due to cookstyle offenses
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-29 13:23:35 +05:30
Nikita Mathur
ab1d423a35 Use only inspec cops of cookstyle gem
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-29 13:23:35 +05:30
Nikita Mathur
bedde88849 Integrate inspec check with cookstyle
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-29 13:23:35 +05:30
Vasu1105
3e9223d603 Fixed lint and failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-09-28 11:57:21 +05:30
Vasu1105
761fa4338e Fix - controls option was not working for depedent profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-09-28 11:19:04 +05:30
Clinton Wolfe
993c9d9225
Merge pull request #5657 from inspec/nm/tags-dependent
Fix --tags filter for dependent profiles
2021-09-28 00:35:32 -04:00
Nikita Mathur
1d8b19fa98 Fix --tags filter for dependent profiles
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-07 16:49:32 +05:30
Vasu1105
06bb90244d Update code to remove ruby 2.4 support
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-09-01 18:07:56 +05:30
Clinton Wolfe
28956c0cf5
Merge pull request #5643 from inspec/nm/tags-fix
Fix tags processing issue in profiles
2021-08-31 23:40:56 -04:00
Nikita Mathur
ddcb096666 Fix control tags fetching logic which was breaking profiles with tags used
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-08-31 17:17:27 +05:30
Tim Smith
403647c3e4 Fix typos identified by cspell
Just a pile of misc typos

Signed-off-by: Tim Smith <tsmith@chef.io>
2021-08-30 16:49:46 -07:00
Nikita Mathur
a16e9fcf45 Tag based filtering for controls - initial commit
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-07-09 19:03:15 +05:30
Clinton Wolfe
741806bf83
Merge pull request #5551 from inspec/vasundhara/fix-mysql-session-resource
Fix mysql_session resource to raise exception if there is a error in connection or in query
2021-06-09 20:48:55 -04:00
Vasu1105
6f4bd2413d Fixed failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-06-04 17:24:28 +05:30
Nikita Mathur
3eea2b055a Fix related to loading dependent profiles from a profile in shell
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-31 21:38:35 +05:30
Nikita Mathur
209948d3fd no color change where no ansi code is used at all
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-19 14:39:10 +05:30
Nikita Mathur
f9659bfaf0 Test cases and color code changes for no-color option in detect cmd
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-18 16:09:42 +05:30
Clinton Wolfe
02e8e9cc9c Ran chefstyle -a
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-09 23:59:04 -04:00
Nikita Mathur
fe2ec54d31 Build fix for error that occured after automate alias release
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-07 16:42:19 +05:30
Nikita Mathur
ea6760c2c0 Undid changes of required validation to fix build errors
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-21 12:33:54 +05:30
Nikita Mathur
e77d5331c5 Added new pattern option, fix for input options on dsl and functional test cases for input options
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-21 12:33:54 +05:30
Clinton Wolfe
e673b332a3
Merge pull request #5465 from inspec/cw/source-in-reporter
Optionally include controls source code in CLI reporter
2021-04-20 13:24:15 -04:00
Clinton Wolfe
1056b84326 Add functional test for --reporter-include-source
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-15 16:16:12 -04:00
Clinton Wolfe
46541a7cae Typo in test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:25:09 -04:00
Clinton Wolfe
c21055af62 Rename --ludicrous-speed to --filter-waived-controls and reword usage message
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:25:09 -04:00
Nick Schwaderer
bb5cfbd434 Implement retain-waiver-data to keep 100% feature-ability
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:20:02 -04:00
Nick Schwaderer
ac8ee33b63 Extend nuke_waivers
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:19:17 -04:00
Nick Schwaderer
db3e2751d6 Sets up testing and expectation for completely nuked waived controls
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2021-04-08 16:18:35 -04:00
Nikita Mathur
8d22d0a360 Code linting issue fixed
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 16:04:09 +05:30
Nikita Mathur
5865cdd1c4 Added input and input file option for shell, along with functional test cases
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 13:54:12 +05:30
Clinton Wolfe
fa41586910
Merge pull request #5446 from inspec/nm/fix-input-hash-access
Bug fix for loading hashmap inputs consistently
2021-04-07 08:49:53 -04:00
Nikita Mathur
82e126726b Improvements in hashmap profiles
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-07 16:09:27 +05:30