hammer_cli_foreman 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes.md +9 -0
- data/lib/hammer_cli_foreman/api/interactive_basic_auth.rb +1 -1
- data/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb +7 -4
- data/lib/hammer_cli_foreman/api.rb +6 -0
- data/lib/hammer_cli_foreman/exception_handler.rb +9 -16
- data/lib/hammer_cli_foreman/hostgroup.rb +6 -3
- data/lib/hammer_cli_foreman/hosts/common_update_options.rb +2 -2
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/test/functional/host_test.rb +1 -1
- data/test/functional/hostgroup/update_test.rb +7 -0
- 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 +6 -6
- data/test/unit/api/session_authenticator_wrapper_test.rb +7 -7
- metadata +564 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00dda186719462b9606408f1a09ed77a55ac2561
|
4
|
+
data.tar.gz: 347385e6e7efaa59e14e542e7ace792223c8ab96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd7892fdcc56006bcde4db14dde7c70c21c250dd71b63a960e113dd52787021422c9227757238da3aaa252eef41df2bae6fab3ede1c92d70df546a47d3b745d
|
7
|
+
data.tar.gz: fd27fbc6e52b1058d80e0d5196659764cf5b6128d7eeb150cda72ac82eac3181faf4d6444f5139a1631c4fd5284cd67f78026ad96a123fc1639ee1b88fc9e6e7
|
data/doc/release_notes.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
3
|
|
4
|
+
### 0.10.1 (2017-04-24)
|
5
|
+
* Require apipie-bindings >= 0.2.0 ([#19362](http://projects.theforeman.org/issues/19362))
|
6
|
+
* Require rest-client >= 1.8.0 ([PR #306](https://github.com/theforeman/hammer-cli-foreman/pull/306)) ([#19358](http://projects.theforeman.org/issues/19358))
|
7
|
+
* Custom error for 401 unauthorized ([PR #305](https://github.com/theforeman/hammer-cli-foreman/pull/305)) ([#19362](http://projects.theforeman.org/issues/19362))
|
8
|
+
* Use Array for empty attributes ([#19312](http://projects.theforeman.org/issues/19312))
|
9
|
+
* Prevent sending nil values in hostgroup update ([#14872](http://projects.theforeman.org/issues/14872))
|
10
|
+
* Install server CA cert without root access ([#19083](http://projects.theforeman.org/issues/19083))
|
11
|
+
* Make session authenticator compatible with rest-client 1.8 ([#19159](http://projects.theforeman.org/issues/19159))
|
12
|
+
|
4
13
|
### 0.10.0 (2017-03-28)
|
5
14
|
* Adding --hidden-value option to parameters (#290) ([#18878](http://projects.theforeman.org/issues/18878))
|
6
15
|
* Add command to clone user role ([#18318](http://projects.theforeman.org/issues/18318))
|
@@ -12,7 +12,7 @@ module HammerCLIForeman
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def error(ex)
|
15
|
-
|
15
|
+
return UnauthorizedError.new(_("Invalid username or password")) if ex.is_a?(RestClient::Unauthorized)
|
16
16
|
end
|
17
17
|
|
18
18
|
def status
|
@@ -9,7 +9,6 @@ module HammerCLIForeman
|
|
9
9
|
@authenticator = authenticator
|
10
10
|
@url = url
|
11
11
|
|
12
|
-
uri = URI.parse(url)
|
13
12
|
@session_file = "#{uri.scheme}_#{uri.host}"
|
14
13
|
@storage_dir = storage_dir || File.expand_path(SESSION_STORAGE)
|
15
14
|
|
@@ -37,7 +36,7 @@ module HammerCLIForeman
|
|
37
36
|
|
38
37
|
if @permissions_ok && @session_id
|
39
38
|
jar = HTTP::CookieJar.new
|
40
|
-
jar.add(HTTP::Cookie.new('_session_id', @session_id, domain:
|
39
|
+
jar.add(HTTP::Cookie.new('_session_id', @session_id, domain: uri.hostname.downcase, path: '/', for_domain: true))
|
41
40
|
request['Cookie'] = HTTP::Cookie.cookie_value(jar.cookies)
|
42
41
|
request
|
43
42
|
else
|
@@ -49,9 +48,9 @@ module HammerCLIForeman
|
|
49
48
|
load_session
|
50
49
|
if ex.is_a?(RestClient::Unauthorized) && !@session_id.nil?
|
51
50
|
destroy_session
|
52
|
-
|
51
|
+
return UnauthorizedError.new(_("Session has expired"))
|
53
52
|
else
|
54
|
-
@authenticator.error(ex)
|
53
|
+
return @authenticator.error(ex)
|
55
54
|
end
|
56
55
|
end
|
57
56
|
|
@@ -69,6 +68,10 @@ module HammerCLIForeman
|
|
69
68
|
|
70
69
|
protected
|
71
70
|
|
71
|
+
def uri
|
72
|
+
@uri ||= URI.parse(@url)
|
73
|
+
end
|
74
|
+
|
72
75
|
def session_storage
|
73
76
|
"#{@storage_dir}/#{@session_file}"
|
74
77
|
end
|
@@ -11,12 +11,19 @@ module HammerCLIForeman
|
|
11
11
|
[RestClient::Forbidden, :handle_forbidden],
|
12
12
|
[RestClient::UnprocessableEntity, :handle_unprocessable_entity],
|
13
13
|
[RestClient::MovedPermanently, :handle_moved_permanently],
|
14
|
+
[HammerCLIForeman::Api::UnauthorizedError, :handle_foreman_unauthorized],
|
14
15
|
[ArgumentError, :handle_argument_error],
|
15
16
|
]
|
16
17
|
end
|
17
18
|
|
18
19
|
protected
|
19
20
|
|
21
|
+
def handle_foreman_unauthorized(e)
|
22
|
+
print_error e.message
|
23
|
+
log_full_error e
|
24
|
+
HammerCLI::EX_UNAUTHORIZED
|
25
|
+
end
|
26
|
+
|
20
27
|
def handle_unprocessable_entity(e)
|
21
28
|
response = JSON.parse(e.response)
|
22
29
|
response = HammerCLIForeman.record_to_common_format(response) unless response.has_key?('message')
|
@@ -96,25 +103,11 @@ module HammerCLIForeman
|
|
96
103
|
|
97
104
|
cmd = "hammer --fetch-ca-cert #{host}"
|
98
105
|
|
99
|
-
rh_install_cmd = "install #{cert_name} /etc/pki/ca-trust/source/anchors/"
|
100
|
-
rh_update_cmd = "update-ca-trust"
|
101
|
-
deb_install_cmd = "install #{cert_name} /usr/local/share/ca-certificates/"
|
102
|
-
deb_update_cmd = "update-ca-certificates"
|
103
|
-
|
104
106
|
_("Make sure you configured the correct URL and have the server's CA certificate installed on your system.") + "\n\n" +
|
105
107
|
_("You can use hammer to fetch the CA certificate from the server. Be aware that hammer cannot verify whether the certificate is correct and you should verify its authenticity after downloading it.") +
|
106
108
|
"\n\n" +
|
107
|
-
_("Download the certificate
|
108
|
-
"\n\n $ #{cmd}
|
109
|
-
_("As root install the certificate and update the list of trusted CA certificates as follows:") + "\n\n" +
|
110
|
-
" " + _("on Redhat systems") + ":\n" +
|
111
|
-
" $ #{rh_install_cmd}\n" +
|
112
|
-
" $ #{rh_update_cmd}\n\n" +
|
113
|
-
" " + _("on Debian systems") + ":\n" +
|
114
|
-
" $ #{deb_install_cmd}\n" +
|
115
|
-
" $ #{deb_update_cmd}\n\n" +
|
116
|
-
_("Alternatively you can save the CA certificate into a custom location and use option --ssl-ca-file or corresponding setting in your configuration file.") +
|
117
|
-
"\n"
|
109
|
+
_("Download the certificate as follows:") +
|
110
|
+
"\n\n $ #{cmd}\n\n"
|
118
111
|
end
|
119
112
|
|
120
113
|
def rake_command
|
@@ -27,9 +27,12 @@ module HammerCLIForeman
|
|
27
27
|
def request_params
|
28
28
|
params = super
|
29
29
|
params['hostgroup']["parent_id"] ||= resolver.hostgroup_id('option_name' => option_parent) if option_parent
|
30
|
-
params['hostgroup']["puppet_proxy_id"] ||= proxy_id(option_puppet_proxy)
|
31
|
-
params['hostgroup']["puppet_ca_proxy_id"] ||= proxy_id(option_puppet_ca_proxy)
|
32
|
-
|
30
|
+
params['hostgroup']["puppet_proxy_id"] ||= proxy_id(option_puppet_proxy) if option_puppet_proxy
|
31
|
+
params['hostgroup']["puppet_ca_proxy_id"] ||= proxy_id(option_puppet_ca_proxy) if option_puppet_ca_proxy
|
32
|
+
|
33
|
+
puppetclass_ids = option_puppet_class_ids || puppet_class_ids(option_puppet_classes)
|
34
|
+
params['hostgroup']['puppetclass_ids'] = puppetclass_ids unless puppetclass_ids.nil?
|
35
|
+
|
33
36
|
params['hostgroup']['root_pass'] = option_root_pass if option_root_pass
|
34
37
|
params['hostgroup']['root_pass'] = HammerCLIForeman::HostgroupUpdateCreateCommons::ask_password if option_ask_root_pass
|
35
38
|
params
|
@@ -112,7 +112,7 @@ module HammerCLIForeman
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def parameter_attributes
|
115
|
-
return
|
115
|
+
return [] unless option_parameters
|
116
116
|
option_parameters.collect do |key, value|
|
117
117
|
if value.is_a? String
|
118
118
|
{"name"=>key, "value"=>value}
|
@@ -133,7 +133,7 @@ module HammerCLIForeman
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def interfaces_attributes
|
136
|
-
return
|
136
|
+
return [] if option_interface_list.empty?
|
137
137
|
|
138
138
|
# move each attribute starting with "compute_" to compute_attributes
|
139
139
|
option_interface_list.collect do |nic|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -28,7 +28,7 @@ describe "host create" do
|
|
28
28
|
# which causes failure in nested attributes assignment in the host model
|
29
29
|
|
30
30
|
api_expects(:hosts, :create, 'Create host with empty interfaces') do |par|
|
31
|
-
par['host']['interfaces_attributes'] ==
|
31
|
+
par['host']['interfaces_attributes'] == []
|
32
32
|
end.returns({})
|
33
33
|
|
34
34
|
expected_result = success_result("Host created\n")
|
@@ -298,6 +298,13 @@ module HammerCLIForeman
|
|
298
298
|
end
|
299
299
|
run_cmd(%w(hostgroup update --id 1 --subnet subnet1))
|
300
300
|
end
|
301
|
+
|
302
|
+
it "doesn't send any additional values in the update request" do
|
303
|
+
api_expects(:hostgroups, :update) do |p|
|
304
|
+
p['hostgroup'] == {}
|
305
|
+
end
|
306
|
+
run_cmd(%w(hostgroup update --id 1))
|
307
|
+
end
|
301
308
|
end
|
302
309
|
end
|
303
310
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Architecture::CreateCommand::parameters" tests="2" time="0.010592708" failures="0" errors="0" skipped="0" assertions="2">
|
3
|
+
<testcase name="test_0002_should fail with name missing" time="0.008160524" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0001_should accept name" time="0.002136914" 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::Architecture::DeleteCommand::parameters" tests="3" time="0.005292196" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0003_should fail with name or id missing" time="0.00155957" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept id" time="0.001930339" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0001_should accept name" time="0.001509438" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Architecture::InfoCommand::output" tests="3" time="0.008668972" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0001_should print 1 records" time="0.003258728" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should print column Name" time="0.002410385" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should print column Id" time="0.002710322" assertions="2">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Architecture::InfoCommand::parameters" tests="3" time="0.005899642" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0001_should accept id" time="0.002035397" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept name" time="0.001923494" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should fail with no arguments" time="0.001474022" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Architecture::ListCommand::output" tests="3" time="0.009809186" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0003_should print column Id" time="0.003824971" assertions="2">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should print column Name" time="0.002789089" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0001_should print records" time="0.00277098" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Architecture::ListCommand::parameters" tests="5" time="0.013451271" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0001_should accept no arguments" time="0.002846459" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0004_should accept page" time="0.002429319" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should accept per page" time="0.002520928" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0002_should accept search" time="0.002605764" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0005_should accept order" time="0.00246664" assertions="1">
|
12
|
+
</testcase>
|
13
|
+
<system-out>
|
14
|
+
</system-out>
|
15
|
+
<system-err>
|
16
|
+
</system-err>
|
17
|
+
</testsuite>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::Architecture::UpdateCommand::parameters" tests="4" time="0.007570583" failures="0" errors="0" skipped="0" assertions="4">
|
3
|
+
<testcase name="test_0003_should fail with no params" time="0.001654156" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept id" time="0.002233739" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0001_should accept name" time="0.001735617" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0004_should fail with name or id missing" time="0.001618339" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<system-out>
|
12
|
+
</system-out>
|
13
|
+
<system-err>
|
14
|
+
</system-err>
|
15
|
+
</testsuite>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::CommonParameter::DeleteCommand::parameters" tests="2" time="0.003582477" failures="0" errors="0" skipped="0" assertions="2">
|
3
|
+
<testcase name="test_0001_should accept name" time="0.001973243" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should fail with name missing" time="0.001325387" 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::CommonParameter::ListCommand::output" tests="3" time="0.035125659" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0001_should print records" time="0.026932104" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should print column Name" time="0.003951707" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should print column Value" time="0.003914838" assertions="2">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::CommonParameter::ListCommand::parameters" tests="5" time="0.010110542" failures="0" errors="0" skipped="0" assertions="5">
|
3
|
+
<testcase name="test_0004_should accept page" time="0.00225483" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept search" time="0.00210999" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0005_should accept order" time="0.001839416" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0003_should accept per page" time="0.001739675" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0001_should accept no arguments" time="0.001569955" assertions="1">
|
12
|
+
</testcase>
|
13
|
+
<system-out>
|
14
|
+
</system-out>
|
15
|
+
<system-err>
|
16
|
+
</system-err>
|
17
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::CommonParameter::SetCommand::parameters" tests="3" time="0.035448264" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0003_should fail with value missing" time="0.031641909" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should fail with name missing" time="0.001375859" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0001_should accept name and value" time="0.002120003" 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::ComputeResource::CreateCommand::parameters" tests="4" time="0.0077544" failures="0" errors="0" skipped="0" assertions="4">
|
3
|
+
<testcase name="test_0001_should accept name, url, provider" time="0.002608991" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0003_should fail with url missing" time="0.001595807" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0002_should fail with name missing" time="0.001607271" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0004_should fail with provider missing" time="0.001621839" assertions="1">
|
10
|
+
</testcase>
|
11
|
+
<system-out>
|
12
|
+
</system-out>
|
13
|
+
<system-err>
|
14
|
+
</system-err>
|
15
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::ComputeResource::DeleteCommand::parameters" tests="3" time="0.00547788" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0002_should accept id" time="0.002210935" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0001_should accept name" time="0.001517369" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should fail with name or id missing" time="0.001427866" assertions="1">
|
8
|
+
</testcase>
|
9
|
+
<system-out>
|
10
|
+
</system-out>
|
11
|
+
<system-err>
|
12
|
+
</system-err>
|
13
|
+
</testsuite>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::ComputeResource::InfoCommand::output" tests="5" time="0.013623948" failures="0" errors="0" skipped="0" assertions="9">
|
3
|
+
<testcase name="test_0001_should print 1 records" time="0.003411952" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0003_should print column Id" time="0.002429016" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0005_should print column Url" time="0.0023448" assertions="2">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0002_should print column Name" time="0.002670405" assertions="2">
|
10
|
+
</testcase>
|
11
|
+
<testcase name="test_0004_should print column Provider" time="0.002409489" assertions="2">
|
12
|
+
</testcase>
|
13
|
+
<system-out>
|
14
|
+
</system-out>
|
15
|
+
<system-err>
|
16
|
+
</system-err>
|
17
|
+
</testsuite>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<testsuite name="HammerCLIForeman::ComputeResource::InfoCommand::parameters" tests="3" time="0.006460041" failures="0" errors="0" skipped="0" assertions="3">
|
3
|
+
<testcase name="test_0001_should accept id" time="0.002424034" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should accept name" time="0.001971881" assertions="1">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should fail with no arguments" time="0.001602873" 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::ComputeResource::ListCommand::output" tests="4" time="0.013741075" failures="0" errors="0" skipped="0" assertions="7">
|
3
|
+
<testcase name="test_0001_should print records" time="0.003852581" assertions="1">
|
4
|
+
</testcase>
|
5
|
+
<testcase name="test_0002_should print column Name" time="0.003167301" assertions="2">
|
6
|
+
</testcase>
|
7
|
+
<testcase name="test_0003_should print column Id" time="0.003169285" assertions="2">
|
8
|
+
</testcase>
|
9
|
+
<testcase name="test_0004_should print column Provider" time="0.003154767" assertions="2">
|
10
|
+
</testcase>
|
11
|
+
<system-out>
|
12
|
+
</system-out>
|
13
|
+
<system-err>
|
14
|
+
</system-err>
|
15
|
+
</testsuite>
|