Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
(FACT-2556) Extract lsb release facts to Debian.
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanIrimie committed May 5, 2020
1 parent c833e66 commit 7536fd9
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Facts
module Linux
module Debian
class Lsbdistcodename
FACT_NAME = 'lsbdistcodename'
TYPE = :legacy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Facts
module Linux
module Debian
class Lsbdistdescription
FACT_NAME = 'lsbdistdescription'
TYPE = :legacy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Facts
module Linux
module Debian
class Lsbdistid
FACT_NAME = 'lsbdistid'
TYPE = :legacy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

describe Facts::Linux::Lsbdistcodename do
describe Facts::Debian::Lsbdistcodename do
describe '#call_the_resolver' do
subject(:fact) { Facts::Linux::Lsbdistcodename.new }
subject(:fact) { Facts::Debian::Lsbdistcodename.new }

let(:value) { 'stretch' }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

describe Facts::Linux::Lsbdistdescription do
describe Facts::Debian::Lsbdistdescription do
describe '#call_the_resolver' do
subject(:fact) { Facts::Linux::Lsbdistdescription.new }
subject(:fact) { Facts::Debian::Lsbdistdescription.new }

let(:value) { 'stretch' }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

describe Facts::Linux::Lsbdistid do
describe Facts::Debian::Lsbdistid do
describe '#call_the_resolver' do
subject(:fact) { Facts::Linux::Lsbdistid.new }
subject(:fact) { Facts::Debian::Lsbdistid.new }

let(:value) { 'stretch' }

Expand Down
4 changes: 2 additions & 2 deletions spec/framework/core/fact_loaders/internal_fact_loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@
allow(class_discoverer_mock)
.to receive(:discover_classes)
.with(:Linux)
.and_return([Facts::Linux::Lsbdistid])
.and_return([Facts::Debian::Lsbdistid])
allow(Facter::ClassDiscoverer).to receive(:instance).and_return(class_discoverer_mock)

stub_const('Facts::Linux::Lsbdistid::FACT_NAME', 'lsbdistid')
stub_const('Facts::Debian::Lsbdistid::FACT_NAME', 'lsbdistid')
end

it 'loads one fact' do
Expand Down

0 comments on commit 7536fd9

Please sign in to comment.