Skip to content

Commit

Permalink
rename powerdns_autoprimary and fix spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
trefzer committed Dec 4, 2023
1 parent 40ee47d commit 8df34bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec/unit/puppet/type/powerdns_autoprimary.rb

This file was deleted.

13 changes: 13 additions & 0 deletions spec/unit/puppet/type/powerdns_autoprimary_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'puppet'
require 'puppet/type/powerdns_autoprimary'

describe Puppet::Type.type(:powerdns_autoprimary) do
let!(:autoprimary) { Puppet::Type.type(:powerdns_autoprimary).new(name: '1.2.3.4@ns1.example.com') }

it 'has its name set' do
expect(autoprimary[:name]).to eq('1.2.3.4@ns1.example.com')
end
it 'has set account to empty string' do
expect(autoprimary[:account]).to eq('')
end
end

0 comments on commit 8df34bc

Please # to comment.