Project

General

Profile

Actions

Bug #27512

closed

Plugin tests can fail due to template snapshot tests

Added by Adam Ruzicka almost 5 years ago. Updated almost 5 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

Also available in: Atom PDF