hammer_cli_foreman 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/configuration.md +2 -2
- data/doc/name_id_resolution.md +26 -1
- data/doc/release_notes.md +24 -0
- data/lib/hammer_cli_foreman.rb +30 -29
- data/lib/hammer_cli_foreman/api/connection.rb +1 -1
- data/lib/hammer_cli_foreman/api/interactive_basic_auth.rb +3 -3
- data/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb +9 -8
- data/lib/hammer_cli_foreman/api/void_auth.rb +7 -0
- data/lib/hammer_cli_foreman/architecture.rb +3 -5
- data/lib/hammer_cli_foreman/associating_commands.rb +32 -32
- data/lib/hammer_cli_foreman/auth.rb +2 -2
- data/lib/hammer_cli_foreman/auth_source_ldap.rb +4 -4
- data/lib/hammer_cli_foreman/commands.rb +23 -55
- data/lib/hammer_cli_foreman/common_parameter.rb +5 -5
- data/lib/hammer_cli_foreman/compute_resource.rb +17 -7
- data/lib/hammer_cli_foreman/config_group.rb +3 -3
- data/lib/hammer_cli_foreman/domain.rb +6 -8
- data/lib/hammer_cli_foreman/environment.rb +3 -3
- data/lib/hammer_cli_foreman/exception_handler.rb +27 -4
- data/lib/hammer_cli_foreman/external_usergroup.rb +3 -4
- data/lib/hammer_cli_foreman/filter.rb +20 -21
- data/lib/hammer_cli_foreman/host.rb +43 -18
- data/lib/hammer_cli_foreman/hostgroup.rb +24 -19
- data/lib/hammer_cli_foreman/hosts/common_update_options.rb +4 -6
- data/lib/hammer_cli_foreman/id_resolver.rb +86 -50
- data/lib/hammer_cli_foreman/image.rb +3 -4
- data/lib/hammer_cli_foreman/interface.rb +7 -9
- data/lib/hammer_cli_foreman/location.rb +6 -9
- data/lib/hammer_cli_foreman/media.rb +3 -6
- data/lib/hammer_cli_foreman/model.rb +3 -6
- data/lib/hammer_cli_foreman/operating_system.rb +11 -12
- data/lib/hammer_cli_foreman/option_sources.rb +4 -0
- data/lib/hammer_cli_foreman/option_sources/id_params.rb +51 -0
- data/lib/hammer_cli_foreman/option_sources/ids_params.rb +30 -0
- data/lib/hammer_cli_foreman/option_sources/self_param.rb +16 -0
- data/lib/hammer_cli_foreman/option_sources/user_params.rb +59 -0
- data/lib/hammer_cli_foreman/organization.rb +6 -9
- data/lib/hammer_cli_foreman/output/formatters.rb +1 -1
- data/lib/hammer_cli_foreman/parameter.rb +3 -5
- data/lib/hammer_cli_foreman/partition_table.rb +5 -6
- data/lib/hammer_cli_foreman/realm.rb +3 -3
- data/lib/hammer_cli_foreman/report.rb +1 -4
- data/lib/hammer_cli_foreman/role.rb +4 -7
- data/lib/hammer_cli_foreman/settings.rb +1 -1
- data/lib/hammer_cli_foreman/smart_class_parameter.rb +24 -14
- data/lib/hammer_cli_foreman/smart_proxy.rb +5 -7
- data/lib/hammer_cli_foreman/smart_variable.rb +24 -12
- data/lib/hammer_cli_foreman/ssh_keys.rb +56 -0
- data/lib/hammer_cli_foreman/subnet.rb +6 -9
- data/lib/hammer_cli_foreman/template.rb +16 -9
- data/lib/hammer_cli_foreman/user.rb +10 -52
- data/lib/hammer_cli_foreman/usergroup.rb +3 -3
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/test/data/1.15/foreman_api.json +1 -1
- data/test/data/1.16/foreman_api.json +1 -0
- data/test/functional/compute_resource_test.rb +117 -0
- data/test/functional/filter_test.rb +2 -2
- data/test/functional/host_test.rb +61 -10
- data/test/functional/location_test.rb +5 -5
- data/test/functional/organization_test.rb +7 -7
- data/test/functional/role_test.rb +3 -3
- data/test/functional/smart_class_parameter_test.rb +5 -5
- data/test/functional/smart_variable_test.rb +1 -1
- data/test/functional/ssh_keys_test.rb +105 -0
- data/test/functional/template_test.rb +30 -4
- data/test/functional/user_test.rb +5 -5
- data/test/reports/TEST-HammerCLIForeman-Architecture-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-InfoCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-ListCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Architecture.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-DeleteCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-ListCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-SetCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter-SetCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-CommonParameter.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-CreateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-InfoCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-ListCommand-output.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ComputeResource.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-DeleteParameterCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-DeleteParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-InfoCommand-output.xml +21 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-ListCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-SetParameterCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-SetParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Domain-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Domain.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-InfoCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-ListCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Environment-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Environment.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-ExceptionHandler.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Host-CreateCommand-parameters.xml +46 -0
- data/test/reports/TEST-HammerCLIForeman-Host-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Host-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-DeleteParameterCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Host-DeleteParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-InfoCommand-output.xml +85 -0
- data/test/reports/TEST-HammerCLIForeman-Host-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Host-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-ListCommand-output.xml +21 -0
- data/test/reports/TEST-HammerCLIForeman-Host-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Host-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-PuppetRunCommand-output.xml +9 -0
- data/test/reports/TEST-HammerCLIForeman-Host-PuppetRunCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-SetParameterCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Host-SetParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-StatusCommand-output.xml +9 -0
- data/test/reports/TEST-HammerCLIForeman-Host-StatusCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host-UpdateCommand-parameters.xml +40 -0
- data/test/reports/TEST-HammerCLIForeman-Host-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Host.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteParameterCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-InfoCommand-output.xml +29 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-InfoCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-ListCommand-output.xml +27 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-SetParameterCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-SetParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-UpdateCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Hostgroup.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Location-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Location-CreateCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Location-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Location-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Location-DeleteCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Location-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Location-ListCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Location-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Location-ListCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Location-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Location-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Location-UpdateCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Location-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Location.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-CreateCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-InfoCommand-output.xml +23 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-ListCommand-output.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-UpdateCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Medium-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Medium.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteParameterCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-InfoCommand-output.xml +27 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-ListCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-SetParameterCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-SetParameterCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-UpdateCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-OperatingSystem.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-CreateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-CreateCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-DeleteCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand-output.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand-resource-disabled.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Organization.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-CreateCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-DumpCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-DumpCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-InfoCommand-output.xml +19 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand-output.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-UpdateCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-PartitionTable.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-CreateCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-InfoCommand-output.xml +21 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-ListCommand-output.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-ListCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-SmartProxy.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-CreateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-DeleteCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-InfoCommand-output.xml +43 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-InfoCommand-parameters.xml +13 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-ListCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-UpdateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Subnet.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-CreateCommand-parameters.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Template-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-DeleteCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Template-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-DumpCommand-parameters.xml +12 -0
- data/test/reports/TEST-HammerCLIForeman-Template-DumpCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-InfoCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Template-InfoCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Template-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-ListCommand-output.xml +15 -0
- data/test/reports/TEST-HammerCLIForeman-Template-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-Template-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-ListKindsCommand-parameters.xml +9 -0
- data/test/reports/TEST-HammerCLIForeman-Template-ListKindsCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template-UpdateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-Template-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-Template.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-User-CreateCommand-parameters.xml +19 -0
- data/test/reports/TEST-HammerCLIForeman-User-CreateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-User-DeleteCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-User-DeleteCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-User-InfoCommand-output.xml +23 -0
- data/test/reports/TEST-HammerCLIForeman-User-InfoCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-User-InfoCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-User-ListCommand-output.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-User-ListCommand-parameters.xml +17 -0
- data/test/reports/TEST-HammerCLIForeman-User-ListCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-User-UpdateCommand-parameters.xml +11 -0
- data/test/reports/TEST-HammerCLIForeman-User-UpdateCommand.xml +7 -0
- data/test/reports/TEST-HammerCLIForeman-User.xml +7 -0
- data/test/reports/TEST-MiniTest-Spec.xml +7 -0
- data/test/unit/api/interactive_basic_auth_test.rb +20 -1
- data/test/unit/api/session_authenticator_wrapper_test.rb +23 -8
- data/test/unit/api/void_auth_test.rb +11 -0
- data/test/unit/commands_test.rb +1 -1
- data/test/unit/exception_handler_test.rb +24 -3
- data/test/unit/helpers/command.rb +6 -2
- data/test/unit/host_test.rb +2 -2
- data/test/unit/hostgroup_test.rb +5 -3
- data/test/unit/id_resolver_test.rb +53 -5
- data/test/unit/media_test.rb +2 -2
- data/test/unit/option_sources/id_params_test.rb +30 -0
- data/test/unit/option_sources/ids_params_test.rb +30 -0
- data/test/unit/output/formatters_test.rb +4 -0
- data/test/unit/smart_class_parameter_test.rb +4 -4
- data/test/unit/smart_variable_test.rb +2 -2
- data/test/unit/user_test.rb +1 -2
- metadata +569 -69
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::CreateCommand::parameters" tests="7" time="0.038901649" failures="0" errors="1" skipped="0" assertions="6">
|
3
|
+
<testcase name="test_0001_should accept name, environment_id, architecture_id, domain_id, puppet_proxy_id, operatingsystem_id and more" time="0.002791832" assertions="0">
|
4
|
+
<error type="Clamp::UsageError" message="Unrecognised option '--model-id-id'">
|
5
|
+
Unrecognised option '--model-id-id' (Clamp::UsageError)
|
6
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/option/parsing.rb:62:in `find_option'
|
7
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/option/parsing.rb:28:in `parse_options'
|
8
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/command.rb:52:in `parse'
|
9
|
+
/home/mbacovsk/.gem/ruby/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:25:in `parse'
|
10
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/command.rb:66:in `run'
|
11
|
+
/home/mbacovsk/.gem/ruby/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:17:in `run'
|
12
|
+
/home/mbacovsk/work/theforeman/hammer-cli-foreman/test/unit/helpers/command.rb:15:in `block in it_should_accept'
|
13
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run'
|
14
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:175:in `run_test'
|
15
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:102:in `_run_test'
|
16
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:93:in `block in _run_suite'
|
17
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:92:in `each'
|
18
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:92:in `_run_suite'
|
19
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:83:in `block in _run_suites'
|
20
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:83:in `map'
|
21
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:83:in `_run_suites'
|
22
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:75:in `_run_anything'
|
23
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests'
|
24
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run'
|
25
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each'
|
26
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run'
|
27
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'
|
28
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun' </error>
|
29
|
+
</testcase>
|
30
|
+
<testcase name="test_0006_should fail with puppet_proxy_id missing" time="0.024325115" assertions="1">
|
31
|
+
</testcase>
|
32
|
+
<testcase name="test_0003_should fail with environment_id missing" time="0.002576209" assertions="1">
|
33
|
+
</testcase>
|
34
|
+
<testcase name="test_0002_should fail with name or id missing" time="0.002155287" assertions="1">
|
35
|
+
</testcase>
|
36
|
+
<testcase name="test_0005_should fail with domain_id missing" time="0.002121267" assertions="1">
|
37
|
+
</testcase>
|
38
|
+
<testcase name="test_0007_should fail with operatingsystem_id missing" time="0.002175751" assertions="1">
|
39
|
+
</testcase>
|
40
|
+
<testcase name="test_0004_should fail with architecture_id missing" time="0.002385152" assertions="1">
|
41
|
+
</testcase>
|
42
|
+
<system-out>
|
43
|
+
</system-out>
|
44
|
+
<system-err>
|
45
|
+
</system-err>
|
46
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::DeleteCommand::parameters" tests="3" time="0.040712786" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0001_should accept name" time="0.03533672" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept id" time="0.002194504" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should fail with name or id missing" time="0.002861035" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::DeleteParameterCommand::parameters" tests="4" time="0.007441336" failures="0" errors="0" skipped="0" assertions="4">
|
3
|
+
<testcase name="test_0002_should accept name and host id" time="0.002262088" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0003_should fail with name missing" time="0.001288525" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0001_should accept name and host name" time="0.001451214" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0004_should fail with host name or id missing" time="0.0020954" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<system-out>
|
12
|
+
</system-out>
|
13
|
+
<system-err>
|
14
|
+
</system-err>
|
15
|
+
</testsuite>
|
@@ -0,0 +1,85 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::InfoCommand::output" tests="39" time="0.625610699" failures="0" errors="0" skipped="0" assertions="77">
|
3
|
+
<testcase name="test_0023_should print column Created at" time="0.009768972" assertions="2">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0034_should print column Owner Type" time="0.010635734" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0001_should print 1 records" time="0.011233022" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0003_should print column Name" time="0.011396959" assertions="2">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0007_should print column MAC" time="0.031387776" assertions="2">
|
12
|
+
</testcase>
|
13
|
+
<testcase name="test_0012_should print column Managed" time="0.009317624" assertions="2">
|
14
|
+
</testcase>
|
15
|
+
<testcase name="test_0009_should print column Cert name" time="0.043065421" assertions="2">
|
16
|
+
</testcase>
|
17
|
+
<testcase name="test_0030_should print column Owner Id" time="0.009810186" assertions="2">
|
18
|
+
</testcase>
|
19
|
+
<testcase name="test_0035_should print column Partition Table Id" time="0.009338686" assertions="2">
|
20
|
+
</testcase>
|
21
|
+
<testcase name="test_0022_should print column SP Subnet Id" time="0.008906229" assertions="2">
|
22
|
+
</testcase>
|
23
|
+
<testcase name="test_0032_should print column Domain Id" time="0.008484058" assertions="2">
|
24
|
+
</testcase>
|
25
|
+
<testcase name="test_0019_should print column SP IP" time="0.00912868" assertions="2">
|
26
|
+
</testcase>
|
27
|
+
<testcase name="test_0008_should print column UUID" time="0.031644834" assertions="2">
|
28
|
+
</testcase>
|
29
|
+
<testcase name="test_0018_should print column SP Name" time="0.009562268" assertions="2">
|
30
|
+
</testcase>
|
31
|
+
<testcase name="test_0026_should print column Last report" time="0.010344818" assertions="2">
|
32
|
+
</testcase>
|
33
|
+
<testcase name="test_0024_should print column Updated at" time="0.044748455" assertions="2">
|
34
|
+
</testcase>
|
35
|
+
<testcase name="test_0020_should print column SP MAC" time="0.009591804" assertions="2">
|
36
|
+
</testcase>
|
37
|
+
<testcase name="test_0029_should print column Model Id" time="0.009213535" assertions="2">
|
38
|
+
</testcase>
|
39
|
+
<testcase name="test_0017_should print column Image file" time="0.008642901" assertions="2">
|
40
|
+
</testcase>
|
41
|
+
<testcase name="test_0028_should print column Medium Id" time="0.008603503" assertions="2">
|
42
|
+
</testcase>
|
43
|
+
<testcase name="test_0037_should print column Image Id" time="0.008920372" assertions="2">
|
44
|
+
</testcase>
|
45
|
+
<testcase name="test_0011_should print column Environment Id" time="0.031802914" assertions="2">
|
46
|
+
</testcase>
|
47
|
+
<testcase name="test_0015_should print column Use image" time="0.009681292" assertions="2">
|
48
|
+
</testcase>
|
49
|
+
<testcase name="test_0031_should print column Subnet Id" time="0.041729249" assertions="2">
|
50
|
+
</testcase>
|
51
|
+
<testcase name="test_0033_should print column Puppet Proxy Id" time="0.010191514" assertions="2">
|
52
|
+
</testcase>
|
53
|
+
<testcase name="test_0010_should print column Environment" time="0.009694085" assertions="2">
|
54
|
+
</testcase>
|
55
|
+
<testcase name="test_0005_should print column Host Group Id" time="0.008995701" assertions="2">
|
56
|
+
</testcase>
|
57
|
+
<testcase name="test_0039_should print column Comment" time="0.009027723" assertions="2">
|
58
|
+
</testcase>
|
59
|
+
<testcase name="test_0036_should print column Architecture Id" time="0.008736824" assertions="2">
|
60
|
+
</testcase>
|
61
|
+
<testcase name="test_0038_should print column Compute Resource Id" time="0.032821174" assertions="2">
|
62
|
+
</testcase>
|
63
|
+
<testcase name="test_0014_should print column Build" time="0.010771687" assertions="2">
|
64
|
+
</testcase>
|
65
|
+
<testcase name="test_0025_should print column Installed at" time="0.010652006" assertions="2">
|
66
|
+
</testcase>
|
67
|
+
<testcase name="test_0016_should print column Disk" time="0.044581178" assertions="2">
|
68
|
+
</testcase>
|
69
|
+
<testcase name="test_0013_should print column Enabled" time="0.010340457" assertions="2">
|
70
|
+
</testcase>
|
71
|
+
<testcase name="test_0006_should print column IP" time="0.00943141" assertions="2">
|
72
|
+
</testcase>
|
73
|
+
<testcase name="test_0021_should print column SP Subnet" time="0.00992204" assertions="2">
|
74
|
+
</testcase>
|
75
|
+
<testcase name="test_0002_should print column Id" time="0.009475852" assertions="2">
|
76
|
+
</testcase>
|
77
|
+
<testcase name="test_0027_should print column Puppet CA Proxy Id" time="0.032297619" assertions="2">
|
78
|
+
</testcase>
|
79
|
+
<testcase name="test_0004_should print column Operating System Id" time="0.010595838" assertions="2">
|
80
|
+
</testcase>
|
81
|
+
<system-out>
|
82
|
+
</system-out>
|
83
|
+
<system-err>
|
84
|
+
</system-err>
|
85
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::InfoCommand::parameters" tests="3" time="0.015539646" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0003_should fail with no arguments" time="0.003224783" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0001_should accept id" time="0.006107145" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0002_should accept name" time="0.005632892" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::ListCommand::output" tests="7" time="0.081796406" failures="0" errors="0" skipped="0" assertions="13">
|
3
|
+
<testcase name="test_0006_should print column IP" time="0.041701745" assertions="2">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should print column Id" time="0.006788302" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should print column Name" time="0.007183186" assertions="2">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0001_should print records" time="0.006421471" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0005_should print column Host Group Id" time="0.006648651" assertions="2">
|
12
|
+
</testcase>
|
13
|
+
<testcase name="test_0004_should print column Operating System Id" time="0.006274588" assertions="2">
|
14
|
+
</testcase>
|
15
|
+
<testcase name="test_0007_should print column MAC" time="0.00619638" assertions="2">
|
16
|
+
</testcase>
|
17
|
+
<system-out>
|
18
|
+
</system-out>
|
19
|
+
<system-err>
|
20
|
+
</system-err>
|
21
|
+
</testsuite>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::ListCommand::parameters" tests="5" time="0.050335675" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0005_should accept order" time="0.005663174" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept search" time="0.02764683" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should accept per page" time="0.005552632" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0001_should accept no arguments" time="0.005643992" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0004_should accept page" time="0.005090395" assertions="1">
|
12
|
+
</testcase>
|
13
|
+
<system-out>
|
14
|
+
</system-out>
|
15
|
+
<system-err>
|
16
|
+
</system-err>
|
17
|
+
</testsuite>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::PuppetRunCommand::output" tests="1" time="0.004381298" failures="0" errors="0" skipped="0" assertions="1">
|
3
|
+
<testcase name="test_0001_should inform that puppet was triggered" time="0.004071704" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<system-out>
|
6
|
+
</system-out>
|
7
|
+
<system-err>
|
8
|
+
</system-err>
|
9
|
+
</testsuite>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::SetParameterCommand::parameters" tests="5" time="0.00942455" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0001_should accept name, value and host name" time="0.002442367" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0005_should fail with host name or id missing" time="0.001644869" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0004_should fail with value missing" time="0.002009891" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0002_should accept name, value and host id" time="0.001690305" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0003_should fail with name missing" time="0.001301789" assertions="1">
|
12
|
+
</testcase>
|
13
|
+
<system-out>
|
14
|
+
</system-out>
|
15
|
+
<system-err>
|
16
|
+
</system-err>
|
17
|
+
</testsuite>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::StatusCommand::output" tests="1" time="0.004821066" failures="0" errors="0" skipped="0" assertions="1">
|
3
|
+
<testcase name="test_0001_should output status" time="0.004536445" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<system-out>
|
6
|
+
</system-out>
|
7
|
+
<system-err>
|
8
|
+
</system-err>
|
9
|
+
</testsuite>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Host::UpdateCommand::parameters" tests="4" time="0.046266783" failures="0" errors="1" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0001_should accept name" time="0.004978926" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0003_should fail with no params" time="0.003023141" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0002_should accept id and more" time="0.002880368" assertions="0">
|
8
|
+
<error type="Clamp::UsageError" message="Unrecognised option '--model-id-id'">
|
9
|
+
Unrecognised option '--model-id-id' (Clamp::UsageError)
|
10
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/option/parsing.rb:62:in `find_option'
|
11
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/option/parsing.rb:28:in `parse_options'
|
12
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/command.rb:52:in `parse'
|
13
|
+
/home/mbacovsk/.gem/ruby/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:25:in `parse'
|
14
|
+
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/command.rb:66:in `run'
|
15
|
+
/home/mbacovsk/.gem/ruby/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:17:in `run'
|
16
|
+
/home/mbacovsk/work/theforeman/hammer-cli-foreman/test/unit/helpers/command.rb:15:in `block in it_should_accept'
|
17
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run'
|
18
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:175:in `run_test'
|
19
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:102:in `_run_test'
|
20
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:93:in `block in _run_suite'
|
21
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:92:in `each'
|
22
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:92:in `_run_suite'
|
23
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:83:in `block in _run_suites'
|
24
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:83:in `map'
|
25
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:83:in `_run_suites'
|
26
|
+
/home/mbacovsk/.gem/ruby/gems/ci_reporter-1.9.0/lib/ci/reporter/minitest.rb:75:in `_run_anything'
|
27
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests'
|
28
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run'
|
29
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each'
|
30
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run'
|
31
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'
|
32
|
+
/home/mbacovsk/.gem/ruby/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun' </error>
|
33
|
+
</testcase>
|
34
|
+
<testcase name="test_0004_should fail with name or id missing" time="0.034736962" assertions="1">
|
35
|
+
</testcase>
|
36
|
+
<system-out>
|
37
|
+
</system-out>
|
38
|
+
<system-err>
|
39
|
+
</system-err>
|
40
|
+
</testsuite>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Hostgroup::CreateCommand::parameters" tests="2" time="0.005243449" failures="0" errors="0" skipped="0" assertions="2">
|
3
|
+
<testcase name="test_0001_should accept name, parent_id, environment_id, architecture_id, domain_id, puppet_proxy_id, operatingsystem_id and more" time="0.003332034" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should fail with name or id missing" time="0.001576948" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<system-out>
|
8
|
+
</system-out>
|
9
|
+
<system-err>
|
10
|
+
</system-err>
|
11
|
+
</testsuite>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Hostgroup::DeleteCommand::parameters" tests="2" time="0.004543296" failures="0" errors="0" skipped="0" assertions="2">
|
3
|
+
<testcase name="test_0001_should accept id" time="0.002474057" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should fail with id missing" time="0.001766251" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<system-out>
|
8
|
+
</system-out>
|
9
|
+
<system-err>
|
10
|
+
</system-err>
|
11
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Hostgroup::DeleteParameterCommand::parameters" tests="3" time="0.005060726" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0001_should accept name and hostgroup id" time="0.002172238" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should fail with name missing" time="0.00129973" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should fail with hostgroup id missing" time="0.001280587" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|