Skip to content

Commit

Permalink
Add test for legacy domain fact
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Dec 15, 2021
1 parent 883dfde commit 11abb14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/facts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,11 @@
expect(content['systemd_version']).to be_nil
expect(content['systemd_internal_services']).to be_nil
end
it 'contains a legacy hostname and fqdn fact' do
it 'contains a legacy hostname, domain and fqdn fact' do
pending KNOWN_HOSTNAME_PENDING[relative_path] if KNOWN_HOSTNAME_PENDING.key?(relative_path)
expect(content['hostname']).to eq('foo')
expect(content['fqdn']).to eq('foo.example.com')
expect(content['domain']).to eq('example.com')
end
end
end
Expand Down

0 comments on commit 11abb14

Please sign in to comment.