Skip to content

Commit

Permalink
more cleanup and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrammen-agilitypr committed May 29, 2020
1 parent 1577c75 commit f84767e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spec/unit/puppet/provider/sshd_config/augeas_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@
it "should create new comment before entry" do
apply!(Puppet::Type.type(:sshd_config).new(
:name => "DenyUsers",
:host => "example.net",
:value => "example_user",
:target => target,
:provider => "augeas",
:comment => 'Deny example_user access'
))

aug_open(target, "Ssh.lns") do |aug|
expect(aug.get("Host[.='example.net']/DenyUsers[preceding-sibling::#comment]")).to eq("yes")
expect(aug.get("DenyUsers[preceding-sibling::#comment]")).to eq("Deny example_user access")
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
end

it "should create new comment before entry" do
apply!(Puppet::Type.type(:sshd_config_match).new(
apply!(Puppet::Type.type(:sshd_config_subsystem).new(
:name => "sftp",
:command => "/usr/lib/openssh/sftp-server",
:target => target,
Expand Down

0 comments on commit f84767e

Please sign in to comment.