Create a cache file with a tested fact in the Facter 3 format. In facter.conf set the same fact to be cached by Facter 4 with a large TTLS
- run Facter 4 with cache configured - check if the cache file was invalidated and recreated by Facter 4 - check the cache file contains "cache_format_version": 1 - check the fact value was written to the cache - check that the old value from the Facter 3 formatted cache is no longer in the cache
- run Facter 4 with no config file - check we have a fact value and it is read from the system - check the cache file was not changed
- run Facter 4 with config - check the cache file did not changed - check it prints the value from the cache
Create a cache file with a tested fact in the Facter 3 format. In facter.conf set the same fact to be cached by Facter 4 with a large TTLS
- * run Facter 4 with cache configured - ** check if the cache file was invalidated and recreated by Facter 4 - ** check the cache file contains "cache_format_version": 1 - ** check the fact value was written to the cache - ** check that the old value from the Facter 3 formatted cache is no longer in the cache
- * run Facter 4 with no config file - ** check we have a fact value and it is read from the system - ** check the cache file was not changed
- * run Facter 4 with config - ** check the cache file did not changed - ** check it prints the value from the cache