Project

General

Profile

Bug #25758

Fix tests for taxonomies

Added by Rahul Bajaj 5 months ago. Updated 3 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Many tests check whether there is a org/loc present if not then they return []
which is not appropriate as after @tbrisker's changes, taxonomies can not be
blank.

```

trait :with_subnet do
subnet do
FactoryBot.build(:subnet_ipv4,
:organizations => host ? [host.organization] : [],
:locations => host ? [host.location] : [])
end
end

```

The `host_related.rb` file has many such test cases.

History

#1 Updated by Rahul Bajaj 5 months ago

  • Description updated (diff)

#2 Updated by The Foreman Bot 4 months ago

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

#3 Updated by Rahul Bajaj 3 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 3 months ago

  • Status changed from Closed to Rejected

Also available in: Atom PDF