Skip to content

Commit

Permalink
add testcase for failing export for trusted key
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 14, 2017
1 parent c856ee2 commit 0429f7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/cfa/ntp_conf_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -449,4 +449,12 @@ def ntp_conf(file)

expect(file.content.lines).to include("trustedkey 1# path to keys file\n")
end

it "loads properly when it is defined in file" do
file.content << "##stefanmurks\ntrustedkey 1\n"
ntp.load

trustedkey = ntp.records.last
expect(trustedkey.value).to eq "1"
end
end

0 comments on commit 0429f7b

Please sign in to comment.