|
/usr/local/rvm/rubies/ruby-2.0.0-p643/bin/ruby -I"lib:lib" -I"/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rake-10.1.1/lib" "/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rake-10.1.1/lib/rake/rake_test_loader.rb" "test/unit/api_test.rb" "test/unit/architecture_test.rb" "test/unit/auth_source_ldap_test.rb" "test/unit/commands_test.rb" "test/unit/common_parameter_test.rb" "test/unit/compute_resource_test.rb" "test/unit/credentials_test.rb" "test/unit/dependency_resolver_test.rb" "test/unit/domain_test.rb" "test/unit/environment_test.rb" "test/unit/exception_handler_test.rb" "test/unit/external_usergroup_test.rb" "test/unit/fact_test.rb" "test/unit/filter_test.rb" "test/unit/hostgroup_test.rb" "test/unit/id_resolver_test.rb" "test/unit/image_test.rb" "test/unit/location_test.rb" "test/unit/media_test.rb" "test/unit/model_test.rb" "test/unit/operating_system_test.rb" "test/unit/option_builders_test.rb" "test/unit/organization_test.rb" "test/unit/output/formatters_test.rb" "test/unit/param_filters_test.rb" "test/unit/partition_table_test.rb" "test/unit/puppet_class_test.rb" "test/unit/report_test.rb" "test/unit/role_test.rb" "test/unit/smart_class_parameter_test.rb" "test/unit/smart_proxy_test.rb" "test/unit/smart_variable_test.rb" "test/unit/subnet_test.rb" "test/unit/template_test.rb" "test/unit/user_test.rb" "test/unit/usergroup_test.rb" "test/unit/host_test.rb"
|
|
Run options: --seed 9035
|
|
|
|
# Running tests:
|
|
|
|
............F............................................FF......F....................F............FFF.........................F....................F..............................................................................................F.........FFFFFF.....................................F......................F.................F......F............................F..............................FEFF.............................F........................................................F.......................F............F...................................F.............................................................................F.............F.........F.............................................................................................................................................................................F....................F............................F.........................................
|
|
|
|
Finished tests in 14.391469s, 64.9690 tests/s, 86.8570 assertions/s.
|
|
|
|
1) Failure:
|
|
HammerCLIForeman::Architecture::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 4
|
|
|
|
2) Failure:
|
|
HammerCLIForeman::BuilderConfigurator::action with dependent resources#test_0002_adds dependent searchable option builders [/root/hammer/hammer-cli-foreman/test/unit/option_builders_test.rb:126]:
|
|
--- expected
|
|
+++ actual
|
|
@@ -1 +1 @@
|
|
-[:compute_resources]
|
|
+[:compute_resources, :architectures, :operatingsystems]
|
|
|
|
|
|
3) Failure:
|
|
HammerCLIForeman::BuilderConfigurator::simple action without ids#test_0001_adds no option builder [/root/hammer/hammer-cli-foreman/test/unit/option_builders_test.rb:101]:
|
|
--- expected
|
|
+++ actual
|
|
@@ -1 +1 @@
|
|
-[]
|
|
+[HammerCLIForeman::DependentSearchablesOptionBuilder, HammerCLIForeman::DependentSearchablesOptionBuilder, HammerCLIForeman::DependentSearchablesOptionBuilder, HammerCLIForeman::DependentSearchablesOptionBuilder, HammerCLIForeman::DependentSearchablesOptionBuilder]
|
|
|
|
|
|
4) Failure:
|
|
HammerCLIForeman::CommonParameter::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 2
|
|
|
|
5) Failure:
|
|
HammerCLIForeman::ComputeResource::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 10
|
|
|
|
6) Failure:
|
|
HammerCLIForeman::DependencyResolver::for action#test_0002_returns list of dependent resources [/root/hammer/hammer-cli-foreman/test/unit/dependency_resolver_test.rb:34]:
|
|
--- expected
|
|
+++ actual
|
|
@@ -1 +1 @@
|
|
-[:architectures, :domains, :environments, :locations, :media, :operatingsystems, :organizations, :ptables, :realms, :subnets]
|
|
+[:architectures, :compute_profiles, :config_templates, :domains, :environments, :hostgroups, :hosts, :locations, :media, :operatingsystems, :organizations, :provisioning_templates, :ptables, :puppetclasses, :realms, :subnets]
|
|
|
|
|
|
7) Failure:
|
|
HammerCLIForeman::DependencyResolver::for resource#test_0001_returns empty array for an independent resource [/root/hammer/hammer-cli-foreman/test/unit/dependency_resolver_test.rb:13]:
|
|
--- expected
|
|
+++ actual
|
|
@@ -1 +1 @@
|
|
-[]
|
|
+[<Resource :operatingsystems>, <Resource :architectures>, <Resource :media>, <Resource :locations>, <Resource :organizations>, <Resource :ptables>, <Resource :config_templates>, <Resource :provisioning_templates>]
|
|
|
|
|
|
8) Failure:
|
|
HammerCLIForeman::DependencyResolver::for resource#test_0002_returns list of dependent resources [/root/hammer/hammer-cli-foreman/test/unit/dependency_resolver_test.rb:18]:
|
|
--- expected
|
|
+++ actual
|
|
@@ -1 +1 @@
|
|
-[:compute_resources, :locations, :organizations]
|
|
+[:architectures, :compute_resources, :config_templates, :locations, :media, :operatingsystems, :organizations, :provisioning_templates, :ptables]
|
|
|
|
|
|
9) Failure:
|
|
HammerCLIForeman::Domain::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 5
|
|
|
|
10) Failure:
|
|
HammerCLIForeman::Environment::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 4
|
|
|
|
11) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters#test_0001_should accept name, environment_id, architecture_id, domain_id, puppet_proxy_id, operatingsystem_id and more [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:84]:
|
|
Expected: 0
|
|
Actual: 64
|
|
|
|
12) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters::with params ["--name=host", "--environment-id=1", "--architecture-id=1", "--domain-id=1", "--puppet-proxy-id=1", "--operatingsystem-id=1", "--ip=1.2.3.4", "--mac=11:22:33:44:55:66", "--medium-id=1", "--partition-table-id=1", "--subnet-id=1", "--sp-subnet-id=1", "--model-id=1", "--hostgroup-id=1", "--owner-id=1", "--puppet-ca-proxy-id=1", "--puppet-class-ids", "--root-password=pwd", "--ask-root-password=true", "--provision-method=build", "--interface=primary=true,provision=true"]#test_0001_should call action create [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:68]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, not yet invoked: #<HammerCLIForeman::Host::CreateCommand:0x5efbe38>.resolver(any_parameters)
|
|
- allowed any number of times, not yet invoked: HammerCLIForeman::CommonHostUpdateOptions.ask_password(any_parameters)
|
|
|
|
|
|
13) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters::with params ["--name=host", "--environment-id=1", "--architecture-id=1", "--domain-id=1", "--puppet-proxy-id=1", "--operatingsystem-id=1", "--ip=1.2.3.4", "--mac=11:22:33:44:55:66", "--medium-id=1", "--partition-table-id=1", "--subnet-id=1", "--sp-subnet-id=1", "--model-id=1", "--hostgroup-id=1", "--owner-id=1", "--puppet-ca-proxy-id=1", "--puppet-class-ids", "--root-password=pwd", "--ask-root-password=true", "--provision-method=build", "--interface=primary=true,provision=true"]#test_0006_should call action create [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:68]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, not yet invoked: #<HammerCLIForeman::Host::CreateCommand:0x62f53b8>.resolver(any_parameters)
|
|
- allowed any number of times, not yet invoked: HammerCLIForeman::CommonHostUpdateOptions.ask_password(any_parameters)
|
|
|
|
|
|
14) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters::with params ["--name=host", "--environment-id=1", "--architecture-id=1", "--domain-id=1", "--puppet-proxy-id=1", "--operatingsystem-id=1", "--ip=1.2.3.4", "--mac=11:22:33:44:55:66", "--medium-id=1", "--partition-table-id=1", "--subnet-id=1", "--sp-subnet-id=1", "--model-id=1", "--hostgroup-id=1", "--owner-id=1", "--puppet-ca-proxy-id=1", "--puppet-class-ids", "--root-password=pwd", "--ask-root-password=true", "--provision-method=build", "--interface=primary=true,provision=true"]#test_0002_should call action create [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:68]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, not yet invoked: #<HammerCLIForeman::Host::CreateCommand:0x290e578>.resolver(any_parameters)
|
|
- allowed any number of times, not yet invoked: HammerCLIForeman::CommonHostUpdateOptions.ask_password(any_parameters)
|
|
|
|
|
|
15) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters::with params ["--name=host", "--environment-id=1", "--architecture-id=1", "--domain-id=1", "--puppet-proxy-id=1", "--operatingsystem-id=1", "--ip=1.2.3.4", "--mac=11:22:33:44:55:66", "--medium-id=1", "--partition-table-id=1", "--subnet-id=1", "--sp-subnet-id=1", "--model-id=1", "--hostgroup-id=1", "--owner-id=1", "--puppet-ca-proxy-id=1", "--puppet-class-ids", "--root-password=pwd", "--ask-root-password=true", "--provision-method=build", "--interface=primary=true,provision=true"]#test_0004_should call action create [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:68]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, not yet invoked: #<HammerCLIForeman::Host::CreateCommand:0x2f89628>.resolver(any_parameters)
|
|
- allowed any number of times, not yet invoked: HammerCLIForeman::CommonHostUpdateOptions.ask_password(any_parameters)
|
|
|
|
|
|
16) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters::with params ["--name=host", "--environment-id=1", "--architecture-id=1", "--domain-id=1", "--puppet-proxy-id=1", "--operatingsystem-id=1", "--ip=1.2.3.4", "--mac=11:22:33:44:55:66", "--medium-id=1", "--partition-table-id=1", "--subnet-id=1", "--sp-subnet-id=1", "--model-id=1", "--hostgroup-id=1", "--owner-id=1", "--puppet-ca-proxy-id=1", "--puppet-class-ids", "--root-password=pwd", "--ask-root-password=true", "--provision-method=build", "--interface=primary=true,provision=true"]#test_0005_should call action create [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:68]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, not yet invoked: #<HammerCLIForeman::Host::CreateCommand:0x3070e88>.resolver(any_parameters)
|
|
- allowed any number of times, not yet invoked: HammerCLIForeman::CommonHostUpdateOptions.ask_password(any_parameters)
|
|
|
|
|
|
17) Failure:
|
|
HammerCLIForeman::Host::CreateCommand::parameters::with params ["--name=host", "--environment-id=1", "--architecture-id=1", "--domain-id=1", "--puppet-proxy-id=1", "--operatingsystem-id=1", "--ip=1.2.3.4", "--mac=11:22:33:44:55:66", "--medium-id=1", "--partition-table-id=1", "--subnet-id=1", "--sp-subnet-id=1", "--model-id=1", "--hostgroup-id=1", "--owner-id=1", "--puppet-ca-proxy-id=1", "--puppet-class-ids", "--root-password=pwd", "--ask-root-password=true", "--provision-method=build", "--interface=primary=true,provision=true"]#test_0003_should call action create [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:68]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, not yet invoked: #<HammerCLIForeman::Host::CreateCommand:0x31315c0>.resolver(any_parameters)
|
|
- allowed any number of times, not yet invoked: HammerCLIForeman::CommonHostUpdateOptions.ask_password(any_parameters)
|
|
|
|
|
|
18) Failure:
|
|
HammerCLIForeman::Host::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 2
|
|
|
|
19) Failure:
|
|
HammerCLIForeman::Host::ReportsCommand::output::with params ["--id=1"]#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 1
|
|
Actual: 2
|
|
|
|
20) Failure:
|
|
HammerCLIForeman::Host::StatusCommand::output::with params ["--id=1"]#test_0003_should output status [/root/hammer/hammer-cli-foreman/test/unit/host_test.rb:76]:
|
|
In stdout.
|
|
--- expected
|
|
+++ actual
|
|
@@ -1,3 +1,3 @@
|
|
"#Status#Power#
|
|
-#missing#running#
|
|
+#No reports#running#
|
|
"
|
|
|
|
|
|
21) Failure:
|
|
HammerCLIForeman::Host::UpdateCommand::parameters#test_0002_should accept id and more [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:84]:
|
|
Expected: 0
|
|
Actual: 64
|
|
|
|
22) Failure:
|
|
HammerCLIForeman::Hostgroup::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 6
|
|
|
|
23) Failure:
|
|
HammerCLIForeman::IdResolver::resolving ids::searching dependent resources#test_0003_calls index action with appropriate search params [/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:150]:
|
|
not all expectations were satisfied
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- expected exactly once, invoked once: #<AnyInstance:ApipieBindings::API>.call()
|
|
|
|
|
|
24) Error:
|
|
HammerCLIForeman::IdResolver::resolving ids::searching dependent resources#test_0004_returns id of the resource:
|
|
ArgumentError: missing param 'operatingsystem_id' in parameters
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:22:in `block in path'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `each'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `inject'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `path'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/api.rb:163:in `call'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/resource.rb:14:in `call'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:178:in `resolved_call'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:164:in `find_resource_raw'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:158:in `find_resource'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:143:in `get_id'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:133:in `block (2 levels) in define_id_finders'
|
|
/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:128:in `block (5 levels) in <top (required)>'
|
|
/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:173:in `call'
|
|
/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:173:in `block (4 levels) in <top (required)>'
|
|
|
|
25) Failure:
|
|
HammerCLIForeman::IdResolver::resolving ids::searching dependent resources#test_0002_raises exception when multiple resources are found [/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:145]:
|
|
[HammerCLIForeman::ResolverError] exception expected, not
|
|
Class: <ArgumentError>
|
|
Message: <"missing param 'operatingsystem_id' in parameters">
|
|
---Backtrace---
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:22:in `block in path'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `each'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `inject'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `path'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/api.rb:163:in `call'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/resource.rb:14:in `call'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:178:in `resolved_call'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:164:in `find_resource_raw'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:158:in `find_resource'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:143:in `get_id'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:133:in `block (2 levels) in define_id_finders'
|
|
/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:128:in `block (5 levels) in <top (required)>'
|
|
---------------
|
|
|
|
26) Failure:
|
|
HammerCLIForeman::IdResolver::resolving ids::searching dependent resources#test_0001_raises exception when no resource is found [/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:134]:
|
|
[HammerCLIForeman::ResolverError] exception expected, not
|
|
Class: <ArgumentError>
|
|
Message: <"missing param 'operatingsystem_id' in parameters">
|
|
---Backtrace---
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:22:in `block in path'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `each'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `inject'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/route.rb:20:in `path'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/api.rb:163:in `call'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/resource.rb:14:in `call'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:178:in `resolved_call'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:164:in `find_resource_raw'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:158:in `find_resource'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:143:in `get_id'
|
|
/root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:133:in `block (2 levels) in define_id_finders'
|
|
/root/hammer/hammer-cli-foreman/test/unit/id_resolver_test.rb:128:in `block (5 levels) in <top (required)>'
|
|
---------------
|
|
|
|
27) Failure:
|
|
HammerCLIForeman::Image::ListCommand::output::with params ["--compute-resource-id=1"]#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 3
|
|
|
|
28) Failure:
|
|
HammerCLIForeman::Medium::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 5
|
|
|
|
29) Failure:
|
|
HammerCLIForeman::Model::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 3
|
|
|
|
30) Failure:
|
|
HammerCLIForeman::OperatingSystem::CreateCommand::with params ["--name=os", "--major=1", "--minor=2", "--family=Red Hat", "--release-name=awesome"]#test_0001_should call action create [/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/resource.rb:14]:
|
|
unexpected invocation: #<AnyInstance:ApipieBindings::API>.call(:operatingsystems, :create, {'operatingsystem' => {'name' => 'os', 'major' => '1', 'minor' => '2', 'family' => 'Red Hat', 'release_name' => 'awesome', 'architecture_ids' => [1], 'config_template_ids' => [1], 'provisioning_template_ids' => [1], 'medium_ids' => [1], 'ptable_ids' => [1]}}, {}, {})
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, invoked 10 times: #<HammerCLIForeman::OperatingSystem::CreateCommand:0x33adad8>.resolver(any_parameters)
|
|
|
|
|
|
31) Failure:
|
|
HammerCLIForeman::OperatingSystem::UpdateCommand::with params ["--id=83", "--name=os", "--major=1", "--minor=2", "--family=Red Hat", "--release-name=awesome"]#test_0001_should call action update [/usr/local/rvm/gems/ruby-2.0.0-p643/gems/apipie-bindings-0.0.15/lib/apipie_bindings/resource.rb:14]:
|
|
unexpected invocation: #<AnyInstance:ApipieBindings::API>.call(:operatingsystems, :update, {'id' => '83', 'operatingsystem' => {'name' => 'os', 'major' => '1', 'minor' => '2', 'family' => 'Red Hat', 'release_name' => 'awesome', 'architecture_ids' => [1], 'config_template_ids' => [1], 'provisioning_template_ids' => [1], 'medium_ids' => [1], 'ptable_ids' => [1]}}, {}, {})
|
|
unsatisfied expectations:
|
|
- expected exactly once, not yet invoked: #<AnyInstance:ApipieBindings::API>.call()
|
|
satisfied expectations:
|
|
- allowed any number of times, invoked 10 times: #<HammerCLIForeman::OperatingSystem::UpdateCommand:0x2ac7928>.resolver(any_parameters)
|
|
|
|
|
|
32) Failure:
|
|
HammerCLIForeman::PartitionTable::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 2
|
|
|
|
33) Failure:
|
|
HammerCLIForeman::PuppetClass::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 9
|
|
|
|
34) Failure:
|
|
HammerCLIForeman::Report::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 2
|
|
|
|
35) Failure:
|
|
HammerCLIForeman::Subnet::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 6
|
|
|
|
36) Failure:
|
|
HammerCLIForeman::Template::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 12
|
|
|
|
37) Failure:
|
|
HammerCLIForeman::User::ListCommand::output#test_0001_should print correct count of records [/root/hammer/hammer-cli-foreman/test/unit/helpers/command.rb:128]:
|
|
Expected: 8
|
|
Actual: 7
|
|
|
|
935 tests, 1250 assertions, 36 failures, 1 errors, 0 skips
|
|
Coverage report generated for MiniTest to /root/hammer/hammer-cli-foreman/coverage. 2730 / 2900 LOC (94.14%) covered.
|
|
rake aborted!
|
|
Command failed with status (1): [ruby -I"lib:lib" -I"/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rake-10.1.1/lib" "/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rake-10.1.1/lib/rake/rake_test_loader.rb" "test/unit/api_test.rb" "test/unit/architecture_test.rb" "test/unit/auth_source_ldap_test.rb" "test/unit/commands_test.rb" "test/unit/common_parameter_test.rb" "test/unit/compute_resource_test.rb" "test/unit/credentials_test.rb" "test/unit/dependency_resolver_test.rb" "test/unit/domain_test.rb" "test/unit/environment_test.rb" "test/unit/exception_handler_test.rb" "test/unit/external_usergroup_test.rb" "test/unit/fact_test.rb" "test/unit/filter_test.rb" "test/unit/hostgroup_test.rb" "test/unit/id_resolver_test.rb" "test/unit/image_test.rb" "test/unit/location_test.rb" "test/unit/media_test.rb" "test/unit/model_test.rb" "test/unit/operating_system_test.rb" "test/unit/option_builders_test.rb" "test/unit/organization_test.rb" "test/unit/output/formatters_test.rb" "test/unit/param_filters_test.rb" "test/unit/partition_table_test.rb" "test/unit/puppet_class_test.rb" "test/unit/report_test.rb" "test/unit/role_test.rb" "test/unit/smart_class_parameter_test.rb" "test/unit/smart_proxy_test.rb" "test/unit/smart_variable_test.rb" "test/unit/subnet_test.rb" "test/unit/template_test.rb" "test/unit/user_test.rb" "test/unit/usergroup_test.rb" "test/unit/host_test.rb" ]
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `eval'
|
|
/usr/local/rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `<main>'
|
|
Tasks: TOP => test
|
|
(See full trace by running task with --trace)
|
|
|