Jira (FACT-3032) Spec integration tests failing when IPv6 not set

17 views
Skip to first unread message

Luchian Nemes (Jira)

unread,
Apr 28, 2021, 3:36:02 AM4/28/21
to puppe...@googlegroups.com
Luchian Nemes updated an issue
 
Facter / Bug FACT-3032
Spec integration tests failing when IPv6 not set
Change By: Luchian Nemes

{code:java}
Randomized with seed 30125
.....F......F.............................................................................................................Failures:  1) Facter when calling the ruby API to_hash contains ipaddress6
     Failure/Error: expect(fact_hash['ipaddress6']).to match(/([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/)
       expected nil to match /([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/
     # ./spec_integration/facter_to_hash_spec.rb:93:in `block (3 levels) in <top (required)>'  2) Facter when calling facter cli with user query returns ipaddress6
     Failure/Error: expect(out).to match(/([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/)       expected "\n" to match /([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/
       Diff:
       @@ -1,2 +1 @@
       -/([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/     # ./spec_integration/facter_to_hash_spec.rb:54:in `block (4 levels) in <top (required)>'Finished in 29.42 seconds (files took 0.31385 seconds to load)
122 examples, 2 failuresFailed examples:rspec ./spec_integration/facter_to_hash_spec.rb:90 # Facter when calling the ruby API to_hash contains ipaddress6
rspec ./spec_integration/facter_to_hash_spec.rb:51 # Facter when calling facter cli with user query returns ipaddress6
{code}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Luchian Nemes (Jira)

unread,
Apr 28, 2021, 3:36:03 AM4/28/21
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
Apr 28, 2021, 3:36:04 AM4/28/21
to puppe...@googlegroups.com
Luchian Nemes created an issue
Issue Type: Bug Bug
Affects Versions: FACT 4.0.44
Assignee: Unassigned
Created: 2021/04/28 12:35 AM
Priority: Normal Normal
Reporter: Luchian Nemes

Randomized with seed 30125
.....F......F.............................................................................................................Failures: 1) Facter when calling the ruby API to_hash contains ipaddress6
Failure/Error: expect(fact_hash['ipaddress6']).to match(/([a-z0-9]{1,4}:{1,2})+[a-z0-9]{1,4}/)
expected nil to match /([a-z0-9]{1,4}:{1,2})+[a-z0-9]{1,4}/

  1. ./spec_integration/facter_to_hash_spec.rb:93:in `block (3 levels) in <top (required)>' 2) Facter when calling facter cli with user query returns ipaddress6
    Failure/Error: expect(out).to match(/([a-z0-9]{1,4}:{1,2})[a-z0-9]{1,4}/) expected "\n" to match /([a-z0-9]{1,4}:{1,2})[a-z0-9]{1,4}/

  1. Diff:
    @@ -1,2 +1 @@
    -/([a-z0-9]{1,4}:{1,2})+[a-z0-9]{1,4}/ # ./spec_integration/facter_to_hash_spec.rb:54:in `block (4 levels) in <top (required)>'Finished in 29.42 seconds (files took 0.31385 seconds to load)
    122 examples, 2 failuresFailed examples:rspec ./spec_integration/facter_to_hash_spec.rb:90 # Facter when calling the ruby API to_hash contains ipaddress6
    rspec ./spec_integration/facter_to_hash_spec.rb:51 # Facter when calling facter cli with user query returns ipaddress6

Ciprian Badescu (Jira)

unread,
Jun 9, 2021, 9:51:01 AM6/9/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jun 15, 2021, 3:49:02 AM6/15/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: Triaged tickets NW-2021-07-14

Ciprian Badescu (Jira)

unread,
Jun 23, 2021, 3:34:01 AM6/23/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
{code:java}

Randomized with seed 30125
.....F......F.............................................................................................................Failures:  1) Facter when calling the ruby API to_hash contains ipaddress6
     Failure/Error: expect(fact_hash['ipaddress6']).to match(/([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/)
       expected nil to match /([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/
     # ./spec_integration/facter_to_hash_spec.rb:93:in `block (3 levels) in <top (required)>'  2) Facter when calling facter cli with user query returns ipaddress6
     Failure/Error: expect(out).to match(/([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/)       expected "\n" to match /([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/

       Diff:
       @@ -1,2 +1 @@
       -/([a-z0-9]\{1,4}:\{1,2})+[a-z0-9]\{1,4}/     # ./spec_integration/facter_to_hash_spec.rb:54:in `block (4 levels) in <top (required)>'Finished in 29.42 seconds (files took 0.31385 seconds to load)
122 examples, 2 failuresFailed examples:rspec ./spec_integration/facter_to_hash_spec.rb:90 # Facter when calling the ruby API to_hash contains ipaddress6
rspec ./spec_integration/facter_to_hash_spec.rb:51 # Facter when calling facter cli with user query returns ipaddress6
{code}

Expected: add a new tag that will group all IPv6 tests and will be executed on CI (githubactions/jenkins) but not by default on spec_integration (https://relishapp.com/rspec/rspec-core/v/2-4/docs/command-line/tag-option)

Ciprian Badescu (Jira)

unread,
Jun 23, 2021, 3:37:02 AM6/23/21
to puppe...@googlegroups.com
Expected: add a new tag that will group all IPv6 tests and will be executed on CI (githubactions/jenkins) but not by default on spec_integration (https://relishapp.com/rspec/rspec-core/v/2-4/docs/command-line/tag-option) , document the new tag in README file

Ciprian Badescu (Jira)

unread,
Jun 23, 2021, 3:39:03 AM6/23/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jun 30, 2021, 5:12:02 AM6/30/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW-2021-07- 14 28

Gheorghe Popescu (Jira)

unread,
Jul 14, 2021, 6:09:04 AM7/14/21
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Aug 12, 2021, 4:37:02 AM8/12/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages