diff --git a/spec/facts_spec.rb b/spec/facts_spec.rb index 6a1916f3..d0de1177 100644 --- a/spec/facts_spec.rb +++ b/spec/facts_spec.rb @@ -117,6 +117,28 @@ expect(content['systemd_version']).to be_nil expect(content['systemd_internal_services']).to be_nil end + + it 'contains a legacy hostname, domain and fqdn fact' do + expect(content['hostname']).to eq('foo') + expect(content['fqdn']).to eq('foo.example.com') + expect(content['domain']).to eq('example.com') + end + + it 'contains the legacy osfamily fact' do + expect(content['osfamily']).not_to be_nil + end + + it 'contains the legacy operatingsystem fact' do + expect(content['operatingsystem']).not_to be_nil + end + + it 'contains the legacy operatingsystemrelease fact' do + expect(content['operatingsystemrelease']).not_to be_nil + end + + it 'contains the legacy operatingsystemmajrelease fact' do + expect(content['operatingsystemmajrelease']).not_to be_nil + end end end end