Project

General

Profile

Bug #27499

Fix discovery tests after bond import core change

Added by Lukas Zapletal 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

Couple of:

Error Message

unexpected invocation: Subnet(id: integer, network: string, mask: string, priority: integer, name: text, vlanid: integer, created_at: datetime, updated_at: datetime, dhcp_id: integer, tftp_id: integer, gateway: string, dns_primary: string, dns_secondary: string, from: string, to: string, dns_id: integer, boot_mode: string, ipam: string, type: string, description: text, mtu: integer, template_id: integer, httpboot_id: integer, discovery_id: integer).subnet_for("10.35.27.2")...

Stacktrace

unexpected invocation: Subnet(id: integer, network: string, mask: string, priority: integer, name: text, vlanid: integer, created_at: datetime, updated_at: datetime, dhcp_id: integer, tftp_id: integer, gateway: string, dns_primary: string, dns_secondary: string, from: string, to: string, dns_id: integer, boot_mode: string, ipam: string, type: string, description: text, mtu: integer, template_id: integer, httpboot_id: integer, discovery_id: integer).subnet_for("10.35.27.2")
unsatisfied expectations:
- expected exactly once, not yet invoked: Subnet(id: integer, network: string, mask: string, priority: integer, name: text, vlanid: integer, created_at: datetime, updated_at: datetime, dhcp_id: integer, tftp_id: integer, gateway: string, dns_primary: string, dns_secondary: string, from: string, to: string, dns_id: integer, boot_mode: string, ipam: string, type: string, description: text, mtu: integer, template_id: integer, httpboot_id: integer, discovery_id: integer).subnet_for("10.35.27.3")
satisfied expectations:
- allowed any number of times, invoked 61 times: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:PuppetFactImporter>.ensure_no_active_transaction(any_parameters)
 (Minitest::Assertion)
/home/jenkins/workspace/foreman_discovery-pull-request/database/postgresql/label/fast/ruby/2.3/plugin/app/services/foreman_discovery/import_hooks/subnet_and_taxonomy.rb:27    

Related issues

Related to Foreman - Bug #26727: Bond interfaces as primary nic create invalid recordsClosed

Associated revisions

Revision 4a8ff4ed (diff)
Added by Lukas Zapletal 11 months ago

Fixes #27499 - fixed primary bond/bridge tests

History

#1 Updated by Lukas Zapletal 11 months ago

  • Related to Bug #26727: Bond interfaces as primary nic create invalid records added

#2 Updated by The Foreman Bot 11 months ago

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

#3 Updated by The Foreman Bot 11 months ago

  • Fixed in Releases Discovery Plugin 16.0 added

#4 Updated by Anonymous 11 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF