Project

General

Profile

Actions

Refactor #23333

open

Refactor of all discovery tests

Added by Lukas Zapletal about 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Discovery plugin
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Our tests are in bad shape.

  • Drop importing discovery hosts in each test, use FactoryBot instead for Host::Discovered including Subnet, Taxonomy and facts
  • Use fixture or FactoryBot for current/session user in unit/functional tests
  • Prefer let helper everywhere instead of setup
Actions

Also available in: Atom PDF