Project

General

Profile

Actions

Bug #27499

closed

Fix discovery tests after bond import core change

Added by Lukas Zapletal over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman - Bug #26727: Bond interfaces as primary nic create invalid recordsClosedTimo GoebelActions
Actions #1

Updated by Lukas Zapletal over 4 years ago

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

Updated by The Foreman Bot over 4 years ago

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

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases Discovery Plugin 16.0 added
Actions #4

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF