Project

General

Profile

Actions

Bug #27512

closed

Plugin tests can fail due to template snapshot tests

Added by Adam Ruzicka over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

If a template can change based on what plugins are enabled, then tests can fail when that plugin is enabled.

An example is preseed default provisioning template. This template adds python to a list of enabled packages if ansible plugin is enabled. In foreman core we have a snapshot of that template and use that in tests to verify the template render properly. However if ansible is enabled, the rendered template differs from the snapshot and causes the test to fail. This happens when foreman ansible tests are run in ci.


Related issues 1 (0 open1 closed)

Related to Ansible - Bug #27513: Tests are failing due to changed templateRejectedAdam RuzickaActions
Actions #1

Updated by Adam Ruzicka over 4 years ago

  • Related to Bug #27513: Tests are failing due to changed template added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6951 added
Actions #3

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 1.24.0 added
Actions #4

Updated by Adam Ruzicka over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF