Fixes #37897 - Separate autosign key generation and configuration #54
Annotations
4 errors
Run rake test:foreman_salt:
foreman_salt/test/functional/hosts_controller_test.rb#L37
Failure: test_0002_should change the salt master proxy
Expected "The Salt Master puppet ca proxy could not be set for hosts: host9 (undefined method `host' for #<Host::Managed id: nil, name: \"host9\", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: \"\", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: \"User\", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: \"Host::Managed\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>) and host10 (undefined method `host' for #<Host::Managed id: nil, name: \"host10\", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: \"\", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: \"User\", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: \"Host::Managed\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>)" to be empty.
|
Run rake test:foreman_salt:
foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0001_host autosign is created before host is provisioned
NoMethodError: undefined method `host' for #<Host::Managed id: nil, name: "host48", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: "", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: "asdfasdfasfasdf", salt_status: nil, creator_id: 135138680>
foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign'
app/models/concerns/orchestration.rb:83:in `valid?'
foreman_salt/test/unit/host_extensions_test.rb:79:in `block (2 levels) in <class:HostExtensionsTest>'
|
Run rake test:foreman_salt:
foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0005_host does not accept salt modules outside its environment
NoMethodError: undefined method `host' for #<Host::Managed id: nil, name: "host57", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: "", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: 7, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>
foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign'
app/models/concerns/orchestration.rb:83:in `valid?'
app/models/concerns/foreman/sti.rb:22:in `save'
foreman_salt/test/unit/host_extensions_test.rb:52:in `block in <class:HostExtensionsTest>'
|
Run rake test:foreman_salt
Process completed with exit code 1.
|
Loading