Commit graph

5203 commits

Author SHA1 Message Date
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
598df4a3a8 CFINSPEC-93: Remove redundant methods from child class of MonitoringTool
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 10:31:43 +05:30
Sonu Saha
fde99cb651 CFINSPEC-87: Remove redundant methods from child class of ImmutableFlagCheck
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 10:24: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
Chef Expeditor
7d1ad0acc3 Bump version to 5.13.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-13 22:00:56 +00:00
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
d4655f5ee4 CFINSPEC-87: Fix typos in error message
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 02:03:33 +05:30
Sonu Saha
2f7c65d1a4 CFINSPEC-89: Add have_gid matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 16:50:10 +05:30
Sonu Saha
048f0019ae CFINSPEC-87: Extend file resource with content_as_yaml property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 11:49:00 +05:30
Sonu Saha
02c1bcb3f5 CFINSPEC-87: Extend file resource with content_as_json property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 11:28:11 +05:30
Sonu Saha
babf21466c CFINSPEC-87: Extend file resource with be_immutable matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 16:49:58 +05:30
Sonu Saha
50f3026578 CFINSPEC-93: Correct exception message
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 12:40:08 +05:30
Sonu Saha
f5afe10017 CFINSPEC-93: Add comments and exception guard clause for new matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 10:07:25 +05:30
Sonu Saha
f55c3e8190 CFINSPEC-93: Add monitored_by matcher;
Supported monitoring tool: monit & god

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 09:52:47 +05:30
Sonu Saha
ab3fd0bc3e CFINSPEC-93: Add have_start_mode matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 09:52:47 +05:30
Chef Expeditor
f00b3341dd Bump version to 5.12.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-12 00:34:25 +00:00
Chef Expeditor
aa32588d1b Bump version to 5.12.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-08 14:01:34 +00:00
Chef Expeditor
74064a93c6 Bump version to 5.12.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-08 13:58:34 +00:00
Sonu Saha
e21445cc4c CFINSPEC-75 Add default_gateway resource logic
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-07 09:12:12 +05:30
Chef Expeditor
d72125401e Bump version to 5.12.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-06 22:41:21 +00:00
Sonu Saha
8201b6acb1 CFINSPEC-83: Add documentation and comments
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
Sonu Saha
30157e0cd5 CFINSPEC-83: Add routing_table resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-06 21:09:05 +05:30
Chef Expeditor
a59f30bee7 Bump version to 5.11.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-06 13:33:22 +00:00
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
Chef Expeditor
cd448f5f01 Bump version to 5.10.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-06 13:29:36 +00: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
Chef Expeditor
440d8a97d9 Bump version to 5.10.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-05 14:55:48 +00:00
Sonu Saha
28b92b0f99 CFINSPEC-94: Add comment on why cat/type is used instead of reading the file with inspec.file
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 19:53:29 +05:30
Sonu Saha
5ec479fff3 CFINSPEC-94: Remove user specific matchers from universal matchers & include in user
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 19:44:30 +05:30
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
Sonu Saha
91ffb07901 CFINSPEC-94: Refactor belongs_to_group
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 11:51:36 +05:30
Chef Expeditor
afa46892f7 Bump version to 5.10.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-31 00:17:26 +00:00
Clinton Wolfe
82df8c8a52
Merge pull request #5948 from myii/fix/ensure-installed-true-not-always-returned-for-freebsd-service
fix(service): ensure `installed: true` isn't always returned on FreeBSD
2022-03-30 20:16:19 -04:00
Chef Expeditor
d73e19096f Bump version to 5.10.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-30 23:57:50 +00: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
Chef Expeditor
8156a66e8d Bump version to 5.10.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-30 23:55:02 +00: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
Chef Expeditor
3643266dbf Bump version to 5.10.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-30 23:51:32 +00:00
Clinton Wolfe
140a176af5
Merge pull request #5956 from mitre/progress-bar-update
updates to reporting detail on progress bar
2022-03-30 19:50:21 -04:00
Sonu Saha
af7ed7bc15 CFINSPEC-80: Handle comma separated alias values, add documentation
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 19:50:45 +05:30
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
2d068bee27 CFINSPEC-94: Introduce requested changes after review
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 12:58:42 +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
95a6ecca6b CFINSPEC-94: Remove old comments that says deprecation for serverspec
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
d4e49c87b7 CFINSPEC-94: Clean code, lint check and add comments
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
6dfa1e23db CFINSPEC-94: encrypted_password works with getent utility on BSD/Solaris
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
96103a8785 CFINSPEC-94: Implement encrypted_password property for linux systems
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
a043008785 CFINSPEC-94: Extend has_authorized_key for windows user
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
6d46e5ab71 CFINSPEC-94: Add has_authorized_key for basic unix case
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
112e8cc061 CFINSPEC-94: Add new matchers belong_to_group/primary_group
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
978e6ea798 CFINSPEC-94: Remove deprecation of minimum_days_between_password_change and maximum_days_between_password_change
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
a0d40a5d9c CFINSPEC-94: Remove deprecation of has_uid? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
3f294bfbe1 CFINSPEC-94: Remove deprecation of has_login_shell? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
50fc284a43 CFINSPEC-94: Remove deprecation of has_home_directory? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Chef Expeditor
4ed3d4bcc7 Bump version to 5.10.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-25 18:18:02 +00:00
Aaron Lippold
4eccdc1b5a removed excessive use of instance variables
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2022-03-25 13:01:14 -04:00
Aaron Lippold
ffd4706608 refactored to remove repeated code.
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2022-03-25 12:54:31 -04:00
Aaron Lippold
1150ef2d30 updates to reporting detail on progress bar
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2022-03-25 12:02:29 -04:00
Chef Expeditor
5492ba69dc Bump version to 5.10.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-24 23:07:36 +00:00
Imran Iqbal
17084b4ad7
fix(service): ensure installed: true isn't always returned on FreeBSD
Fix regression introduced in 41ea0da4a9.

