Nikita Mathur
5617ed819c
Added inheritance test for windows
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-29 17:10:55 +05:30
Nikita Mathur
8bcfc38fe0
Windows fix for dependent profiles
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-29 17:05:59 +05:30
Clinton Wolfe
17d7822365
Use esxi instead of undefined as an unsupported OS to silence 'unknown OS' warnings
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-06-27 16:21:23 -04:00
Clinton Wolfe
34cdb8780d
Add explict /usr/sbin/netstat to mockloader, fixes routingtable tests
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-06-27 16:21:23 -04:00
Nikita Mathur
f3aa18b4f9
Pinning minitest to 5.15.0 to fix build issue
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-27 16:21:23 -04:00
Nikita Mathur
1166489a93
Test case added for verifying running of same profile with different versions
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-14 13:21:27 +05:30
jayashrig158
ffbf2ff554
add ruby test 3.1 in verify pipeline ( #5892 )
...
* add ruby test 3.1 in verify pipeline
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
* updating rubygem to 3.3.3
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
* Test fixture plugin files for ABI 3.1.0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Use kwargs to match new calling style for ERB in ruby 2.7 and 3.0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Allow Date and Time data types, needed for waivers, since safe load is now the default for YAML
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Use Time.parse, not Time.new since the rules tightened for what you can pass the constructor for waiver dates
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Add ruby platform debug message to test parallel output
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Conditionalize permitted_classes in inputs yaml_load for <= 3.1.x only
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* In ruby 3.1.0 net/pop3 is no more a default gem and that will require us to add it in Gemfile so trying with the byebug gem which we are bundling already
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
* CFINSPEC-166 Updated url fetcher to handle Net::OpenTimeout Exception on Windows
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-13 14:24:33 -04:00
Clinton Wolfe
29ef063833
Merge pull request #6100 from inspec/ss/fix-processes-on-windows
...
CFINSPEC-291: Fix `processes` resource to consider processes without `path` on Windows
2022-06-08 17:32:00 -04:00
Clinton Wolfe
610e7aacea
Merge pull request #5995 from inspec/vasundhara/sign-profile-binary-format
...
CFINSPEC-167: Profile Signing Rollup
2022-06-08 17:07:27 -04:00
Clinton Wolfe
6385ea9f74
Merge pull request #6126 from inspec/vasundhara/group_2_resource_id
...
Adds resource_id to group 2 resources
2022-06-08 16:14:45 -04:00
Clinton Wolfe
b0c1373d64
Merge pull request #6119 from inspec/vasundhara/group_1_resource_id_fix
...
CFINSPEC-262 - Handle resource_id in error situation
2022-06-08 16:13:38 -04:00
Clinton Wolfe
dd258e3926
Merge pull request #6115 from inspec/nm/add-resource-id-group-10
...
CFINSPEC 271 Group10 - Added resource_id in resources
2022-06-08 16:11:42 -04:00
Clinton Wolfe
37eee62150
Merge pull request #6112 from inspec/vasundhara/group12_add_resource_id
...
CFINSPEC-273 Adds resource_id group 12
2022-06-08 16:10:41 -04:00
Clinton Wolfe
00b396b8fe
Merge pull request #6111 from inspec/vasundhara/group9_resource_ids
...
CFINSPEC-270 Adds resource_id group9
2022-06-08 16:09:15 -04:00
Clinton Wolfe
0ae8f52c19
Merge pull request #6110 from inspec/ss/add-resource-ids-group-11
...
CFINSPEC-272: resource_ids group 11
2022-06-08 16:07:42 -04:00
Clinton Wolfe
092cf8090f
Merge pull request #6109 from inspec/nm/add-resource-id-group-4
...
CFINSPEC-265 Group 4 - Added resource_id in resources
2022-06-08 16:06:50 -04:00
Clinton Wolfe
3f9b234160
Merge pull request #6108 from inspec/nm/add-resource-id-group-3
...
CFINSPEC-264 Group 3 - Added resource_id in resources
2022-06-08 16:05:09 -04:00
Clinton Wolfe
9076dd6626
Merge pull request #6107 from inspec/vasundhara/group8_resource_ids
...
CFINSPEC-269 Adds resource_id group 8
2022-06-08 16:03:56 -04:00
Clinton Wolfe
39744335c5
Merge pull request #6106 from inspec/ss/add-resource-ids-group-13
...
CFINSPEC-274: resource_ids group 13
2022-06-08 16:02:16 -04:00
Sonu Saha
8ffca97e27
CFINSPEC-291: Add windows test for process without path
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-08 18:28:02 +05:30
Vasu1105
24f1fb18b6
CFINSPEC-263 Adds resource_id for cron resource and unit test for the same
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 14:58:46 +05:30
Vasu1105
78d1eb61be
CFINSPEC-263 Adds resource_id to chocolatey_package, chrony_conf, command, cpan, cran, csv, dh_params resource and unit test for the same.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 14:58:24 +05:30
Vasu1105
55ecbc4f21
CFINSPEC-262 - Handle resource_id in error situation
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:54:47 +05:30
Vasu1105
7f581f083d
CFINSPEC-273 Adds resource_id to user, vbscript, virtualization, windows_feature, windows_firewall, windows_firewall_rule, windows_hotfix, windows_task and unit test for the same.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:53:25 +05:30
Vasu1105
1b0eaf765f
CFINSPEC-270 Adds resource_id to os, os_env, package, parse_config, parse_config_file, pip, platform, postfix_conf, postgres_conf, postgres_session resource and unit test for the same
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:52:40 +05:30
Vasu1105
5d47334735
CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:52:16 +05:30
Vasu1105
14d5be2d20
CFINSPEC-268 Adds resource_id for ibmdb2_conf, ibmdb2_session, nginx, nginx_conf, noop and unit test for the same. Updated resource_id generation for mount and mysql_conf resource.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:46:54 +05:30
Vasu1105
d2ebb270f4
CFINSPEC-268 Adds resource_id to mongodb_conf, mongodb_session, mount, mssql_session, mysql_conf resource and unit test for the same.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:46:54 +05:30
Vasu1105
8f995a3c8f
CFINSPEC-340 Handle inspec exec to work with change in the headers and fixes the failing test
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 11:10:34 +05:30
Vasu1105
5c061ea90b
Fixes azure connection test
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 10:43:41 +05:30
Vasu1105
ae082725a9
Fix the key duplication error warning in the mock_loader.rb
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-06 13:58:35 +05:30
Clinton Wolfe
0d26fd2811
Merge pull request #6103 from inspec/ss/add-resource-ids-group-5
...
CFINSPEC-266: resource_ids group 5
2022-06-03 09:00:00 -04:00
Clinton Wolfe
47105e7f79
Merge pull request #6102 from inspec/vasundhara/group1_resource_ids
...
CFINSPEC-262 Adds resource_id group 1
2022-06-03 08:56:51 -04:00
Nikita Mathur
fc925afaa4
Added resource id for rabbitmq and windows resources
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-03 17:07:45 +05:30
Vasu1105
1c66679e46
CFINSPEC-262 Adds resource_id to aide_conf, apache_conf, apt, audit_policy, auditd_conf, bash, bond, bridge, cassandradb_conf, cassandradb_session resources and unit test for the same
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-03 13:53:57 +05:30
Nikita Mathur
a57843b8e7
Added resource id for iis and other db resources
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-03 01:32:49 +05:30
Sonu Saha
d306ceca9a
CFINSPEC-272: Add resource_id & unit test: timezone
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:16:03 +05:30
Sonu Saha
36bd8f6b7a
CFINSPEC-266: Add unit test: toml(depends on json)
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 18:28:46 +05:30
Nikita Mathur
cac93ee152
added name to be used as resource id for docker resource - loosely unique
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 17:14:36 +05:30
Nikita Mathur
7b0b98edac
Resource id added for filesystem, grub, group, gem and other resources
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 17:11:00 +05:30
Sonu Saha
d012aec0b8
CFINSPEC-266: Add resource_id & unit test: iptables
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:55 +05:30
Sonu Saha
a2c9597335
CFINSPEC-266: Add resource_id & unit test: ipnat
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:41 +05:30
Sonu Saha
389495793f
CFINSPEC-266: Add resource_id & unit test: ipfilter
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:18 +05:30
Sonu Saha
56e5a67f97
CFINSPEC-266: Add resource_id & unit test: ip6tables
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:54:50 +05:30
Sonu Saha
3c1c28f3ec
CFINSPEC-266: Add resource_id & unit test: interface
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:54:18 +05:30
Sonu Saha
67081c00d4
CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:53:37 +05:30
Sonu Saha
978288dd95
CFINSPEC-266: Add resource_id & unit test: inetd_conf
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:52:04 +05:30
Sonu Saha
4853077dfd
CFINSPEC-266: Add resource_id & unit test: iis_site
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:51:14 +05:30
Sonu Saha
60f80b9f97
CFINSPEC-274: Add resource_id & unit test: zfs_pool
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:45 +05:30
Sonu Saha
84a68668dd
CFINSPEC-274: Add resource_id & unit test: zfs_dataset
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:36 +05:30
Sonu Saha
c9181db3bc
CFINSPEC-274: Add resource_id & unit test: yum
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:12 +05:30
Sonu Saha
8e13fb1f36
CFINSPEC-274: Add resource_id & unit test: x509_certificate
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:45:24 +05:30
Sonu Saha
1fb530e739
CFINSPEC-274: Add resource_id & unit test: wmi
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:44:41 +05:30
Nikita Mathur
298c83a550
Resource id added for etc, docker and file resources
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 16:32:06 +05:30
Sonu Saha
86a96f34f7
CFINSPEC-267: Add resource_id & unit test: mongodb
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:55:50 +05:30
Sonu Saha
b39ab1e5e1
CFINSPEC-267: Add resource_id & unit test: login_defs
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:52:26 +05:30
Sonu Saha
eac4e11b34
CFINSPEC-267: Add resource_id & unit test: limits_conf
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:50:49 +05:30
Sonu Saha
06029220b4
CFINSPEC-267: Add resource_id & unit test: service, launchd_service
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:48:29 +05:30
Sonu Saha
ee8d263b74
CFINSPEC-267: Add resource_id & unit test: ksh
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:31:22 +05:30
Sonu Saha
db9f7f4466
CFINSPEC-267: resource_id unit test: key_rsa
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:28:40 +05:30
Sonu Saha
d6950fcd1c
CFINSPEC-267: resource_id unit test: kernel_parameter
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:13:26 +05:30
Sonu Saha
d96647cdaf
CFINSPEC-267: resource_id unit test: kernel_module
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:11:17 +05:30
Sonu Saha
0e9e249506
CFINSPEC-267: resource_id unit test: lxc
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:07:21 +05:30
Vasu1105
078d1ce898
Updated sign and verify command to directly accept the path of the profile instead of additional option to provide those. Updated docs for the same.
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-02 10:36:50 +05:30
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
Sonu Saha
4d538f57c2
CFINSPEC-291: Remove byebugs and noise
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-01 13:30:28 +05:30
Sonu Saha
c3b1ce3e9e
CFINSPEC-291: Fix test according to changes introduced in processes
...
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-01 13:10:07 +05:30
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
Clinton Wolfe
1d4e70ede5
Merge pull request #6057 from inspec/vasundhara/gem-dependency-version-issue
...
CFINSPEC-252: Fix profile gem dependency installation is failing when gem version is not specified
2022-05-16 23:21:52 -04:00
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