Project

General

Profile

Actions

Refactor #17354

closed

Test for idempotent operating system creation in Puppet fact parser

Added by Dominic Cleal over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

There are small idempotency issues in the Puppet fact parser, leading to bugs such as #17335, where the OS is successfully created on the first run, but subsequent runs fail as the parser tried to recreate an existing OS.

The tests should be expanded to call importer.operatingsystem twice and to verify the OS is unchanged.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #17335: puppet_fact_parser.rb does not correctly add hosts facts whos minor number does not exist or is emptyClosedDominic Cleal11/15/2016Actions
Actions #1

Updated by Dominic Cleal over 7 years ago

  • Related to Bug #17335: puppet_fact_parser.rb does not correctly add hosts facts whos minor number does not exist or is empty added
Actions #2

Updated by Dominic Cleal over 7 years ago

Other small issues found while expanding these tests:

  1. On the first run, the OS is an instance of Operatingsystem with the family attribute set on save by set_family, but subsequent runs return an STI subclass. The first run should also return the STI subclass.
  2. Some newer OSes are missing the refactoring from #3962, causing #class to return Operatingsystem
  3. The fact parser modifies OS release facts in the incoming hash through #gsub!
Actions #3

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4026 added
Actions #4

Updated by Dominic Cleal over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release set to 189
Actions

Also available in: Atom PDF