Close #5947.

Signed-off-by: Imran Iqbal <iqbalmy@hotmail.com>
2022-03-24 23:02:21 +00:00
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
e5a79c17d6 CFINSPEC-85: Add comments for the introduced matcher and method
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:36:44 +05:30
Sonu Saha
3eba207bcf CFINSPEC-86: Use method_missing and dig to achieve the goal
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:05:59 +05:30
Sonu Saha
9a9a5acb7a CFINSPEC-86: Replace def[] and override method_missing of json resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 15:31:58 +05:30
Sonu Saha
bfb78a2d23 CFINSPEC-86: Factorize def[] method
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 12:25:36 +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
Chef Expeditor
26e197a3a5 Bump version to 5.10.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 18:41:51 +00:00
Sonu Saha
d66fcd039a CFINSPEC-86: Allow container id to test inspect attributes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:21:22 +05:30
Sonu Saha
fbe78d0c93 CFINSPEC-86: Enhance docker_image with image inspect information
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:12:09 +05:30
Sonu Saha
20895030fa CFINSPEC-85: Allow have_volume to test with container id
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:08:29 +05:30
Sonu Saha
327d193a06 CFINSPEC-85: Handle exception for no mounted volumes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 22:35:08 +05:30
Sonu Saha
e3295743f1 CFINSPEC-85: Extend docker_container with have_volume? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 22:35:08 +05:30
Chef Expeditor
4f691564e4 Bump version to 5.10.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 14:25:15 +00:00
Chef Expeditor
0d2f6760eb Bump version to 5.10.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 14:15:34 +00:00
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
Chef Expeditor
9a77b1d5e5 Bump version to 5.10.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:50:19 +00: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
Chef Expeditor
b681a6e9aa Bump version to 5.10.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:45:22 +00: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
Chef Expeditor
829b9acf45 Bump version to 5.10.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:40:48 +00: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
Chef Expeditor
1a75dcdcdd Bump version to 5.9.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:38:02 +00: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
023f4275da CFINSPEC-73: Implement param match logic on dynamic valid queries
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 07:54:11 +05:30
Clinton Wolfe
d4aa361a83 Make cgroup work by using a static list. Also adjust cmd processing.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-23 07:54:11 +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
7442ef1941 Description fetch logic added for user plugin listing and test cases
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-21 15:04:33 +05:30
Nikita Mathur
e2d8ee1167 Text case fixes for plugin list/search
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-21 14:01:43 +05:30
Chef Expeditor
14203c6243 Bump version to 5.8.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-19 20:37:25 +00:00
Clinton Wolfe
aaad62e362
Merge pull request #5921 from inspec/ss/resource-lxc
CFINSPEC-79: Add linux container resource
2022-03-19 16:36:16 -04:00
Chef Expeditor
44c1d524e4 Bump version to 5.7.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-19 20:28:04 +00:00
Clinton Wolfe
55fe4b21f4
Merge pull request #5796 from inspec/vasundhara/virtualization_resource
CFINSPEC-1 Adds the ability to detect the Kubernetes container and Podman container.
2022-03-19 16:26:47 -04:00
Nikita Mathur
0cf44d324e Comment added for description in inspec status
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-18 17:37:01 +05:30
Nikita Mathur
bcc71df9dd Test cases for plugin listing and search added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-18 17:27:45 +05:30