Commit graph

245 commits

Author SHA1 Message Date
Clinton Wolfe
9e52000088
Merge pull request #6041 from inspec/ss/enhance-x509_certificate-resource
CFINSPEC-95: Enhance `x509_certificate` resource
2022-06-01 09:36:05 -04:00
Vasundhara Jagdale
566ac8ed77
Merge pull request #6040 from marijus-ravickas/unit_yaml_reporter
UNIT_TESTS: update yaml reporter test for Ruby 3+
2022-05-18 09:05:03 +00:00
Sonu Saha
b4f52dff23 CFINSPEC-81: Add unit test for php_config
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-17 12:51:42 +05:30
Vasundhara Jagdale
b1c1b1bc92
Merge pull request #5991 from inspec/ss/enhance-processes-resource
CFINSPEC-92: Enhance `processes` resource
2022-05-17 06:01:55 +00:00
Vasundhara Jagdale
0978c8c274
Merge pull request #6045 from inspec/ss/enhance-host-resource
CFINSPEC-90: Enhance `host` resource
2022-05-17 06:01:15 +00:00
Vasundhara Jagdale
a0fba6d46d
Merge pull request #6018 from inspec/ss/add-x509_private_key-resource
CFINSPEC-84: Add `x509_private_key` resource
2022-05-17 06:00:03 +00:00
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
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
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
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
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
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
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
7fddb8c772
Merge pull request #5981 from inspec/ss/enhance-service-resource
CFINSPEC-93: Enhance `service` resource
2022-04-18 18:04:16 -04:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
db1b5abaa3 Add tests for lazy_instance
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 13:51:04 -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
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
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