From 8425911dd8726911a8eda74295c7a6ceb4171b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 22 Nov 2023 16:34:47 -1000 Subject: [PATCH] Remove legacy top-scope syntax --- spec/support/apache_directive.rb | 2 +- spec/support/apache_setenv.rb | 2 +- spec/support/host.rb | 2 +- spec/support/kernel_parameter.rb | 2 +- spec/support/mailalias.rb | 2 +- spec/support/mounttab.rb | 2 +- spec/support/nrpe_command.rb | 2 +- spec/support/pam.rb | 2 +- spec/support/pg_hba.rb | 2 +- spec/support/puppet_auth.rb | 2 +- spec/support/shellvar.rb | 2 +- spec/support/ssh_config.rb | 2 +- spec/support/sshd_config.rb | 2 +- spec/support/sshd_config_subsystem.rb | 2 +- spec/support/sysctl.rb | 2 +- spec/support/syslog.rb | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/spec/support/apache_directive.rb b/spec/support/apache_directive.rb index 8d02eff2..4d687638 100644 --- a/spec/support/apache_directive.rb +++ b/spec/support/apache_directive.rb @@ -26,7 +26,7 @@ include_examples 'apache_directive resource' end - context "when ::augeasproviders_apache_directive_hash is a Hash" do + context "when augeasproviders_apache_directive_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_apache_directive_hash => example_params }} diff --git a/spec/support/apache_setenv.rb b/spec/support/apache_setenv.rb index 5f4dcd95..37f49268 100644 --- a/spec/support/apache_setenv.rb +++ b/spec/support/apache_setenv.rb @@ -25,7 +25,7 @@ include_examples 'apache_setenv resource' end - context "when ::augeasproviders_apache_setenv_hash is a Hash" do + context "when augeasproviders_apache_setenv_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_apache_setenv_hash => example_params }} diff --git a/spec/support/host.rb b/spec/support/host.rb index 1de346d9..e556393c 100644 --- a/spec/support/host.rb +++ b/spec/support/host.rb @@ -25,7 +25,7 @@ include_examples 'host resource' end - context "when ::augeasproviders_host_hash is a Hash" do + context "when augeasproviders_host_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_host_hash => example_params }} diff --git a/spec/support/kernel_parameter.rb b/spec/support/kernel_parameter.rb index cfe8961d..73816941 100644 --- a/spec/support/kernel_parameter.rb +++ b/spec/support/kernel_parameter.rb @@ -24,7 +24,7 @@ include_examples 'kernel_parameter resource' end - context "when ::augeasproviders_kernel_parameter_hash is a Hash" do + context "when augeasproviders_kernel_parameter_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_kernel_parameter_hash => example_params }} diff --git a/spec/support/mailalias.rb b/spec/support/mailalias.rb index 6363716d..b606104c 100644 --- a/spec/support/mailalias.rb +++ b/spec/support/mailalias.rb @@ -25,7 +25,7 @@ include_examples 'mailalias resource' end - context "when ::augeasproviders_mailalias_hash is a Hash" do + context "when augeasproviders_mailalias_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_mailalias_hash => example_params }} diff --git a/spec/support/mounttab.rb b/spec/support/mounttab.rb index 1118a6ed..eeb0d9e9 100644 --- a/spec/support/mounttab.rb +++ b/spec/support/mounttab.rb @@ -27,7 +27,7 @@ include_examples 'mounttab resource' end - context "when ::augeasproviders_mounttab_hash is a Hash" do + context "when augeasproviders_mounttab_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_mounttab_hash => example_params }} diff --git a/spec/support/nrpe_command.rb b/spec/support/nrpe_command.rb index 259f6119..5b43b7df 100644 --- a/spec/support/nrpe_command.rb +++ b/spec/support/nrpe_command.rb @@ -25,7 +25,7 @@ include_examples 'nrpe_command resource' end - context "when ::augeasproviders_nrpe_command_hash is a Hash" do + context "when augeasproviders_nrpe_command_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_nrpe_command_hash => example_params }} diff --git a/spec/support/pam.rb b/spec/support/pam.rb index 59ac2f9c..6d9a3635 100644 --- a/spec/support/pam.rb +++ b/spec/support/pam.rb @@ -31,7 +31,7 @@ include_examples 'pam resource' end - context "when ::augeasproviders_pam_hash is a Hash" do + context "when augeasproviders_pam_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_pam_hash => example_params }} diff --git a/spec/support/pg_hba.rb b/spec/support/pg_hba.rb index 3b5aed84..1ddcc0c6 100644 --- a/spec/support/pg_hba.rb +++ b/spec/support/pg_hba.rb @@ -29,7 +29,7 @@ include_examples 'pg_hba resource' end - context "when ::augeasproviders_pg_hba_hash is a Hash" do + context "when augeasproviders_pg_hba_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_pg_hba_hash => example_params }} diff --git a/spec/support/puppet_auth.rb b/spec/support/puppet_auth.rb index 84ee0147..97fd472f 100644 --- a/spec/support/puppet_auth.rb +++ b/spec/support/puppet_auth.rb @@ -26,7 +26,7 @@ include_examples 'puppet_auth resource' end - context "when ::augeasproviders_puppet_auth_hash is a Hash" do + context "when augeasproviders_puppet_auth_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_puppet_auth_hash => example_params }} diff --git a/spec/support/shellvar.rb b/spec/support/shellvar.rb index 0095b3ef..cf9c78c6 100644 --- a/spec/support/shellvar.rb +++ b/spec/support/shellvar.rb @@ -27,7 +27,7 @@ include_examples 'shellvar resource' end - context "when ::augeasproviders_shellvar_hash is a Hash" do + context "when augeasproviders_shellvar_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_shellvar_hash => example_params }} diff --git a/spec/support/ssh_config.rb b/spec/support/ssh_config.rb index 0764ba25..1eb3d7e0 100644 --- a/spec/support/ssh_config.rb +++ b/spec/support/ssh_config.rb @@ -25,7 +25,7 @@ include_examples 'ssh_config resource' end - context "when ::augeasproviders_ssh_config_hash is a Hash" do + context "when augeasproviders_ssh_config_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_ssh_config_hash => example_params }} diff --git a/spec/support/sshd_config.rb b/spec/support/sshd_config.rb index fee7a34e..e192b552 100644 --- a/spec/support/sshd_config.rb +++ b/spec/support/sshd_config.rb @@ -25,7 +25,7 @@ include_examples 'sshd_config resource' end - context "when ::augeasproviders_sshd_config_hash is a Hash" do + context "when augeasproviders_sshd_config_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_sshd_config_hash => example_params }} diff --git a/spec/support/sshd_config_subsystem.rb b/spec/support/sshd_config_subsystem.rb index 75848bba..c914a4da 100644 --- a/spec/support/sshd_config_subsystem.rb +++ b/spec/support/sshd_config_subsystem.rb @@ -25,7 +25,7 @@ include_examples 'sshd_config_subsystem resource' end - context "when ::augeasproviders_sshd_config_subsystem_hash is a Hash" do + context "when augeasproviders_sshd_config_subsystem_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_sshd_config_subsystem_hash => example_params }} diff --git a/spec/support/sysctl.rb b/spec/support/sysctl.rb index 316a589c..405eba81 100644 --- a/spec/support/sysctl.rb +++ b/spec/support/sysctl.rb @@ -25,7 +25,7 @@ include_examples 'sysctl resource' end - context "when ::augeasproviders_sysctl_hash is a Hash" do + context "when augeasproviders_sysctl_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_sysctl_hash => example_params }} diff --git a/spec/support/syslog.rb b/spec/support/syslog.rb index 9cbac7c8..855a9dc2 100644 --- a/spec/support/syslog.rb +++ b/spec/support/syslog.rb @@ -28,7 +28,7 @@ include_examples 'syslog resource' end - context "when ::augeasproviders_syslog_hash is a Hash" do + context "when augeasproviders_syslog_hash is a Hash" do let(:params) {{}} let(:facts) {{ :augeasproviders_syslog_hash => example_params }}