hammer_cli 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/installation.md +1 -1
- data/doc/release_notes.md +6 -0
- data/lib/hammer_cli/output/formatters.rb +7 -1
- data/lib/hammer_cli/testing/command_assertions.rb +119 -0
- data/lib/hammer_cli/testing/data_helpers.rb +19 -0
- data/lib/hammer_cli/testing/output_matchers.rb +105 -0
- data/lib/hammer_cli/version.rb +1 -1
- data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/de/hammer-cli.edit.po +16 -16
- data/locale/de/hammer-cli.po +1 -1
- data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en/hammer-cli.po +1 -1
- data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en_GB/hammer-cli.edit.po +25 -25
- data/locale/en_GB/hammer-cli.po +1 -1
- data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/es/hammer-cli.po +1 -1
- data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/fr/hammer-cli.edit.po +26 -26
- data/locale/fr/hammer-cli.po +1 -1
- data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/it/hammer-cli.edit.po +3 -3
- data/locale/it/hammer-cli.po +1 -1
- data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ja/hammer-cli.edit.po +3 -3
- data/locale/ja/hammer-cli.po +1 -1
- data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ko/hammer-cli.edit.po +3 -3
- data/locale/ko/hammer-cli.po +1 -1
- data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/pt_BR/hammer-cli.po +1 -1
- data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ru/hammer-cli.edit.po +3 -3
- data/locale/ru/hammer-cli.po +1 -1
- data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_CN/hammer-cli.edit.po +3 -3
- data/locale/zh_CN/hammer-cli.po +1 -1
- data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_TW/hammer-cli.edit.po +3 -3
- data/locale/zh_TW/hammer-cli.po +1 -1
- data/test/functional/defaults_test.rb +85 -55
- data/test/functional/test_helper.rb +9 -0
- data/test/reports/TEST-Fields-ContainerField-display-.xml +1 -1
- data/test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml +5 -5
- data/test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml +5 -5
- data/test/reports/TEST-Fields-ContainerField.xml +1 -1
- data/test/reports/TEST-Fields-Field-display-.xml +1 -1
- data/test/reports/TEST-Fields-Field-display-blank-is-allowed.xml +3 -3
- data/test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml +3 -3
- data/test/reports/TEST-Fields-Field-hide-blank-.xml +3 -3
- data/test/reports/TEST-Fields-Field-parameters.xml +2 -2
- data/test/reports/TEST-Fields-Field.xml +4 -4
- data/test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml +5 -5
- data/test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml +4 -4
- data/test/reports/TEST-HammerCLI-AbstractCommand-logging.xml +8 -10
- data/test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml +3 -3
- data/test/reports/TEST-HammerCLI-AbstractCommand-options.xml +3 -3
- data/test/reports/TEST-HammerCLI-AbstractCommand-output.xml +7 -7
- data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml +3 -3
- data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml +4 -4
- data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml +3 -3
- data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml +1 -1
- data/test/reports/TEST-HammerCLI-AbstractCommand.xml +3 -3
- data/test/reports/TEST-HammerCLI-Apipie-Command-options.xml +3 -3
- data/test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml +2 -2
- data/test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml +7 -7
- data/test/reports/TEST-HammerCLI-Apipie-Command.xml +2 -2
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml +4 -4
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml +5 -5
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml +3 -3
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml +2 -8
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml +3 -3
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml +5 -5
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml +1 -1
- data/test/reports/TEST-HammerCLI-Completer-command-completion.xml +12 -12
- data/test/reports/TEST-HammerCLI-Completer-option-value-completion.xml +6 -6
- data/test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml +7 -7
- data/test/reports/TEST-HammerCLI-Completer.xml +1 -1
- data/test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml +10 -10
- data/test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml +12 -12
- data/test/reports/TEST-HammerCLI-CompleterLine.xml +1 -1
- data/test/reports/TEST-HammerCLI-CompleterWord-complete-.xml +9 -9
- data/test/reports/TEST-HammerCLI-CompleterWord-quote.xml +5 -5
- data/test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml +4 -4
- data/test/reports/TEST-HammerCLI-CompleterWord.xml +1 -1
- data/test/reports/TEST-HammerCLI-Connection.xml +8 -8
- data/test/reports/TEST-HammerCLI-ExceptionHandler.xml +8 -8
- data/test/reports/TEST-HammerCLI-I18n.xml +3 -3
- data/test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml +3 -3
- data/test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml +3 -3
- data/test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml +2 -2
- data/test/reports/TEST-HammerCLI-MainCommand-loading-context.xml +1 -1
- data/test/reports/TEST-HammerCLI-MainCommand.xml +1 -1
- data/test/reports/TEST-HammerCLI-Modules-find-by-name.xml +4 -4
- data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml +4 -4
- data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml +4 -4
- data/test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml +5 -5
- data/test/reports/TEST-HammerCLI-Modules-load-a-module.xml +1 -1
- data/test/reports/TEST-HammerCLI-Modules-load-all-modules.xml +2 -4
- data/test/reports/TEST-HammerCLI-Modules-names.xml +4 -4
- data/test/reports/TEST-HammerCLI-Modules.xml +1 -1
- data/test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml +1 -5
- data/test/reports/TEST-HammerCLI-OptionBuilderContainer.xml +5 -1
- data/test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml +2 -2
- data/test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml +13 -13
- data/test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml +6 -6
- data/test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml +5 -5
- data/test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml +8 -8
- data/test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml +5 -5
- data/test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml +6 -26
- data/test/reports/TEST-HammerCLI-Options-Normalizers-list.xml +5 -5
- data/test/reports/TEST-HammerCLI-Options-Normalizers.xml +1 -1
- data/test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml +2 -2
- data/test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml +3 -3
- data/test/reports/TEST-HammerCLI-Options-OptionDefinition.xml +1 -1
- data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml +5 -5
- data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml +5 -5
- data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml +6 -6
- data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml +2 -2
- data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml +11 -11
- data/test/reports/TEST-HammerCLI-Output-Adapter-Base.xml +1 -1
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml +1 -1
- data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml +5 -11
- data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml +3 -7
- data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml +2 -2
- data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Adapter-Table.xml +1 -1
- data/test/reports/TEST-HammerCLI-Output-Definition-empty-.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Definition.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Dsl-collection.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Dsl-fields.xml +5 -5
- data/test/reports/TEST-HammerCLI-Output-Dsl-label.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Dsl.xml +2 -2
- data/test/reports/TEST-HammerCLI-Output-FieldFilter.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml +2 -2
- data/test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml +3 -3
- data/test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml +4 -4
- data/test/reports/TEST-HammerCLI-Output-Output-adapters.xml +6 -6
- data/test/reports/TEST-HammerCLI-Output-Output-data.xml +5 -5
- data/test/reports/TEST-HammerCLI-Output-Output-formatters.xml +2 -2
- data/test/reports/TEST-HammerCLI-Output-Output-messages.xml +7 -7
- data/test/reports/TEST-HammerCLI-Output-Output.xml +1 -1
- data/test/reports/TEST-HammerCLI-Output-RecordCollection.xml +4 -4
- data/test/reports/TEST-HammerCLI-Settings-load-from-paths.xml +5 -5
- data/test/reports/TEST-HammerCLI-Settings.xml +10 -10
- data/test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml +3 -3
- data/test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml +5 -5
- data/test/reports/TEST-HammerCLI-ShellHistory.xml +1 -1
- data/test/reports/TEST-MiniTest-Spec.xml +1 -1
- data/test/reports/TEST-String-camelize.xml +3 -3
- data/test/reports/TEST-String-formatting.xml +6 -6
- data/test/reports/TEST-String-indent.xml +3 -3
- data/test/reports/{TEST-HammerCLI-interactive-.xml → TEST-String-interactive-.xml} +4 -4
- data/test/reports/TEST-String.xml +1 -1
- data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml +4 -4
- data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml +1 -1
- data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml +4 -4
- data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml +1 -1
- data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml +2 -2
- data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml +4 -4
- data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml +4 -4
- data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml +1 -1
- data/test/reports/TEST-constraints.xml +1 -1
- data/test/test_helper.rb +20 -0
- data/test/unit/output/formatters_test.rb +20 -3
- data/test/unit/test_helper.rb +1 -20
- metadata +195 -251
- data/test/reports/TEST-Fields-Label-display-.xml +0 -7
- data/test/reports/TEST-Fields-Label-display-blank-is-allowed.xml +0 -15
- data/test/reports/TEST-Fields-Label-display-blank-is-not-allowed.xml +0 -15
- data/test/reports/TEST-Fields-Label.xml +0 -7
- data/test/reports/TEST-HammerCLI-Apipie-Command-reload-apipie-cache.xml +0 -11
- data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-referenced-resources.xml +0 -9
- data/test/reports/TEST-HammerCLI-Apipie-OptionDefinition-referenced-resource.xml +0 -13
- data/test/reports/TEST-HammerCLI-Apipie-OptionDefinition.xml +0 -7
- data/test/reports/TEST-HammerCLI-Defaults.xml +0 -19
- data/test/reports/TEST-HammerCLI-Options-Matcher.xml +0 -17
- data/test/reports/TEST-HammerCLI-Options-Normalizers-number.xml +0 -11
- data/test/reports/TEST-HammerCLI-Options-OptionDefinition-deprecated-options.xml +0 -11
- data/test/reports/TEST-HammerCLI-Output-Adapter-Json-print-collection-show-ids.xml +0 -9
- data/test/reports/TEST-HammerCLI-Output-Adapter-Json-print-collection.xml +0 -27
- data/test/reports/TEST-HammerCLI-Output-Adapter-Json-print-message.xml +0 -11
- data/test/reports/TEST-HammerCLI-Output-Adapter-Json.xml +0 -7
- data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml-print-collection-show-ids.xml +0 -9
- data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml-print-collection.xml +0 -27
- data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml-print-message.xml +0 -11
- data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml.xml +0 -7
- data/test/reports/TEST-HammerCLI-constant-path.xml +0 -15
- data/test/reports/TEST-HammerCLI.xml +0 -7
- data/test/reports/TEST-Logging-LogEvent-filtering.xml +0 -9
- data/test/reports/TEST-Logging-LogEvent.xml +0 -7
- data/test/reports/TEST-String-constantize.xml +0 -15
- data/test/reports/TEST-String-underscore.xml +0 -13
- data/test/reports/TEST-commands-defaults-add.xml +0 -21
- data/test/reports/TEST-commands-defaults-delete.xml +0 -11
- data/test/reports/TEST-commands-defaults-list.xml +0 -11
- data/test/reports/TEST-commands-defaults-providers.xml +0 -11
- data/test/reports/TEST-commands.xml +0 -7
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="Fields::Label::display?" tests="0" time="0.000262736" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<system-out>
|
|
4
|
-
</system-out>
|
|
5
|
-
<system-err>
|
|
6
|
-
</system-err>
|
|
7
|
-
</testsuite>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="Fields::Label::display?::blank is allowed" tests="4" time="0.00059174" failures="0" errors="0" skipped="0" assertions="4" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_returns true when all the keys are present" time="0.00015223" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0004_returns true the hash does not contain the required keys" time="6.6431e-05" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0002_returns true when some of the keys are present" time="6.7013e-05" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0003_returns true the hash is empty" time="5.4924e-05" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<system-out>
|
|
12
|
-
</system-out>
|
|
13
|
-
<system-err>
|
|
14
|
-
</system-err>
|
|
15
|
-
</testsuite>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="Fields::Label::display?::blank is not allowed" tests="4" time="0.000567691" failures="0" errors="0" skipped="0" assertions="4" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0004_returns false the hash does not contain the required keys" time="0.000141916" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0003_returns false when there are some displayed subfields" time="8.1219e-05" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0002_returns true when some of the keys are present" time="6.1021e-05" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0001_returns true when all the keys are present" time="5.709e-05" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<system-out>
|
|
12
|
-
</system-out>
|
|
13
|
-
<system-err>
|
|
14
|
-
</system-err>
|
|
15
|
-
</testsuite>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="Fields::Label" tests="0" time="0.000209143" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<system-out>
|
|
4
|
-
</system-out>
|
|
5
|
-
<system-err>
|
|
6
|
-
</system-err>
|
|
7
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Apipie::Command::reload apipie cache" tests="2" time="0.003903524" failures="0" errors="0" skipped="0" assertions="2" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_clears the cache on init when required from config" time="0.002614748" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_clears the cache on init when required from CLI" time="0.001064006" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Apipie::OptionBuilder::setting referenced resources" tests="1" time="0.001033402" failures="0" errors="0" skipped="0" assertions="1" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_sets referenced resources" time="0.00071578" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<system-out>
|
|
6
|
-
</system-out>
|
|
7
|
-
<system-err>
|
|
8
|
-
</system-err>
|
|
9
|
-
</testsuite>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Apipie::OptionDefinition::referenced resource" tests="3" time="0.000449135" failures="0" errors="0" skipped="0" assertions="3" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0003_should convert referenced resource name to string" time="0.000103581" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_should set referenced resource" time="6.7841e-05" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0001_should be nil by default" time="6.1161e-05" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<system-out>
|
|
10
|
-
</system-out>
|
|
11
|
-
<system-err>
|
|
12
|
-
</system-err>
|
|
13
|
-
</testsuite>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Apipie::OptionDefinition" tests="0" time="0.000225147" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<system-out>
|
|
4
|
-
</system-out>
|
|
5
|
-
<system-err>
|
|
6
|
-
</system-err>
|
|
7
|
-
</testsuite>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Defaults" tests="6" time="0.006137556" failures="0" errors="0" skipped="0" assertions="7" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0006_should return empty defaults when the settings file is not present" time="0.001006175" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_Should add a default param to defaults file, with provider" time="0.000945422" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0004_should get the default param, without provider" time="0.001503757" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0003_Should remove default param from defaults file" time="0.000837499" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<testcase name="test_0001_Should add a default param to defaults file, without a provider" time="0.000795212" assertions="1">
|
|
12
|
-
</testcase>
|
|
13
|
-
<testcase name="test_0005_should get the default param, with provider" time="0.000659044" assertions="2">
|
|
14
|
-
</testcase>
|
|
15
|
-
<system-out>
|
|
16
|
-
</system-out>
|
|
17
|
-
<system-err>
|
|
18
|
-
</system-err>
|
|
19
|
-
</testsuite>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Options::Matcher" tests="5" time="0.000958091" failures="0" errors="0" skipped="0" assertions="15" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_tests value" time="0.000156911" assertions="2">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0005_tests nil for unknown methods" time="0.000101439" assertions="2">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0004_tests multiple values or regexes" time="0.000116698" assertions="4">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0002_tests regex" time="9.3362e-05" assertions="3">
|
|
10
|
-
</testcase>
|
|
11
|
-
<testcase name="test_0003_tests multiple conditions" time="9.5045e-05" assertions="4">
|
|
12
|
-
</testcase>
|
|
13
|
-
<system-out>
|
|
14
|
-
</system-out>
|
|
15
|
-
<system-err>
|
|
16
|
-
</system-err>
|
|
17
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Options::Normalizers::number" tests="2" time="0.000734916" failures="0" errors="0" skipped="0" assertions="2" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_should return number on numeric values" time="0.000136337" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_should raise ArgumentError on non-numeric values" time="0.000310682" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Options::OptionDefinition::deprecated options" tests="2" time="0.002820305" failures="0" errors="0" skipped="0" assertions="6" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_prints deprecation warning" time="0.001648333" assertions="3">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_prints deprecation warning (extended version)" time="0.000811577" assertions="3">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Json::print_collection::show ids" tests="1" time="0.001721136" failures="0" errors="0" skipped="0" assertions="1" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_shows ids if it's required in the context" time="0.001347012" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<system-out>
|
|
6
|
-
</system-out>
|
|
7
|
-
<system-err>
|
|
8
|
-
</system-err>
|
|
9
|
-
</testsuite>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Json::print_collection" tests="10" time="0.006718452" failures="0" errors="0" skipped="0" assertions="10" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0007_should print unnumbered collection with one element" time="0.001205914" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0008_hides ids by default" time="0.000779674" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0010_should print key -> value" time="0.000678589" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0005_should print collection with one element" time="0.000487358" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<testcase name="test_0006_should print unnumbered collection" time="0.000595982" assertions="1">
|
|
12
|
-
</testcase>
|
|
13
|
-
<testcase name="test_0001_should print one field" time="0.000470465" assertions="1">
|
|
14
|
-
</testcase>
|
|
15
|
-
<testcase name="test_0009_skips blank values" time="0.000458322" assertions="1">
|
|
16
|
-
</testcase>
|
|
17
|
-
<testcase name="test_0003_should print labeled fields" time="0.000489994" assertions="1">
|
|
18
|
-
</testcase>
|
|
19
|
-
<testcase name="test_0002_should field with nested data" time="0.000483606" assertions="1">
|
|
20
|
-
</testcase>
|
|
21
|
-
<testcase name="test_0004_should print collection" time="0.000550429" assertions="1">
|
|
22
|
-
</testcase>
|
|
23
|
-
<system-out>
|
|
24
|
-
</system-out>
|
|
25
|
-
<system-err>
|
|
26
|
-
</system-err>
|
|
27
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Json::print_message" tests="2" time="0.001693501" failures="0" errors="0" skipped="0" assertions="2" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_prints the message" time="0.000696509" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_prints the message with name and id" time="0.000614215" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Json" tests="0" time="0.000362561" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<system-out>
|
|
4
|
-
</system-out>
|
|
5
|
-
<system-err>
|
|
6
|
-
</system-err>
|
|
7
|
-
</testsuite>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Yaml::print_collection::show ids" tests="1" time="0.001520313" failures="0" errors="0" skipped="0" assertions="1" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_shows ids if it's required in the context" time="0.001082055" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<system-out>
|
|
6
|
-
</system-out>
|
|
7
|
-
<system-err>
|
|
8
|
-
</system-err>
|
|
9
|
-
</testsuite>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Yaml::print_collection" tests="10" time="0.01098197" failures="0" errors="0" skipped="0" assertions="10" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0005_should print collection with one element" time="0.001715419" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0009_skips blank values" time="0.000926093" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0007_should print unnumbered collection with one element" time="0.000898326" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0001_should print one field" time="0.000731269" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<testcase name="test_0006_should print unnumbered collection" time="0.001058901" assertions="1">
|
|
12
|
-
</testcase>
|
|
13
|
-
<testcase name="test_0010_should print key -> value" time="0.001005142" assertions="1">
|
|
14
|
-
</testcase>
|
|
15
|
-
<testcase name="test_0008_hides ids by default" time="0.000694512" assertions="1">
|
|
16
|
-
</testcase>
|
|
17
|
-
<testcase name="test_0004_should print collection" time="0.001010688" assertions="1">
|
|
18
|
-
</testcase>
|
|
19
|
-
<testcase name="test_0002_should field with nested data" time="0.001674319" assertions="1">
|
|
20
|
-
</testcase>
|
|
21
|
-
<testcase name="test_0003_should print labeled fields" time="0.000842128" assertions="1">
|
|
22
|
-
</testcase>
|
|
23
|
-
<system-out>
|
|
24
|
-
</system-out>
|
|
25
|
-
<system-err>
|
|
26
|
-
</system-err>
|
|
27
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Yaml::print_message" tests="2" time="0.001939457" failures="0" errors="0" skipped="0" assertions="2" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_prints the message" time="0.000827029" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_prints the message with name and id" time="0.00065868" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::Output::Adapter::Yaml" tests="0" time="0.000317567" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<system-out>
|
|
4
|
-
</system-out>
|
|
5
|
-
<system-err>
|
|
6
|
-
</system-err>
|
|
7
|
-
</testsuite>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="HammerCLI::constant_path" tests="4" time="0.00058049" failures="0" errors="0" skipped="0" assertions="4" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0002_raises NameError for unknown constant" time="0.000126807" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0004_returns correct path for namespaced constant" time="5.9477e-05" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0003_returns single constant" time="4.2209e-05" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0001_returns empty array for empty string" time="3.678e-05" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<system-out>
|
|
12
|
-
</system-out>
|
|
13
|
-
<system-err>
|
|
14
|
-
</system-err>
|
|
15
|
-
</testsuite>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="Logging::LogEvent::filtering" tests="1" time="0.000389791" failures="0" errors="0" skipped="0" assertions="2" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_can filter log data" time="0.000176167" assertions="2">
|
|
4
|
-
</testcase>
|
|
5
|
-
<system-out>
|
|
6
|
-
</system-out>
|
|
7
|
-
<system-err>
|
|
8
|
-
</system-err>
|
|
9
|
-
</testsuite>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="Logging::LogEvent" tests="0" time="0.000233106" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<system-out>
|
|
4
|
-
</system-out>
|
|
5
|
-
<system-err>
|
|
6
|
-
</system-err>
|
|
7
|
-
</testsuite>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="String::constantize" tests="4" time="0.001622369" failures="0" errors="0" skipped="0" assertions="4" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0002_raises NameError for unknown constant" time="0.000156486" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0004_returns correct namespaced constant" time="5.4406e-05" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0003_returns correct constant" time="4.0482e-05" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0001_raises NameError for empty string" time="4.4499e-05" assertions="1">
|
|
10
|
-
</testcase>
|
|
11
|
-
<system-out>
|
|
12
|
-
</system-out>
|
|
13
|
-
<system-err>
|
|
14
|
-
</system-err>
|
|
15
|
-
</testsuite>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="String::underscore" tests="3" time="0.000533236" failures="0" errors="0" skipped="0" assertions="3" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_converts camelized string to underscore" time="0.000126457" assertions="1">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_converts full class path name to underscore with slashes" time="5.574e-05" assertions="1">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0003_converts dashes to underscores" time="4.1718e-05" assertions="1">
|
|
8
|
-
</testcase>
|
|
9
|
-
<system-out>
|
|
10
|
-
</system-out>
|
|
11
|
-
<system-err>
|
|
12
|
-
</system-err>
|
|
13
|
-
</testsuite>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="commands::defaults add" tests="7" time="0.017878176" failures="0" errors="0" skipped="0" assertions="19" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0006_reports unknown provider" time="0.002897231" assertions="2">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0003_reports unsupported option" time="0.003208393" assertions="2">
|
|
6
|
-
</testcase>
|
|
7
|
-
<testcase name="test_0007_reports IO errors" time="0.001998381" assertions="3">
|
|
8
|
-
</testcase>
|
|
9
|
-
<testcase name="test_0002_adds default from provider" time="0.002367744" assertions="3">
|
|
10
|
-
</testcase>
|
|
11
|
-
<testcase name="test_0004_reports missing parameter name" time="0.002429813" assertions="3">
|
|
12
|
-
</testcase>
|
|
13
|
-
<testcase name="test_0005_reports missing parameter value or source" time="0.002011813" assertions="3">
|
|
14
|
-
</testcase>
|
|
15
|
-
<testcase name="test_0001_adds static default" time="0.002566728" assertions="3">
|
|
16
|
-
</testcase>
|
|
17
|
-
<system-out>
|
|
18
|
-
</system-out>
|
|
19
|
-
<system-err>
|
|
20
|
-
</system-err>
|
|
21
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="commands::defaults delete" tests="2" time="0.005479938" failures="0" errors="0" skipped="0" assertions="5" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_removes the defaults" time="0.003006504" assertions="3">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_reports when the variable was not found" time="0.002089675" assertions="2">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="commands::defaults list" tests="2" time="0.008166818" failures="0" errors="0" skipped="0" assertions="10" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_it prints all defaults" time="0.005370136" assertions="7">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_prints empty defaults" time="0.002446769" assertions="3">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuite name="commands::defaults providers" tests="2" time="0.036154366" failures="0" errors="0" skipped="0" assertions="8" timestamp="2015-12-10T23:59:29+00:00">
|
|
3
|
-
<testcase name="test_0001_prints all providers and their supported defaults" time="0.033551423" assertions="5">
|
|
4
|
-
</testcase>
|
|
5
|
-
<testcase name="test_0002_prints empty providers" time="0.00224489" assertions="3">
|
|
6
|
-
</testcase>
|
|
7
|
-
<system-out>
|
|
8
|
-
</system-out>
|
|
9
|
-
<system-err>
|
|
10
|
-
</system-err>
|
|
11
|
-
</testsuite>
|