Project

General

Profile

Actions

Refactor #23333

open

Refactor of all discovery tests

Added by Lukas Zapletal almost 6 years ago. Updated almost 5 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 #1

Updated by Aditi Puntambekar over 5 years ago

  • Assignee set to Aditi Puntambekar
Actions #2

Updated by Lukas Zapletal over 5 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Aditi Puntambekar almost 5 years ago

  • Assignee deleted (Aditi Puntambekar)
Actions

Also available in: Atom PDF