Skip to content

Commit

Permalink
Updated testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Feb 22, 2023
1 parent accfb40 commit 74fa929
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/security_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ def enabled?
expect(shadow_config).to receive(:save)
Security.write_shadow_config
end

it "doesn't allow empty value to enter into model for an attribute" do
Security.Settings["USERADD_CMD"] = ""

expect(shadow_config).not_to receive(:useradd_cmd=)
expect(shadow_config).to receive(:save)

Security.write_shadow_config
end
end

describe "#write_lsm_config" do
Expand Down

0 comments on commit 74fa929

Please sign in to comment.