Commit graph

2564 commits

Author SHA1 Message Date
Clinton Wolfe
0b587a98af Add ability to export metadata and README
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
0553b7a359 Add validation options for --what and --format, add (failing) tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Vasu1105
b64857358a CFINSPEC-192: Alias inspec json command to inspec export --format json
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
28f6eec56a Fix failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
3f22d899fb Fixed failing test and adds test for signed dependent profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
c937573763 Adds test to execute signed profile.
Fixes failing test.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
9ef83bfce8 Updated to generate binary format of the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
163095859d CFINSPEC-252: Fix profile gem dependency installation is failing when gem version is not specified.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:18:03 +05:30
Clinton Wolfe
673000d64c
Merge pull request #6056 from inspec/vasundhara/fix-json-output-inputs
CFINSPEC-250: Fix for inspec json command does not populate the inputs for the profile
2022-05-12 10:48:38 -04:00
Vasu1105
e5e9bb0608 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 13:34:32 +05:30
Chef Expeditor
1d672feca4
UNIT_TESTS: update yaml reporter test for Ruby 3+
Signed-off-by: Marijus Ravickas <marijus.ravickas@gmail.com>
2022-05-09 10:15:15 +03:00
Sonu Saha
601df86d41 CFINSPEC-90: Add unit test for new properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-07 00:32:23 +05:30
Sonu Saha
72a986ace3 CFINSPEC-90: Correct existing unit test for windows to include ipv6 address
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-07 00:22:12 +05:30
Clinton Wolfe
e62d10fabc
Merge pull request #6004 from inspec/ss/enhance-zfs-resource
CFINSPEC-96: Add `zfs` resource
2022-05-06 09:28:01 -04:00
Sonu Saha
7fd4e76efb CFINSPEC-95: Extend unit test for have_purpose matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 16:21:19 +05:30
Sonu Saha
0bbea5eac5 CFINSPEC-95: Fix indentation
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 15:57:27 +05:30
Sonu Saha
82b86064d6 CFINSPEC-95: Add unit test for new matchers & properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 15:55:16 +05:30
Sonu Saha
b087b4b38f CFINSPEC-84: Fix typo in unit test comment
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-01 12:31:51 +05:30
Sonu Saha
8ea7a2ae41 CFINSPEC-96: Fix typo and modify classname appropriately
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-01 12:22:31 +05:30
Sonu Saha
b9125c3ac2 CFINSPEC-84: Fix lint offenses
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-29 10:03:42 +05:30
Clinton Wolfe
fa19d29bc8
Merge pull request #5998 from inspec/ss/fix-service-resource-for-amazon-linux-issue-5809
Fix for issue 5809 Service checks failing on Amazon linux 2022
2022-04-27 20:59:27 -04:00
Sonu Saha
f1e03bab3a CFINSPEC-84: Add unit test for x509_private_key
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-27 15:59:40 +05:30
Sonu Saha
038d284f32 CFINSPEC-96: Add unit test for zfs resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-21 21:06:46 +05:30
Sonu Saha
870c4b4b99 CFINSPEC-92: Add unit test for introduced matcher & property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-20 21:18:27 +05:30
Sonu Saha
f2958b91a8 CFINSPEC-92: Add unit test for count property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-20 21:18:27 +05:30
Sonu Saha
a8fb7bba1d Issue-5809: Fix for service resource on amazon linux
Commented out unit test for Amazon 1 Linux

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-20 16:52:07 +05:30
Sonu Saha
e7726bf7c2 CFINSPEC-78: Complete unit test for the resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:33:07 +05:30
Sonu Saha
be4e6f7594 CFINSPEC-78: Add unit test for be_enabled and be_running
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:33:01 +05:30
Clinton Wolfe
bfb02ce8a2
Merge pull request #5987 from inspec/ss/enhance-group-resource
CFINSPEC-89: Enhance `group` resource
2022-04-18 18:06:20 -04:00
Clinton Wolfe
7fddb8c772
Merge pull request #5981 from inspec/ss/enhance-service-resource
CFINSPEC-93: Enhance `service` resource
2022-04-18 18:04:16 -04:00
Clinton Wolfe
387e3d25c8
Merge pull request #5986 from inspec/ss/enhance-file-resource
CFINSPEC-87: Enhance `file` resource
2022-04-18 17:59:19 -04:00
Vasu1105
07f6793533 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-14 21:47:10 +05:30
Sonu Saha
c4d7b24d25 CFINSPEC-87: Fix typos in exception message
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 10:11:26 +05:30
Clinton Wolfe
b1d113e986
Merge pull request #5979 from inspec/ss/add-default_gateway-resource
CFINSPEC-75: Add default_gateway resource
2022-04-13 17:59:52 -04:00
Sonu Saha
a8aa8f4b29 CFINSPEC-89: Add unit test for have_gid matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 16:53:42 +05:30
Sonu Saha
c83f146687 CFINSPEC-87: Add unit test for new matcher & properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 13:24:58 +05:30
Sonu Saha
bb47d7fe21 CFINSPEC-93: Extend unit test for introduced matchers
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 10:51:58 +05:30
Sonu Saha
606049abf9 Add service -l mock called in FreeBSD10Init info
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-11 19:37:02 +05:30
Sonu Saha
88fc2c3e38 Revert changes made in service_test
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-11 19:33:04 +05:30
Sonu Saha
3d5d6086ae Fix unit test for service resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-11 18:21:21 +05:30
Sonu Saha
3500d962e6 CFINSPEC-75 Add default_gateway unit test
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-07 09:09:03 +05:30
Sonu Saha
c64d92f470 CFINSPEC-83: Correct comments in unit test
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-06 21:11:58 +05:30
Sonu Saha
1759912ade CFINSPEC-83: Add unit test and associated changes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-06 21:11:48 +05:30
Clinton Wolfe
5a8e6aaccb
Merge pull request #5961 from inspec/ss/add-mail_alias-resource
CFINSPEC-80: Add mail alias resource
2022-04-06 09:31:08 -04:00
Clinton Wolfe
5b6540c563
Merge pull request #5959 from inspec/ss/enhance-user-resource
CFINSPEC-94: Enhance user resource
2022-04-06 09:28:19 -04:00
Sonu Saha
853afe2244 CFINSPEC-80: Improve grep to match sentence starting with alias followed by :
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 15:07:06 +05:30
Clinton Wolfe
b1835bf9f9
Merge pull request #5945 from inspec/ss/enhance-docker-image
CFINSPEC-86: Enhance docker_image resource
2022-03-30 19:56:48 -04:00
Clinton Wolfe
a484f3e354
Merge pull request #5944 from inspec/ss/enhance-docker-container
CFINSPEC-85: Enhance docker_container resource with have_volume matcher
2022-03-30 19:53:52 -04:00
Sonu Saha
65f4766bec CFINSPEC-80: Define aliased_to matcher and add unit test
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 17:26:15 +05:30
Sonu Saha
f1f0ecb631 CFINSPEC-80: Skeleton of resource, unit test and doc
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 16:11:12 +05:30
Sonu Saha
1a5c6c2772 CFINSPEC-94: Add unit test for introduced matchers and properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
f6115c7aeb CFINSPEC-86: Add comments and unit test for invalid keys
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:49:01 +05:30
Sonu Saha
f1073f26f5 CFINSPEC-85: Unit test for no mounted volumes and non existing container
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:24:27 +05:30
Sonu Saha
617f1634e3 CFINSPEC-85: Handle multiple mounts for docker container
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 10:51:06 +05:30
Clinton Wolfe
d86112bad7 Intercept width warning message for plugin list
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-23 14:37:59 -04:00
Sonu Saha
968537da1e CFINSPEC-86: Correct RuboCop Lint offenses
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:12:09 +05:30
Sonu Saha
2c4b8bab40 CFINSPEC-86: Add unit test for docker_image inspect attributes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:12:09 +05:30
Sonu Saha
c43ef573b8 CFINSPEC-85: Fix lint that's offensive to RuboCop
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 22:43:02 +05:30
Sonu Saha
800bf5391a CFINSPEC-85: Add unit test to check for mounted volumes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 22:35:08 +05:30
Clinton Wolfe
818f3dc6dc
Merge pull request #5938 from inspec/nm/oracle-empty-case
CFINSPEC-156 Oracle query fix when empty result
2022-03-23 10:13:57 -04:00
Clinton Wolfe
22f8e1a6e7
Merge pull request #5936 from inspec/nm/plugin-search-list-description
CFINSPEC-118 Description added in plugin list and search command
2022-03-23 09:48:36 -04:00
Clinton Wolfe
a15280fcc5
Merge pull request #5937 from inspec/vasundhara/fix-postgres-session-resource
CFINSPEC-154: postgres_session resource allow query errors to be treat as failures.
2022-03-23 09:44:06 -04:00
Clinton Wolfe
03d0f2374b
Merge pull request #5935 from inspec/ss/resource-cgroup
CFINSPEC-73: Add cgroup resource
2022-03-23 09:39:32 -04:00
Clinton Wolfe
4c351b00c8
Merge pull request #5931 from inspec/ss/resource-ppa
CFINSPEC-82: Add ppa resource
2022-03-23 09:36:48 -04:00
Sonu Saha
4f151bd72c CFINSPEC-73: Add unit test and relevant files for cgroup
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 08:40:34 +05:30
Sonu Saha
c5a66f58a6 CFINSPEC-73: Initial draft of cgroup resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 07:54:11 +05:30
Nikita Mathur
0f4ccee07e Oracle session resource fix when empty results and zero rows
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-22 17:05:31 +05:30
Nikita Mathur
a8716f8dda More build fixes and pr review changes
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-22 15:52:45 +05:30
Vasu1105
2d0d972d65 CFINSPEC-154: Updates postgres_session resource to raise exception only in case of connection and authentication error and allow any errors in query to be fetched using output property(keeping earlier behaviour).
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-22 15:12:44 +05:30
Nikita Mathur
311c22c062 webmock test cases fix for loader and installer tests
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-21 19:08:36 +05:30
Sonu Saha
5f3570ee7a CFINSPEC-82: Add unit test and documentation for ppa resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-17 22:59:16 +05:30
Sonu Saha
73920f76bc CFINSPEC-79: Raise exceptions and add relevant unit test for unsupported os
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 16:47:55 +05:30
Sonu Saha
ee9bbeb03c CFINSPEC-79: Add unit test for non existing container
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 15:34:47 +05:30
Sonu Saha
36bf43f350 CFINSPEC-79: Add unit test and its related changes for lxc resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 15:34:47 +05:30
Sonu Saha
24b8f13708 CFINSPEC-79: Initial draft for lxc resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 15:34:47 +05:30
Clinton Wolfe
02f97ac845
Merge pull request #5916 from inspec/RESOURCE-312-extend-filter-table
RESOURCE-312 extend filter table to lazy loading for resource instances
2022-03-11 14:39:54 -05:00
Sathish
27099d6052
fix style
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-11 19:28:34 +05:30
Vasu1105
a491b2a0d7 CFINSPEC-137 Fix Windows test failures
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 18:35:14 +05:30
Sathish
d65365cb83
remove unused args
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-11 18:28:28 +05:30
Sathish
2a9750bd08
add self to the local instance method
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-11 18:28:00 +05:30
Vasu1105
6e930303a4 Fix test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 17:31:08 +05:30
Vasu1105
adfe38c161 CFINSPEC-137: Set the target_id to blank string if unable to fetch it from train
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 15:47:50 +05:30
Vasu1105
ab01652ee2 CFINSPEC-137: Fix the failing test and lint for the --target-option deprication changes
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 15:47:50 +05:30
Vasu1105
8e85e2005b CFINSPEC-137: Deprecate --target-id option
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 15:47:50 +05:30
Clinton Wolfe
63a5fd26a6
Merge pull request #5597 from mitre/firewalld_update
Firewalld update -- exposed more fields, updated docs, added custom matchers
2022-03-10 15:40:17 -05:00
Clinton Wolfe
b6b2fd385b
Merge pull request #5915 from inspec/nm/remove-cloud-resources
CFINSPEC-129 Removed cloud resources ( AWS & Azure ) from inspec-core
2022-03-10 15:24:59 -05:00
Clinton Wolfe
ee70d0e200 Update tests to match new deprecation message
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 14:35:14 -05:00
Clinton Wolfe
17c6010092
Merge pull request #5895 from inspec/vasundhara/support-generating-target-id
CFINSPEC-68 Adds target_id in the reporter.
2022-03-10 14:15:45 -05:00
Clinton Wolfe
db1b5abaa3 Add tests for lazy_instance
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 13:51:04 -05:00
Clinton Wolfe
06c30ac536
Merge pull request #5913 from inspec/ss/feature-resource-generator
CFINSPEC-128 : Create a resource generator
2022-03-10 12:22:21 -05:00
Vasu1105
30ef9648c4 Fix lint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 20:45:23 +05:30
Vasu1105
13f9376a63 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 20:45:23 +05:30
Vasu1105
bd8c5f7cbf Skip aws test as it looking for credentials.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 20:45:23 +05:30
Vasu1105
f7fdadc617 CFINSPEC-68: Fix aws test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 20:45:23 +05:30
Vasu1105
72ba700669 CFINSPEC-68 Fix test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 20:45:23 +05:30
Clinton Wolfe
571d84fabd
Merge pull request #5914 from inspec/vasundhara/add-entitlement-id-to-profile-metadata-file
CFINSPEC-26: Adds entitlement_id field in metadata file
2022-03-10 09:41:18 -05:00
Clinton Wolfe
638522f0e0 Working unit tests, holey moley
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
e3108aabf0
Merge pull request #5891 from inspec/vasundhara/add-cron-resource
CFINSPEC-74 Adds the cron resource.
2022-03-10 09:37:23 -05:00
Clinton Wolfe
105ed49b43
Merge pull request #5909 from inspec/vasundhara/fix-breaking-test-on-windows
Fix failing test for ibmdb2_session resource.
2022-03-10 09:35:08 -05:00
Nikita Mathur
9e1ef742f8 Test cases fixed and new test cases added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-10 19:24:52 +05:30
Nikita Mathur
41ba05f901 Removed aws and azure resources, unit and integration tests
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-10 19:24:52 +05:30
Vasu1105
419285130c Fix failing test for ibmdb2_session resource.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 17:53:18 +05:30
Vasu1105
195de004e1 CFINSPEC-26: Adds entitlement_id field in metadata file
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 13:26:13 +05:30
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
Will Dower
23d1749ee8 merging in master
Signed-off-by: Will Dower <wdower@mitre.org>
2022-03-07 15:53:10 -05:00
Clinton Wolfe
32c9f567f4
Merge pull request #5863 from inspec/nm/progress-bar
CFINSPEC-10 Added Progress Bar streaming reporter plugin
2022-03-07 10:28:39 -05:00
Clinton Wolfe
c331486baf Fix YAML reporter tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 11:00:47 -05:00
Clinton Wolfe
d600089931 Fix JSON automate unit test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 10:53:22 -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
Clinton Wolfe
edf019b0df Fixed json unit test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 09:41:40 -05:00
Clinton Wolfe
3d8f5f9553 Revert "Revert "CFINSPEC-70 Added resource_id attribute for the custom resources in the base class""
This reverts commit 302bccf732.
2022-03-04 09:15:52 -05:00
Clinton Wolfe
524aa15af0 Add validation and testing for the same
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 00:34:46 -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
9a561bce54 CFINSPEC-13: Adds code to handle all kinds of version constraint and improved installed gem search logic for the version constraint.
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
b1ce116ebb CFINSPEC-13: Adds the support to load the gem dependencies from dependent profiles.
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
Clinton Wolfe
302bccf732
Revert "CFINSPEC-70 Added resource_id attribute for the custom resources in the base class" 2022-03-03 23:48:32 -05:00
Sonu Saha
ccdfcd0445 CFINSPEC-66 : Add unit test for unsupported os:ipfilter resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:35 -05:00
Sonu Saha
7c874e67df CFINSPEC-66 : Add Ipfilter resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:34 -05:00
Sonu Saha
7b2d076899 CFINSPEC-77 : Add Ipnat resource-cleanup
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Sonu Saha
437abc866c CFINSPEC-77 : Add ipnat resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Nikita Mathur
bb410b812c resource_id key added in json-automate/json reporter and exec-json schema
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:30:14 -05:00
Nikita Mathur
607d765d16 Subtle fix in resource_id definition and documentation updated
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:26:13 -05:00
Nikita Mathur
1e292900bd Resource id method changed to instance method and documentation added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:26:13 -05:00
Nikita Mathur
8b8b4db2b2 Resource id attribute added for the resources in the base class
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:26:13 -05:00
Nikita Mathur
19057252ec cassandra unit test fix for windows
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 15:31:08 +05:30
Vasu1105
993211c9b4 CFINSPEC-74 Adds the cron resource.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-28 19:42:33 +05:30
Nikita Mathur
bf116e9517 Test cases added for streaming progress bar reporter
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-02-21 17:58:21 +05:30
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
60f6147e4e Remove the test fixtures for ruby 2.6.0 as we are removing the ruby 2.6.0 tests.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
Vasu1105
8d76db6828 Fix yaml reporter test on Windows.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
Vasu1105
663e4568e0 Revert "Fix failing yaml reporter test on windows."
This reverts commit 638e30a0318f5775a4a0db74642d8fbcd14ffb12.
2022-02-10 11:22:32 +05:30
Vasu1105
e54d24d108 Fix failing yaml reporter test on windows.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
Vasu1105
8f7cf88394 Remove ruby 2.4.0 and 2.5.0 test fixtures
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
Vasu1105
e01f872f92 Update verify pipeline to run test on ruby 3
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
Clinton Wolfe
a9960f9b81
Merge pull request #5829 from inspec/nm/streaming-reporters
CFINSPEC-9 Added support for streaming reporters
2022-02-09 04:19:39 -05:00
Clinton Wolfe
6d04576331
Merge pull request #5828 from inspec/vasundhara/fix_sestatus_command_for_amazon_linux
CFINSPEC-30 Fix sestatus command not found error on Amazon Linux 2
2022-02-09 04:10:31 -05:00
Clinton Wolfe
c065e923c3
Merge pull request #5782 from inspec/nm/kernel-params
CFINSPEC-3 Added kernel_parameters resource
2022-02-09 03:52:01 -05:00
Vasu1105
0d7f2c11fd Updated the condition to only verify the amazon linux os.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-08 14:04:22 +05:30
Clinton Wolfe
042e813623 Configure SimpleCov to no longer use at_exit hack; use JSON reporter
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-06 22:09:38 -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
Clinton Wolfe
9d671d3d37 Revert "Remove unused coveralls hooks from test helper"
This reverts commit c61e70b75b.
2022-02-03 11:54:31 -05:00
Clinton Wolfe
cd4f0b59a0
Merge pull request #5816 from inspec/vasundhara/allow-core-resource-inheritance
CFINSPEC-15 Allows inheritance of core resource into the custom resource.
2022-02-01 16:11:44 -05:00
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
Vasu1105
d8798eca83 add custom resource in the registry at the reloading of dsl
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-01-31 19:10:27 +05:30
Nikita Mathur
ec35c6042a Fix to capture non indented grub conf values
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-01-24 19:19:43 +05:30