Skip to content

(FACT-2786) Fix fact caching if fact is defined in multiple groups#2089

Merged
Filipovici-Andrei merged 1 commit intopuppetlabs:mainfrom
florindragos:FACT-2786
Sep 29, 2020
Merged

(FACT-2786) Fix fact caching if fact is defined in multiple groups#2089
Filipovici-Andrei merged 1 commit intopuppetlabs:mainfrom
florindragos:FACT-2786

Conversation

@florindragos
Copy link
Copy Markdown
Contributor

This PR also enables fact caching by only specifying individual facts in ttls configuration, rather than needing a cache group.

@florindragos florindragos added the bug Something isn't working label Sep 15, 2020
@florindragos florindragos requested review from a team September 15, 2020 09:19
@florindragos florindragos force-pushed the FACT-2786 branch 2 times, most recently from bfbe1cf to 8128105 Compare September 15, 2020 11:00
@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

@florindragos florindragos force-pushed the FACT-2786 branch 4 times, most recently from 0faa16c to 30492e8 Compare September 18, 2020 12:40
@florindragos
Copy link
Copy Markdown
Contributor Author

Jenkins please test this on all

Comment thread lib/facter/framework/config/fact_groups.rb Outdated
@florindragos
Copy link
Copy Markdown
Contributor Author

Jenkins please test this on all

@florindragos
Copy link
Copy Markdown
Contributor Author

Jenkins please test this on all

@florindragos florindragos force-pushed the FACT-2786 branch 2 times, most recently from c8b9201 to 95e6eb2 Compare September 22, 2020 08:16
@florindragos
Copy link
Copy Markdown
Contributor Author

Jenkins please test this on all

@florindragos florindragos force-pushed the FACT-2786 branch 7 times, most recently from 1ff2c16 to db81115 Compare September 28, 2020 08:23
Comment thread acceptance/tests/options/config_file/ttls_cahed_individual_fact_name.rb Outdated
Comment thread lib/facter/framework/config/fact_groups.rb Outdated
@Filipovici-Andrei
Copy link
Copy Markdown
Contributor

Is there a unit test that checks if a fact contained in two groups is not cached twice?

@florindragos
Copy link
Copy Markdown
Contributor Author

Is there a unit test that checks if a fact contained in two groups is not cached twice?

too complex for a unit test. added acceptance test.

@Filipovici-Andrei Filipovici-Andrei merged commit d5a0dd6 into puppetlabs:main Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants