Clinton Wolfe
4a63319840
Merge pull request #5871 from inspec/vasundhara/support-profile-gem-dependency
...
CFINSPEC-13: Adds support for specifying gem dependencies in the metadata file of InSpec Profile.
2022-03-09 19:44:05 -05:00
Vasu1105
c73dec70a7
CFINSPEC-13 Added exception handling for Gem BadRequirement error.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 21:16:18 +05:30
Clinton Wolfe
fb25c547d0
Add functional tests for resource_id
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 10:22:01 -05:00
Vasu1105
30f44b0462
CFINSPEC-13: Resolved the Unable to resolve gem dependency error on linux, Adds code to handle the loading of gems in the inspec check and fixed the test.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
b3f4c9c70a
CFINSPEC-13 Added check so that the adding gem to vendor set block will get called on Windows. Renamed the metadata file parameter name to provide gem dependencies.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
dbdc1223c4
CFINSPEC-13: Adds venendor gem in the managed gem set which partially fix the issue of resolving dependecies on Windows.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
8048ea2949
Removed the unwanted file
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
e3ef2cb912
CFINSPEC-13: Adds the ability to install and load the gem depedencies specified in the metadata file of profile/resource pack.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
87f5da5912
CFINSPEC-38: Fix test failing after release branch update.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-18 11:54:59 +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
Clinton Wolfe
43980e438d
Merge branch 'main' into ns/fully_waived
2021-10-20 17:51:09 -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
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
Clinton Wolfe
d564ab21c6
Merge pull request #5640 from inspec/spelling_fixes
...
Fix typos identified by cspell
2021-08-31 16:29:06 -04:00
Nikita Mathur
c85f49d0d8
Change to filter tags on both key and value basis of hashmap style tags
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-08-31 18:14:58 +05:30
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
Vasu1105
81b28c2c51
Change master to main branch for inspec-gcp and inspec-azure repo
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-08-31 14:04:38 +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
Vasu1105
99a170d7e5
Updated inspec-aws git url to replace branch to master to main
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-08-30 18:08:06 +05:30
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
Vasu1105
57c1484150
Adds one more profile inside the require_controls_test to check inheritance
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-04-27 19:29:13 +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
4dbee6b7bd
Alter split code to handle comments containing the word 'control', and rename some vars
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 16:25:09 -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
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
Nikita Mathur
094293b01d
Refactored logic to enable hash indifference in all input types
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 16:10:55 +05:30
Nikita Mathur
ec30fc3d4e
Hash with indifference changes for inputs used via runner api
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 14:41:35 +05:30
Nikita Mathur
a55b083b0a
Improvements in various descriptions and a better way to check for hash type
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-31 12:35:13 +05:30
Nikita Mathur
c0b213c46a
Bug fix for loading hashmap inputs consistently from external and metadata file
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-31 11:42:54 +05:30
Clinton Wolfe
8df0fb0814
Functional tests for command resource timeout
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Vasu1105
a0d669a0f0
Updated test so that can run in the test enviornment
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 19:15:50 +05:30
Vasu1105
7c25a2b5df
Updated test
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:23 +05:30
Vasu1105
0a62a6ac3b
Added functional test for FilterTable::ExceptionCatcher
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:22 +05:30
Vasu1105
45e9288e90
Revert "Profile to test the FilterTable::ExceptionCatcher issue"
...
This reverts commit 33e096f0854c0f156130fe610ab3ab8f8b65cad4.
2021-03-25 15:50:22 +05:30
Vasu1105
805cf46848
Profile to test the FilterTable::ExceptionCatcher issue
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:22 +05:30
Clinton Wolfe
3038ffa807
Merge pull request #5435 from collinmcneese/profile_init
2021-03-19 10:19:26 -04:00
Vasu1105
b180914889
Updated test for --controls option
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
9a404f5e0f
Fixed failing test in inputs_test.rb
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
a5932b7da7
Fixes 5215: While using --controls options the control block was also getting evaluated as filtering of the control was happening after evaluating so added the filter logic in the control_eval_context. Also when we have describe block outside control block we are we
...
generating a control for them automatically and then execute due that also becomes a control and has to add same logic to filter the control in that mehtod
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
df8d589e25
Removed readme file from test profile
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
b4d319610a
Fixing test cases
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Vasu1105
6853f6450e
Added test to catch the control execution issue while using controls option
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:11 +05:30
Collin McNeese
88f6d99be3
updates test fixutres for cloud profiles to use inputs instead of attributes
...
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 11:39:42 -05:00
Vasu1105
216306a219
removed unwanted README files from test fixtures and fixed some minor copy paste test
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-05 16:29:30 +05:30
Vasu1105
7dba4fa641
Fixes #5373 : Add option to filter empty profiles from report
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-04 22:09:48 +05:30
Clinton Wolfe
b07b85f582
Failing test case for deep skip_control issue 5300
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-16 17:59:14 -05:00