inspec/test/unit/resources
Pg 869e1902a1
For #6493 : Add postgres_session support for custom port with a socket connection (#6494)
* Add support for custom port with a socket connection

Signed-off-by: Pg <pg.developper.fr@gmail.com>

* Add tests for the postgres_session with custom port

Signed-off-by: Pg <pg.developper.fr@gmail.com>

---------

Signed-off-by: Pg <pg.developper.fr@gmail.com>
2023-05-15 21:33:47 -04:00
..
aide_conf_test.rb 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 2022-06-03 13:53:57 +05:30
apache_conf_test.rb 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 2022-06-03 13:53:57 +05:30
apt_test.rb 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 2022-06-03 13:53:57 +05:30
audit_policy_test.rb CFINSPEC-262 - Handle resource_id in error situation 2022-06-08 13:54:47 +05:30
auditd_conf_test.rb 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 2022-06-03 13:53:57 +05:30
auditd_test.rb Fix deprecation warning on auditd test 2020-03-11 17:24:39 +00:00
bash_test.rb 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 2022-06-03 13:53:57 +05:30
bond_test.rb 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 2022-06-03 13:53:57 +05:30
bridge_test.rb 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 2022-06-03 13:53:57 +05:30
cassandradb_conf_test.rb 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 2022-06-03 13:53:57 +05:30
cassandradb_session_test.rb 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 2022-06-03 13:53:57 +05:30
cgroup_test.rb Use esxi instead of undefined as an unsupported OS to silence 'unknown OS' warnings 2022-06-27 15:35:46 -04:00
chocolatey_package_test.rb CFINSPEC-263 Adds resource_id for cron resource and unit test for the same 2022-06-08 14:58:46 +05:30
chrony_conf_test.rb CFINSPEC-263 Adds resource_id to chocolatey_package, chrony_conf, command, cpan, cran, csv, dh_params resource and unit test for the same. 2022-06-08 14:58:24 +05:30
command_test.rb CFINSPEC-263 Adds resource_id to chocolatey_package, chrony_conf, command, cpan, cran, csv, dh_params resource and unit test for the same. 2022-06-08 14:58:24 +05:30
cpan_test.rb CFINSPEC-263 Adds resource_id for cron resource and unit test for the same 2022-06-08 14:58:46 +05:30
cran_test.rb CFINSPEC-263 Adds resource_id for cron resource and unit test for the same 2022-06-08 14:58:46 +05:30
cron_test.rb CFINSPEC-263 Adds resource_id for cron resource and unit test for the same 2022-06-08 14:58:46 +05:30
crontab_test.rb Minor test improvements 2020-02-03 13:18:56 -08:00
csv_test.rb CFINSPEC-263 Adds resource_id to chocolatey_package, chrony_conf, command, cpan, cran, csv, dh_params resource and unit test for the same. 2022-06-08 14:58:24 +05:30
default_gateway_test.rb Use esxi instead of undefined as an unsupported OS to silence 'unknown OS' warnings 2022-06-27 15:35:46 -04:00
dh_params_test.rb CFINSPEC-263 Adds resource_id to chocolatey_package, chrony_conf, command, cpan, cran, csv, dh_params resource and unit test for the same. 2022-06-08 14:58:24 +05:30
docker_container_test.rb Resource id added for etc, docker and file resources 2022-06-02 16:32:06 +05:30
docker_image_test.rb added name to be used as resource id for docker resource - loosely unique 2022-06-02 17:14:36 +05:30
docker_plugin_test.rb Resource id added for etc, docker and file resources 2022-06-02 16:32:06 +05:30
docker_service_test.rb Resource id added for etc, docker and file resources 2022-06-02 16:32:06 +05:30
docker_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
elasticsearch_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
etc_fstab_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
etc_group_test.rb Resource id added for etc, docker and file resources 2022-06-02 16:32:06 +05:30
etc_hosts_allow_deny_test.rb Resource id added for etc, docker and file resources 2022-06-02 16:32:06 +05:30
etc_hosts_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
file_test.rb Resource id added for etc, docker and file resources 2022-06-02 16:32:06 +05:30
filesystem_test.rb Resource id added for filesystem, grub, group, gem and other resources 2022-06-02 17:11:00 +05:30
firewalld_test.rb changed array style at chefstyle's request 2021-07-12 11:47:25 -04:00
gem_test.rb Resource id added for filesystem, grub, group, gem and other resources 2022-06-02 17:11:00 +05:30
group_test.rb Resource id added for filesystem, grub, group, gem and other resources 2022-06-02 17:11:00 +05:30
groups_test.rb Updated test files to use Ubuntu latest version while mocking the OS instead of Ubuntu1404 whereever required. 2021-09-30 14:26:43 +05:30
grub_conf_test.rb Resource id added for filesystem, grub, group, gem and other resources 2022-06-02 17:11:00 +05:30
host_test.rb Resource id added for filesystem, grub, group, gem and other resources 2022-06-02 17:11:00 +05:30
http_test.rb fix: ensure Invoke-WebRequest headers can be configured (#6484) 2023-05-15 21:28:48 -04:00
ibmdb2_conf_test.rb 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. 2022-06-08 13:46:54 +05:30
ibmdb2_session_test.rb 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. 2022-06-08 13:46:54 +05:30
iis_app_pool_test.rb Added resource id for iis and other db resources 2022-06-03 01:32:49 +05:30
iis_site_test.rb CFINSPEC-266: Add resource_id & unit test: iis_site 2022-06-02 16:51:14 +05:30
inetd_conf_test.rb CFINSPEC-266: Add resource_id & unit test: inetd_conf 2022-06-02 16:52:04 +05:30
ini_test.rb CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml 2022-06-02 16:53:37 +05:30
interface_test.rb CFINSPEC-266: Add resource_id & unit test: interface 2022-06-02 16:54:18 +05:30
interfaces_test.rb Updated test files to use Ubuntu latest version while mocking the OS instead of Ubuntu1604 2021-09-30 14:50:03 +05:30
ip6tables_test.rb CFINSPEC-266: Add resource_id & unit test: ip6tables 2022-06-02 16:54:50 +05:30
ipfilter_test.rb CFINSPEC-266: Add resource_id & unit test: ipfilter 2022-06-02 16:55:18 +05:30
ipnat_test.rb CFINSPEC-266: Add resource_id & unit test: ipnat 2022-06-02 16:55:41 +05:30
iptables_test.rb CFINSPEC-266: Add resource_id & unit test: iptables 2022-06-02 16:55:55 +05:30
json_test.rb CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml 2022-06-02 16:53:37 +05:30
kernel_module_test.rb CFINSPEC-267: resource_id unit test: kernel_module 2022-06-02 11:11:17 +05:30
kernel_parameter_test.rb CFINSPEC-267: resource_id unit test: kernel_parameter 2022-06-02 11:13:26 +05:30
kernel_parameters_test.rb Added kernel parameters resource 2021-12-31 14:57:57 +05:30
key_rsa_test.rb CFINSPEC-267: resource_id unit test: key_rsa 2022-06-02 11:28:40 +05:30
ksh_test.rb CFINSPEC-267: Add resource_id & unit test: ksh 2022-06-02 11:31:22 +05:30
limits_conf_test.rb CFINSPEC-267: Add resource_id & unit test: limits_conf 2022-06-02 11:50:49 +05:30
linux_audit_system_test.rb CFINSPEC-78: Complete unit test for the resource 2022-04-19 09:33:07 +05:30
login_def_test.rb CFINSPEC-267: Add resource_id & unit test: login_defs 2022-06-02 11:52:26 +05:30
lxc_test.rb Enhance lxc resource to test properties (#6243) 2022-09-15 09:23:45 -04:00
mail_alias_test.rb CFINSPEC-80: Define aliased_to matcher and add unit test 2022-03-30 17:26:15 +05:30
mongodb_conf_test.rb CFINSPEC-268 Adds resource_id to mongodb_conf, mongodb_session, mount, mssql_session, mysql_conf resource and unit test for the same. 2022-06-08 13:46:54 +05:30
mongodb_session_test.rb CFINSPEC-268 Adds resource_id to mongodb_conf, mongodb_session, mount, mssql_session, mysql_conf resource and unit test for the same. 2022-06-08 13:46:54 +05:30
mongodb_test.rb CFINSPEC-267: Add resource_id & unit test: mongodb 2022-06-02 11:55:50 +05:30
mount_test.rb 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. 2022-06-08 13:46:54 +05:30
mssql_session_test.rb CFINSPEC-268 Adds resource_id to mongodb_conf, mongodb_session, mount, mssql_session, mysql_conf resource and unit test for the same. 2022-06-08 13:46:54 +05:30
mysql_conf_test.rb 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. 2022-06-08 13:46:54 +05:30
mysql_session_test.rb CFINSPEC-268 Adds resource_id to mongodb_conf, mongodb_session, mount, mssql_session, mysql_conf resource and unit test for the same. 2022-06-08 13:46:54 +05:30
nftables_test.rb Add nftables resources (#6499) 2023-05-15 20:05:01 -04:00
nginx_conf_test.rb 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. 2022-06-08 13:46:54 +05:30
nginx_test.rb 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. 2022-06-08 13:46:54 +05:30
npm_test.rb CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same 2022-06-08 13:52:16 +05:30
ntp_conf_test.rb CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same 2022-06-08 13:52:16 +05:30
oneget_test.rb CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same 2022-06-08 13:52:16 +05:30
opa_api_test.rb CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same 2022-06-08 13:52:16 +05:30
opa_cli_test.rb CFINSPEC-269 Adds resource_id for npm, ntp_conf, oneget, opa_api, opa_cli resource and unit test for the same 2022-06-08 13:52:16 +05:30
oracledb_listener_conf_test.rb Added resource id for iis and other db resources 2022-06-03 01:32:49 +05:30
oracledb_session_test.rb CFINSPEC-458 Oracle DB session resource compatibility with AIX-C shell (#6257) 2022-10-14 09:59:27 -04:00
os_env_test.rb 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 2022-06-08 13:52:40 +05:30
os_test.rb Upgraded mock ubuntu test from 20.04 to 22.04 (#6351) 2023-01-03 09:58:58 -05:00
package_test.rb 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 2022-06-08 13:52:40 +05:30
packages_test.rb Fix: Alpine packages list command to only list installed packages 2021-12-13 16:02:18 +05:30
parse_config_test.rb 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 2022-06-08 13:52:40 +05:30
passwd_test.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
php_config_test.rb CFINSPEC-81: Add unit test for php_config 2022-05-17 12:51:42 +05:30
pip_test.rb 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 2022-06-08 13:52:40 +05:30
platform_test.rb Upgraded mock ubuntu test from 20.04 to 22.04 (#6351) 2023-01-03 09:58:58 -05:00
podman_container_test.rb Adds podman resources. (#6183) 2022-08-04 09:13:45 -04:00
podman_image_test.rb Adds podman resources. (#6183) 2022-08-04 09:13:45 -04:00
podman_network_test.rb Adds podman resources. (#6183) 2022-08-04 09:13:45 -04:00
podman_pod_test.rb Adds podman resources. (#6183) 2022-08-04 09:13:45 -04:00
podman_test.rb Adds podman resources. (#6183) 2022-08-04 09:13:45 -04:00
podman_volume_test.rb Adds podman resources. (#6183) 2022-08-04 09:13:45 -04:00
port_linuxports_test.rb Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
port_test.rb Updated test files to use Ubuntu latest version while mocking the OS instead of Ubuntu1804 2021-09-30 15:05:27 +05:30
postfix_conf_test.rb 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 2022-06-08 13:52:40 +05:30
postgres_conf_test.rb 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 2022-06-08 13:52:40 +05:30
postgres_hba_conf_test.rb Fix typos identified by cspell 2021-08-30 16:49:46 -07:00
postgres_ident_conf_test.rb Fixed failing specs 2021-07-01 15:28:58 +05:30
postgres_session_test.rb For #6493 : Add postgres_session support for custom port with a socket connection (#6494) 2023-05-15 21:33:47 -04:00
powershell_test.rb Added resource id for rabbitmq and windows resources 2022-06-03 17:07:45 +05:30
ppa_test.rb 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 2022-06-03 13:53:57 +05:30
processes_test.rb CFINSPEC-291: Add windows test for process without path 2022-06-08 18:28:02 +05:30
rabbitmq_conf_test.rb Added resource id for rabbitmq and windows resources 2022-06-03 17:07:45 +05:30
registry_key_test.rb Added resource id for rabbitmq and windows resources 2022-06-03 17:07:45 +05:30
routing_table_test.rb Use esxi instead of undefined as an unsupported OS to silence 'unknown OS' warnings 2022-06-27 15:35:46 -04:00
security_identifier_test.rb Added resource id for rabbitmq and windows resources 2022-06-03 17:07:45 +05:30
security_policy_test.rb Added resource id for rabbitmq and windows resources 2022-06-03 17:07:45 +05:30
selinux_test.rb Updated the condition to only verify the amazon linux os. 2022-02-08 14:04:22 +05:30
service_test.rb Prevent negative status from crashing launchd service resource (#6262) 2022-11-29 09:37:12 -05:00
shadow_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
ssh_conf_test.rb Failing unit test for multiple values in ssh_config 2021-02-21 15:06:18 -05:00
ssl_test.rb Raises error for Connection error. 2021-12-17 16:28:10 +05:30
sys_info_test.rb Remove the unit test added for Ubuntu using older version i.e 15.04. 2021-09-29 12:53:58 +05:30
timezone_test.rb CFINSPEC-272: Add resource_id & unit test: timezone 2022-06-02 19:16:03 +05:30
toml_test.rb CFINSPEC-266: Add unit test: toml(depends on json) 2022-06-02 18:28:46 +05:30
user_test.rb 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. 2022-06-08 13:53:25 +05:30
vbscript_test.rb 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. 2022-06-08 13:53:25 +05:30
virtualization_test.rb 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. 2022-06-08 13:53:25 +05:30
windows_feature_test.rb 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. 2022-06-08 13:53:25 +05:30
windows_hotfix_test.rb 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. 2022-06-08 13:53:25 +05:30
windows_task_test.rb 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. 2022-06-08 13:53:25 +05:30
wmi_test.rb Upgraded mock ubuntu test from 20.04 to 22.04 (#6351) 2023-01-03 09:58:58 -05:00
x509_certificate_test.rb CFINSPEC-274: Add resource_id & unit test: x509_certificate 2022-06-02 16:45:24 +05:30
x509_private_key_test.rb CFINSPEC-84: Fix typo in unit test comment 2022-05-01 12:31:51 +05:30
xinetd_conf_test.rb chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
xml_test.rb CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml 2022-06-02 16:53:37 +05:30
yaml_test.rb CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml 2022-06-02 16:53:37 +05:30
yum_test.rb CFINSPEC-274: Add resource_id & unit test: yum 2022-06-02 16:46:12 +05:30
zfs_dataset_test.rb CFINSPEC-274: Add resource_id & unit test: zfs_dataset 2022-06-02 16:46:36 +05:30
zfs_pool_test.rb CFINSPEC-274: Add resource_id & unit test: zfs_pool 2022-06-02 16:46:45 +05:30
zfs_test.rb CFINSPEC-96: Fix typo and modify classname appropriately 2022-05-01 12:22:31 +05:30