Jira (FACT-2920) Random failing unit tests

0 views
Skip to first unread message

Andrei Filipovici (Jira)

unread,
Jan 15, 2021, 8:48:04 AM1/15/21
to puppe...@googlegroups.com
Andrei Filipovici created an issue
 
Facter / Task FACT-2920
Random failing unit tests
Issue Type: Task Task
Assignee: Unassigned
Created: 2021/01/15 5:47 AM
Priority: Normal Normal
Reporter: Andrei Filipovici

Kenyon pointed out in PR https://github.com/puppetlabs/facter/pull/2241 that some unit tests fail because of improper stubs.

I added unit tests. Everything passes locally for me, except for

random unit test failures unrelated to my changes, where the test returns facts from my system instead of from fixtures;
spec_integration/facter_to_hash_spec.rb tests that return statvfs() function failed: Permission denied, I guess because I'm not running these tests as root.
Example of the random failures:

1) Facter::Resolvers::OsRelease when on Oracle Linux returns os NAME
Failure/Error: expect(result).to eq('OracleLinux')

expected: "OracleLinux"
got: "Debian"

(compared using ==)

  1. ./spec/facter/resolvers/os_release_spec.rb:118:in `block (3 levels) in <top (required)>'
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Jun 30, 2021, 2:24:03 AM6/30/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Team: Ghost Night's Watch
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages