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

(FACT-2555)Create OS hierarchy and mechanism for loading it #470

Merged
merged 28 commits into from
Apr 28, 2020

Conversation

BogdanIrimie
Copy link
Contributor

No description provided.

@BogdanIrimie BogdanIrimie requested review from a team April 27, 2020 15:27
.rubocop_todo.yml Show resolved Hide resolved
lib/framework/detector/os_hierarchy.rb Outdated Show resolved Hide resolved
lib/framework/detector/os_hierarchy.rb Outdated Show resolved Hide resolved
spec/framework/detector/os_detector_spec.rb Outdated Show resolved Hide resolved
spec/framework/detector/os_detector_spec.rb Show resolved Hide resolved
spec/framework/detector/os_hierarchy_spec.rb Outdated Show resolved Hide resolved
spec/framework/detector/os_hierarchy_spec.rb Show resolved Hide resolved
RbConfig::CONFIG['host_os'] = 'my_custom_os'
end

it 'raise error if it could not detect os' do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an extra s at raise

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added extra s

spec/framework/detector/os_detector_spec.rb Show resolved Hide resolved
Bogdan Irimie added 2 commits April 28, 2020 16:06
…CI in some cases (e.g. when time machine is running on macOS)"

This reverts commit 8cdf10d.
@BogdanIrimie BogdanIrimie merged commit fa6277c into master Apr 28, 2020
@BogdanIrimie BogdanIrimie deleted the FACT-2555 branch April 28, 2020 14:22
Filipovici-Andrei pushed a commit that referenced this pull request Apr 28, 2020
* (FACT-2555) If no module with the OS name was discovered, log a debug message instead of an error message.
* (FACT-2555) Add OsHierarchy Class and json with Os hierarchy definition.
* (FACT-2555) Reproduce existing hierarchy in os_hierarchy.json
* (FACT-2555) Use OsHierarchy in OsDetector. Rubocop fixes.
* (FACT-2555) If the distribution cannot be detected, default to linux
* (FACT-2555) Add comments.
* (FACT-2555) Add mock for OsHierarchy in OsDetector tests.
* (FACT-2555) Add test for fallback to linux in case no distribution is detected.
* (FACT-2555) Refactor OsDetector tests.
* (FACT-2555) Try to use family to detect os placement in hierarchy.
* (FACT-2555) Add mechanism for using os family if no hierarchy can be detected for OS.
* (FACT-2555) Add tests for os_hierarchy.
* (FACT-2555) Small refactoring of os detector.
* (FACT-2555) Add test for family.
* (FACT-2555) Force mount-point data to UTF-8 as it might be ASCI in some cases (e.g. when time machine is running on macOS)
* (FACT-2555) Move conversion to UTF-8 in helper.
* (FACT-2555) Add test for filesusyem_helper. Fix existing tests.
* (FACT-2555) Fix os hierarchy for intermediary nodes. Add tests for intermediary and root nodes.
* (FACT-2555) Address PR comments.
* (FACT-2555) Move the action we are testing in the block.
* (FACT-2555) Improve error handling for os_hierarchy.
* Revert "(FACT-2555) Add test for filesusyem_helper. Fix existing tests."
This reverts commit 0b220cd.
* Revert "(FACT-2555) Move conversion to UTF-8 in helper."

This reverts commit a218ac7.

* Revert "(FACT-2555) Force mount-point data to UTF-8 as it might be ASCI in some cases (e.g. when time machine is running on macOS)"
This reverts commit 8cdf10d.

* (FACT-2555) Add test for cases that throw exceptions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants