Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#77)(#78) Add default factset tests and fix failures #79

Merged
merged 14 commits into from
Jul 15, 2019

Conversation

glennsarti
Copy link
Contributor

Previously there were many default fact files which are just duplicates. This
PR adds a test will performs a simple file hash comparison of all default
factset files and fails and displays any duplicate factsets.


Previously many factset files were in the wrong directory which made maintenance
and debugging difficult. This PR adds tests to ensure that the factset
files are indeed JSON parsable and that the facter version in the file matches
the directory it is located in.

@glennsarti
Copy link
Contributor Author

Note this PR supercedes #54

@glennsarti
Copy link
Contributor Author

@DavidS I've added your revert here

@glennsarti
Copy link
Contributor Author

Also added the submodule ref fix to help Travis.

@DavidS
Copy link
Contributor

DavidS commented Mar 26, 2018

Needs the constants in the number_of_files tests fixed up though. 🤷‍♂️

@glennsarti
Copy link
Contributor Author

Still Work in Progress. Fixing the broken tests

@glennsarti glennsarti force-pushed the add-more-factset-tests branch 2 times, most recently from bc80a67 to 09ebdc8 Compare March 26, 2018 08:14
@glennsarti
Copy link
Contributor Author

Fixed

Light is Green

glennsarti and others added 14 commits July 15, 2019 10:26
Previously the facterdb_spec test had hardcode values for external fact paths
and file counts.  This commit refactors out the hardcoded file counts and uses
rspec let statements to provide the information.  This commit also cleans up
the expectations to expect exact values instead of greater than.
Previously there were many default fact files which are just duplicates.  This
commit adds a test will performs a simple file hash comparison of all default
factset files and fails and displays any duplicate factsets.

This test is initially skipped while the duplicate files are removed in later
commits.
This commit removes the duplicate and redundant fact sets for Solaris 11.
This reverts commit f568b6a.

The original commit contained a number of factsets that were not of the
facter version specified in the pathname. Reverting this for now to
avoid distributing erroneous data.
This commit removes the duplicate and redundant fact sets for Solaris 10.
Previosuly the test for unique factsets was created but skipped while the
duplicate files were removed.  Now that the files have been removed, this test
can be enforced.
Previously many factset files were in the wrong directory which made maintenance
and debugging difficult.  This commit adds tests to ensure that the factset
files are indeed JSON parsable and that the facter version in the file matches
the directory it is located in.

This test is maked as skipped until all of the bad factset files can be changed.
Previously the factset files for SLES 12 were in the wrong location.  This
commit moves the SLES factset files

From:
  1.6 to 1.7
  1.7 to 2.0
  2.0 to 2.1
  2.1 to 2.2
  2.3 to 2.4
  2.4 to 1.6
Previously the PC6 factset file was placed in the 2.4 directory however the
facter version is 3.6.  This commit moves the file to the correct location.
The factset for Amazon 2017 in the 2.5 directory has a facter version of 1.6.
Looking at the factset in the 1.6 directory, this is just a copy of that set.
This commit removes the incorrect and redundant factset file.
Previously the test for factset file directory was created but skipped while the
factset files were fixed.  Now that the files have been fixed, this test
can be enforced.
Previously the git submodule reference for the Hugo theme was using git:.  This
can be troublesome for Travis and freshly created git environments.  This commit
changes the git submodule to use the more friendly HTTPS uri.
This commit updates the README after the factsets had been cleaned up.
@coveralls
Copy link

Coverage Status

Coverage increased (+6.7%) to 81.651% when pulling 4a3d7da on glennsarti:add-more-factset-tests into 9a17c2d on camptocamp:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+6.7%) to 81.651% when pulling 4a3d7da on glennsarti:add-more-factset-tests into 9a17c2d on camptocamp:master.

@rodjek rodjek merged commit 644d899 into voxpupuli:master Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants