Jira (FACT-2862) Acceptance test for custom fact with core fact in custom group

20 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Nov 16, 2020, 8:12:04 AM11/16/20
to puppe...@googlegroups.com
Bogdan Irimie created an issue
 
Facter / Task FACT-2862
Acceptance test for custom fact with core fact in custom group
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/11/16 5:11 AM
Priority: Normal Normal
Reporter: Bogdan Irimie

Create a custom fact that resolves a core fact.
e.g.

Facter.add(:my_custom_fact) do
  setcode do
    Facter.value('system_uptime.seconds')
  end
end

Create a custom fact group that contains "system_uptime" and "my_custom_fact".

  • request all the facts
    • check that the cache file contains my_custom_fact and system_uptime
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Nov 16, 2020, 9:49:03 AM11/16/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Acceptance Criteria: A new acceptance test with the checks from the description is written.

Bogdan Irimie (Jira)

unread,
Nov 18, 2020, 9:14:03 AM11/18/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage ghost 25.11

Bogdan Irimie (Jira)

unread,
Nov 25, 2020, 9:04:03 AM11/25/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost 25.11 , ready for triage 2

Bogdan Irimie (Jira)

unread,
Dec 2, 2020, 2:39:04 AM12/2/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost 25.11, ghost-2.12 , ready for triage 2

Bogdan Irimie (Jira)

unread,
Dec 16, 2020, 2:08:14 PM12/16/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost 25.11, ghost-2.12, ready for triage 2 ghost-19.12

Florin Dragos (Jira)

unread,
Dec 16, 2020, 2:33:15 PM12/16/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Dec 18, 2020, 11:57:04 AM12/18/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost 25.11, ghost-2.12, ghost-18.12 , ready for triage 3

Bogdan Irimie (Jira)

unread,
Jan 5, 2021, 3:18:03 AM1/5/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost 25.11, ghost-2.12, ghost-18.12, ready for triage 3 ghost-13.01.2020

Andrei Filipovici (Jira)

unread,
Jan 6, 2021, 6:46:02 AM1/6/21
to puppe...@googlegroups.com
Andrei Filipovici updated an issue
Change By: Andrei Filipovici
Create a custom fact that resolves a core fact.
e.g.
{code}
Facter.add(:my_custom_fact) do
  setcode do
    Facter.value('system_uptime.seconds')
  end
end
{code}

Create a custom fact group that contains "system_uptime" and "my_custom_fact".

* request all the facts
** check that the cache file contains my_custom_fact and system_uptime

** check that my_custom_fact and system_uptime.seconds have the same value
* request all facts again 

Andrei Filipovici (Jira)

unread,
Jan 6, 2021, 6:48:02 AM1/6/21
to puppe...@googlegroups.com
Andrei Filipovici updated an issue
Create a custom fact that resolves a core fact.
e.g.
{code}Facter.add(:my_custom_fact) do
  setcode do
    Facter.value('system_uptime.seconds')
  end
end
{code}
Create a custom fact group that contains "system_uptime" and "my_custom_fact".
* request all the facts
** check that the cache file contains my_custom_fact and system_uptime
** check that my_custom_fact and system_uptime.seconds have the same value
* request all facts again and check that   my_custom_fact and system_uptime.seconds return the values from cache.

Gheorghe Popescu (Jira)

unread,
Jan 14, 2021, 3:58:02 AM1/14/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages