Skip to content

Commit

Permalink
Remove traces of remote_file from unit tests and .fixtures.yml
Browse files Browse the repository at this point in the history
When remote_file got replaced by archive [1] the unit tests were not updated accordingly.

Removes errors.
rspec ./spec/defines/ca_spec.rb:141 # ca_cert::ca os-dependent items On Debian based systems with a remote certificate is expected to contain Remote_file[/usr/local/share/ca-certificates/Globalsign_Org_Intermediate.crt] with ensure => "present" and source => "http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.crt"
rspec ./spec/defines/ca_spec.rb:202 # ca_cert::ca os-dependent items On RedHat based systems with a remote certificate is expected to contain Remote_file[/etc/pki/ca-trust/source/anchors/Globalsign_Org_Intermediate.crt] with ensure => "present" and source => "http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.crt"
rspec ./spec/defines/ca_spec.rb:246 # ca_cert::ca os-dependent items On RedHat based systems when explicitly distrusting a certificate is expected to contain Remote_file[/etc/pki/ca-trust/source/blacklist/Globalsign_Org_Intermediate.crt] with ensure => "present" and source => "http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.crt"
rspec ./spec/defines/ca_spec.rb:273 # ca_cert::ca os-dependent items On Suse 11 based systems with a remote certificate is expected to contain Remote_file[/etc/ssl/certs/Globalsign_Org_Intermediate.pem] with ensure => "present" and source => "http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.pem"
rspec ./spec/defines/ca_spec.rb:347 # ca_cert::ca os-dependent items On Suse 12 based systems with a remote certificate is expected to contain Remote_file[/etc/pki/trust/anchors/Globalsign_Org_Intermediate.crt] with ensure => "present" and source => "http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.crt"
rspec ./spec/defines/ca_spec.rb:393 # ca_cert::ca os-dependent items On Suse 12 based systems when explicitly distrusting a certificate is expected to contain Remote_file[/etc/pki/trust/blacklist/Globalsign_Org_Intermediate.crt] with ensure => "present" and source => "http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.crt"

[1] #69
  • Loading branch information
Phil Friderici committed Aug 10, 2023
1 parent 315e52e commit 20d6ed5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fixtures:
repositories:
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
remote_file: "https://github.com/lwf/puppet-remote_file.git"
puppet_archive: "https://github.com/voxpupuli/puppet-archive.git"
symlinks:
ca_cert: "#{source_dir}"
12 changes: 6 additions & 6 deletions spec/defines/ca_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
end

it {
is_expected.to contain_remote_file(DEBIAN_CA_FILE).with(
is_expected.to contain_archive(DEBIAN_CA_FILE).with(
'ensure' => 'present',
'source' => HTTP_URL,
)
Expand Down Expand Up @@ -199,7 +199,7 @@
end

it {
is_expected.to contain_remote_file(REDHAT_CA_FILE).with(
is_expected.to contain_archive(REDHAT_CA_FILE).with(
'ensure' => 'present',
'source' => HTTP_URL,
)
Expand Down Expand Up @@ -243,7 +243,7 @@
end

it {
is_expected.to contain_remote_file(DISTRUSTED_REDHAT_CA_FILE).with(
is_expected.to contain_archive(DISTRUSTED_REDHAT_CA_FILE).with(
'ensure' => 'present',
'source' => HTTP_URL,
)
Expand All @@ -270,7 +270,7 @@
end

it {
is_expected.to contain_remote_file(SUSE_11_CA_FILE).with(
is_expected.to contain_archive(SUSE_11_CA_FILE).with(
'ensure' => 'present',
'source' => SUSE_11_HTTP_URL,
)
Expand Down Expand Up @@ -344,7 +344,7 @@
end

it {
is_expected.to contain_remote_file(SUSE_12_CA_FILE).with(
is_expected.to contain_archive(SUSE_12_CA_FILE).with(
'ensure' => 'present',
'source' => HTTP_URL,
)
Expand Down Expand Up @@ -390,7 +390,7 @@
end

it {
is_expected.to contain_remote_file(DISTRUSTED_SUSE_12_CA_FILE).with(
is_expected.to contain_archive(DISTRUSTED_SUSE_12_CA_FILE).with(
'ensure' => 'present',
'source' => HTTP_URL,
)
Expand Down

0 comments on commit 20d6ed5

Please sign in to comment.