Search in sources :

Example 61 with BlockedByBzBug

use of com.redhat.qe.auto.bugzilla.BlockedByBzBug in project rhsm-qe by RedHatQE.

the class SubscribeTests method getSubscribeWithQuantityDataAsListOfLists.

protected List<List<Object>> getSubscribeWithQuantityDataAsListOfLists() throws JSONException, Exception {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (!isSetupBeforeSuiteComplete)
        return ll;
    // register
    clienttasks.register(sm_clientUsername, sm_clientPassword, sm_clientOrg, null, null, "SubscriptionQuantityConsumer", null, null, null, null, (String) null, null, null, null, true, false, null, null, null, null);
    // find pools with a positive quantity that are "multi-entitlement" (and "instance_multiplier" too)
    SubscriptionPool instanceBasedPool = null;
    SubscriptionPool multiEntitlementPool = null;
    SubscriptionPool standardPool = null;
    for (SubscriptionPool pool : getRandomList(clienttasks.getCurrentlyAvailableSubscriptionPools())) {
        // /* debugTesting only these SKUs*/if (!Arrays.asList(new String[]{"RH00076","RH0604852","RH00284"}).contains(pool.productId)) continue;
        if (instanceBasedPool != null && multiEntitlementPool != null && standardPool != null)
            break;
        // skip pools that don't have enough quantity left to consume
        if (!pool.quantity.equalsIgnoreCase("unlimited") && Integer.valueOf(pool.quantity) < 2)
            continue;
        if (CandlepinTasks.isPoolProductInstanceBased(sm_clientUsername, sm_clientPassword, sm_serverUrl, pool.poolId)) {
            // should also be multiEntitlement
            instanceBasedPool = pool;
        } else if (CandlepinTasks.isPoolProductMultiEntitlement(sm_clientUsername, sm_clientPassword, sm_serverUrl, pool.poolId)) {
            multiEntitlementPool = pool;
        } else {
            standardPool = pool;
        }
    }
    SubscriptionPool pool;
    String expectedStdout;
    if (multiEntitlementPool != null) {
        pool = multiEntitlementPool;
        // Object meta, String poolId, String quantity, Integer expectedExitCode, String expectedStdoutRegex, String expectedStderrRegex
        if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.13.8-1")) {
            // post commit df95529a5edd0be456b3528b74344be283c4d258 bug 1119688
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), pool, "Two", Integer.valueOf(64), /*EX_USAGE*/
            null, "^Error: Quantity must be a positive number.$".replace("number", "integer") /* due to bug 746262*/
            }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "722554" }), pool, "-1", Integer.valueOf(64), /*EX_USAGE*/
            null, "^Error: Quantity must be a positive number.$".replace("number", "integer") /* due to bug 746262*/
            }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "722554" }), pool, "0", Integer.valueOf(64), /*EX_USAGE*/
            null, "^Error: Quantity must be a positive number.$".replace("number", "integer") /* due to bug 746262*/
            }));
        } else {
            ll.add(Arrays.asList(new Object[] { null, pool, "Two", Integer.valueOf(255), "^Error: Quantity must be a positive number.$".replace("number", "integer"), /* due to bug 746262*/
            null }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("722554"), pool, "-1", Integer.valueOf(255), "^Error: Quantity must be a positive number.$".replace("number", "integer"), /* due to bug 746262*/
            null }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("722554"), pool, "0", Integer.valueOf(255), "^Error: Quantity must be a positive number.$".replace("number", "integer"), /* due to bug 746262*/
            null }));
        }
        // Bug 812410 - Subscription-manager subscribe CLI feedback
        expectedStdout = "^" + String.format("Successfully consumed a subscription from the pool with id %s.", pool.poolId) + "$";
        // changed by Bug 874804 Subscribe -> Attach
        expectedStdout = "^" + String.format("Successfully consumed a subscription for: %s", pool.subscriptionName.replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)")) + "$";
        expectedStdout = "^" + String.format("Successfully attached a subscription for: %s", pool.subscriptionName.replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)")) + "$";
        ll.add(Arrays.asList(new Object[] { null, pool, "1", Integer.valueOf(0), expectedStdout, null }));
        ll.add(Arrays.asList(new Object[] { null, pool, "2", Integer.valueOf(0), expectedStdout, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("746262"), pool, "+2", Integer.valueOf(0), expectedStdout, null }));
        if (pool.quantity.equalsIgnoreCase("unlimited")) {
            ll.add(Arrays.asList(new Object[] { null, pool, "7000", Integer.valueOf(0), expectedStdout, null }));
        } else {
            if (!CandlepinType.hosted.equals(sm_serverType)) {
                // exclude this test from running on a hosted server since parallel running tests often consume available quantities affecting the expected results
                ll.add(Arrays.asList(new Object[] { null, pool, pool.quantity, Integer.valueOf(0), expectedStdout, null }));
            }
            // expected string changed by bug 876758
            expectedStdout = String.format("No entitlements are available from the pool with id '%s'.", pool.poolId);
            expectedStdout = String.format("No subscriptions are available from the pool with id '%s'.", pool.poolId);
            if (!clienttasks.workaroundForBug876764(sm_serverType))
                expectedStdout = String.format("No subscriptions are available from the pool with ID '%s'.", pool.poolId);
            if (SubscriptionManagerTasks.isVersion(servertasks.statusVersion, ">=", "2.3.1-1")) {
                // commit 0d5fefcfa8c1c2485921d2dee6633879b1e06931 Correct incorrect punctuation in user messages
                expectedStdout = String.format("No subscriptions are available from the pool with ID \"%s\".", pool.poolId);
            }
            if (!CandlepinType.hosted.equals(sm_serverType)) {
                // exclude this test from running on a hosted server since parallel running tests often consume available quantities affecting the expected results
                ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(Integer.valueOf(pool.quantity) + 1), Integer.valueOf(1), "^" + expectedStdout + "$", null }));
                ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(Integer.valueOf(pool.quantity) + 10), Integer.valueOf(1), "^" + expectedStdout + "$", null }));
            }
        }
    } else {
        ll.add(Arrays.asList(new Object[] { null, null, null, null, null, "Could NOT find an available subscription pool with \"multi-entitlement\" product attribute set true." }));
    }
    if (standardPool != null) {
        pool = standardPool;
        // Object meta, String poolId, String quantity, Integer expectedExitCode, String expectedStdoutRegex, String expectedStderrRegex
        // Bug 812410 - Subscription-manager subscribe CLI feedback
        expectedStdout = "^" + String.format("Successfully consumed a subscription from the pool with id %s.", pool.poolId) + "$";
        // changed by Bug 874804 Subscribe -> Attach
        expectedStdout = "^" + String.format("Successfully consumed a subscription for: %s", pool.subscriptionName.replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)")) + "$";
        expectedStdout = "^" + String.format("Successfully attached a subscription for: %s", pool.subscriptionName.replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)")) + "$";
        ll.add(Arrays.asList(new Object[] { null, pool, "1", Integer.valueOf(0), expectedStdout, null }));
        expectedStdout = String.format("Multi-entitlement not supported for pool with id '%s'.", pool.poolId);
        if (!clienttasks.workaroundForBug876764(sm_serverType))
            expectedStdout = String.format("Multi-entitlement not supported for pool with ID '%s'.", pool.poolId);
        if (SubscriptionManagerTasks.isVersion(servertasks.statusVersion, ">=", "2.3.1-1")) {
            // commit 0d5fefcfa8c1c2485921d2dee6633879b1e06931 Correct incorrect punctuation in user messages
            expectedStdout = String.format("Multi-entitlement not supported for pool with ID \"%s\".", pool.poolId);
        }
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("722975"), pool, "2", Integer.valueOf(1), "^" + expectedStdout + "$", null }));
    } else {
        ll.add(Arrays.asList(new Object[] { null, null, null, null, null, "Could NOT find an available subscription pool with \"multi-entitlement\" product attribute set false (or absent)." }));
    }
    if (instanceBasedPool != null) {
        pool = instanceBasedPool;
        int instanceMultiplier = Integer.valueOf(CandlepinTasks.getPoolProductAttributeValue(sm_clientUsername, sm_clientPassword, sm_serverUrl, pool.poolId, "instance_multiplier"));
        boolean isSystemVirtual = Boolean.valueOf(clienttasks.getFactValue("virt.is_guest"));
        // a virtual system should be able to attach an instance-based subscription in increments of quantity=1 (this satisfies the Either-Or requirement)
        if (isSystemVirtual)
            instanceMultiplier = 1;
        // Object meta, String poolId, String quantity, Integer expectedExitCode, String expectedStdoutRegex, String expectedStderrRegex
        if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.13.8-1")) {
            // post commit df95529a5edd0be456b3528b74344be283c4d258 bug 1119688
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), pool, "Two", Integer.valueOf(64), /*EX_USAGE*/
            null, "^Error: Quantity must be a positive number.$".replace("number", "integer") /* due to bug 746262*/
            }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "722554" }), pool, "-1", Integer.valueOf(64), /*EX_USAGE*/
            null, "^Error: Quantity must be a positive number.$".replace("number", "integer") /* due to bug 746262*/
            }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "722554" }), pool, "0", Integer.valueOf(64), /*EX_USAGE*/
            null, "^Error: Quantity must be a positive number.$".replace("number", "integer") /* due to bug 746262*/
            }));
        } else {
            ll.add(Arrays.asList(new Object[] { null, pool, "Two", Integer.valueOf(255), "^Error: Quantity must be a positive number.$".replace("number", "integer"), /* due to bug 746262*/
            null }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("722554"), pool, "-1", Integer.valueOf(255), "^Error: Quantity must be a positive number.$".replace("number", "integer"), /* due to bug 746262*/
            null }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("722554"), pool, "0", Integer.valueOf(255), "^Error: Quantity must be a positive number.$".replace("number", "integer"), /* due to bug 746262*/
            null }));
        }
        expectedStdout = "^" + String.format("Successfully attached a subscription for: %s", pool.subscriptionName.replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)")) + "$";
        ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(1 * instanceMultiplier), Integer.valueOf(0), expectedStdout, null }));
        ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(2 * instanceMultiplier), Integer.valueOf(0), expectedStdout, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("746262"), pool, "+" + String.valueOf(2 * instanceMultiplier), Integer.valueOf(0), expectedStdout, null }));
        if (pool.quantity.equalsIgnoreCase("unlimited")) {
            ll.add(Arrays.asList(new Object[] { null, pool, "7000", Integer.valueOf(0), expectedStdout, null }));
        } else {
            if (!CandlepinType.hosted.equals(sm_serverType)) {
                // exclude this test from running on a hosted server since parallel running tests often consume available quantities affecting the expected results
                // testing with a quantity one increment within the availability
                ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(Integer.valueOf(pool.quantity) - Integer.valueOf(pool.quantity) % instanceMultiplier), Integer.valueOf(0), expectedStdout, null }));
            }
            expectedStdout = String.format("No subscriptions are available from the pool with id '%s'.", pool.poolId);
            if (!clienttasks.workaroundForBug876764(sm_serverType))
                expectedStdout = String.format("No subscriptions are available from the pool with ID '%s'.", pool.poolId);
            if (SubscriptionManagerTasks.isVersion(servertasks.statusVersion, ">=", "2.3.1-1")) {
                // commit 0d5fefcfa8c1c2485921d2dee6633879b1e06931 Correct incorrect punctuation in user messages
                expectedStdout = String.format("No subscriptions are available from the pool with ID \"%s\".", pool.poolId);
            }
            if (!CandlepinType.hosted.equals(sm_serverType)) {
                // exclude this test from running on a hosted server since parallel running tests often consume available quantities affecting the expected results
                // testing with a quantity one increment over the availability
                ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(Integer.valueOf(pool.quantity) - Integer.valueOf(pool.quantity) % instanceMultiplier + instanceMultiplier), Integer.valueOf(1), "^" + expectedStdout + "$", null }));
                // testing with a quantity ten increments over the availability
                ll.add(Arrays.asList(new Object[] { null, pool, String.valueOf(Integer.valueOf(pool.quantity) - Integer.valueOf(pool.quantity) % instanceMultiplier + instanceMultiplier * 10), Integer.valueOf(1), "^" + expectedStdout + "$", null }));
            }
        }
    } else {
        ll.add(Arrays.asList(new Object[] { null, null, null, null, null, "Could NOT find an available subscription pool with \"instance_multipler\" product attribute set." }));
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) JSONObject(org.json.JSONObject) SubscriptionPool(rhsm.data.SubscriptionPool) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Example 62 with BlockedByBzBug

use of com.redhat.qe.auto.bugzilla.BlockedByBzBug in project rhsm-qe by RedHatQE.

the class TranslationTests method getTranslationFileDataForVerifyTranslationsDoNotContainOverEscapedNewlineCharacter_TestAsListOfLists.

protected List<List<Object>> getTranslationFileDataForVerifyTranslationsDoNotContainOverEscapedNewlineCharacter_TestAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (translationFileMapForSubscriptionManager == null)
        return ll;
    for (File translationFile : translationFileMapForSubscriptionManager.keySet()) {
        Set<String> bugIds = new HashSet<String>();
        // Bug 888971 - [pt_BR] pofilter newlines test failed
        if (translationFile.getPath().contains("/pt_BR/"))
            bugIds.add("888971");
        BlockedByBzBug blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        ll.add(Arrays.asList(new Object[] { blockedByBzBug, translationFile }));
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) File(java.io.File) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) HashSet(java.util.HashSet)

Example 63 with BlockedByBzBug

use of com.redhat.qe.auto.bugzilla.BlockedByBzBug in project rhsm-qe by RedHatQE.

the class TranslationTests method getTranslationFileDataForVerifyCandlepinTranslationsDoNotContainUnescapedSingleQuotes_Test_TestAsListOfLists.

protected List<List<Object>> getTranslationFileDataForVerifyCandlepinTranslationsDoNotContainUnescapedSingleQuotes_Test_TestAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (translationFileMapForCandlepin == null)
        return ll;
    for (File translationFile : translationFileMapForCandlepin.keySet()) {
        Set<String> bugIds = new HashSet<String>();
        // Bug 1167490 - [fr_FR] translations for candlepin are not properly escaping apostrophe / single quotes
        if (translationFile.getPath().contains("/fr.po"))
            bugIds.add("1167490");
        if (translationFile.getPath().contains("/it.po"))
            bugIds.add("1167490");
        BlockedByBzBug blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        ll.add(Arrays.asList(new Object[] { blockedByBzBug, translationFile }));
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) File(java.io.File) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) HashSet(java.util.HashSet)

Example 64 with BlockedByBzBug

use of com.redhat.qe.auto.bugzilla.BlockedByBzBug in project rhsm-qe by RedHatQE.

the class TranslationTests method getTranslationFileDataForVerifyTranslationsDoNotUseParagraphCharacter_TestAsListOfLists.

protected List<List<Object>> getTranslationFileDataForVerifyTranslationsDoNotUseParagraphCharacter_TestAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (translationFileMapForSubscriptionManager == null)
        return ll;
    for (File translationFile : translationFileMapForSubscriptionManager.keySet()) {
        Set<String> bugIds = new HashSet<String>();
        // Bug 825393 - [ml_IN][es_ES] translations should not use character ¶ for a new line.
        if (translationFile.getPath().contains("/ml/"))
            bugIds.add("844369");
        if (translationFile.getPath().contains("/es_ES/"))
            bugIds.add("844369");
        // Bug 908037 - [hi][it][ml][ru] character ¶ should not appear in translated msgstr
        if (translationFile.getPath().contains("/hi/"))
            bugIds.addAll(Arrays.asList("893120", "908037"));
        if (translationFile.getPath().contains("/it/"))
            bugIds.addAll(Arrays.asList("893120", "908037"));
        if (translationFile.getPath().contains("/ml/"))
            bugIds.addAll(Arrays.asList("893120", "908037"));
        if (translationFile.getPath().contains("/ru/"))
            bugIds.addAll(Arrays.asList("893120", "908037"));
        BlockedByBzBug blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        ll.add(Arrays.asList(new Object[] { blockedByBzBug, translationFile }));
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) File(java.io.File) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) HashSet(java.util.HashSet)

Example 65 with BlockedByBzBug

use of com.redhat.qe.auto.bugzilla.BlockedByBzBug in project rhsm-qe by RedHatQE.

the class TranslationTests method getTranslatedCommandLineHelpDataAsListOfLists.

protected List<List<Object>> getTranslatedCommandLineHelpDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (clienttasks == null)
        return ll;
    String command, output, lang, module;
    List<String> helpOptions = Arrays.asList(new String[] { "-h", "--help" });
    String helpOption;
    // [root@jsefler-r63-server ~]# for L in en_US de_DE es_ES fr_FR it_IT ja_JP ko_KR pt_BR ru_RU zh_CN zh_TW as_IN bn_IN hi_IN mr_IN gu_IN kn_IN ml_IN or_IN pa_IN ta_IN te_IN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager --help | grep -- --help"; LANG=$L.UTF-8 subscription-manager  --help | grep -- --help; done;
    // subscription-manager (-h or --help option is randomly chosen for each lang)
    command = clienttasks.command;
    lang = "en_US";
    output = "Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "de_DE";
    output = "(Verwendung|Verbrauch): subscription-manager MODUL-NAME [MODUL-OPTIONEN] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "es_ES";
    output = "Uso: subscription-manager MÓDULO-NOMBRE [MÓDULO-OPCIONES] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "fr_FR";
    output = "Utilisation.*: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, /*new BlockedByBzBug(new String[]{"707080","743734","743732"})*/
    lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "it_IT";
    output = "Utilizzo: subscription-manager NOME-MODULO [OPZIONI-MODULO] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ja_JP";
    output = "使い方: subscription-manager モジュール名 [モジュールオプション] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "912466" }), lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ko_KR";
    output = "사용법: subscription-manager 모듈-이름 [모듈-옵션] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "pt_BR";
    output = "Uso: subscription-manager MÓDULO-NOME [MÓDULO-OPÇÕES] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ru_RU";
    output = "Формат: subscription-manager ДЕЙСТВИЕ [ПАРАМЕТРЫ] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "zh_CN";
    output = "使用: subscription-manager 模块名称 [模块选项] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "912466" }), /*new BlockedByBzBug(new String[]{"707080","743732"})*/
    lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "zh_TW";
    output = "使用方法:subscription-manager 模組名稱 [模組選項] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "as_IN";
    output = "ব্যৱহাৰ: subscription-manager মডিউল-নাম [মডিউল-বিকল্পসমূহ] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, /*new BlockedByBzBug(new String[]{"743732","750807"})*/
    lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "bn_IN";
    output = "ব্যবহারপ্রণালী: subscription-manager মডিউল-নাম [মডিউল-বিকল্প] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "hi_IN";
    output = "प्रयोग: subscription-manager मॉड्यूल्स-नाम [मॉड्यूल्स-नाम] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "mr_IN";
    output = "वापर: subscription-manager मॉड्युल-नाव [मॉड्युल-पर्याय] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "gu_IN";
    output = "વપરાશ: subscription-manager મોડ્યુલ-નામ [મોડ્યુલ-વિકલ્પો] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "kn_IN";
    output = "ಬಳಕೆ: subscription-manager ಮಾಡ್ಯೂಲ್-ಹೆಸರು [ಮಾಡ್ಯೂಲ್-ಆಯ್ಕೆಗಳು] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("811294"), lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ml_IN";
    output = "ഉപയോഗിയ്ക്കേണ്ട വിധം: subscription-manager ഘടകത്തിന്റെ പേരു് [ഘടകത്തിനുള്ള ഐച്ഛികങ്ങള്‍] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "or_IN";
    output = "ବ୍ୟବହାର ବିଧି: subscription-manager ମଡ୍ୟୁଲ-ନାମ [ମଡ୍ୟୁଲ-ବିକଳ୍ପଗୁଡିକ] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "pa_IN";
    output = "ਵਰਤੋਂ: subscription-manager ਮੌਡਿਊਲ-ਨਾਂ [ਮੌਡਿਊਲ-ਚੋਣਾਂ] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ta_IN";
    output = "பயன்பாடு: subscription-manager தொகுதிக்கூறு-பெயர் [தொகுதிக்கூறு-விருப்பங்கள்] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug("811301"), lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "te_IN";
    output = "వాడుక: subscription-manager మాడ్యూల్-పేరు [మాడ్యూల్-ఐచ్చికాలు] [--help]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, helpOption.equals("--help") ? 0 : 1, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    // MODULE: clean
    // [root@jsefler-6server ~]# for L in en_US de_DE es_ES fr_FR it_IT ja_JP ko_KR pt_BR ru_RU zh_CN zh_TW as_IN bn_IN hi_IN mr_IN gu_IN kn_IN ml_IN or_IN pa_IN ta_IN te_IN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'"; LANG=$L.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'; done;
    // accept either capitalized or noncapitalized
    module = "clean";
    lang = "en_US";
    output = "(O|o)ptions:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "de_DE";
    output = "(O|o)ptionen:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "es_ES";
    output = "(O|o)pciones:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "fr_FR";
    output = "(O|o)ptions:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "it_IT";
    output = "(O|o)pzioni:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ja_JP";
    output = "オプション:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ko_KR";
    output = "옵션:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "pt_BR";
    output = "(O|o)pções:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ru_RU";
    output = "(П|п)араметры:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "zh_CN";
    output = "选项:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "zh_TW";
    output = "選項:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "as_IN";
    output = "বিকল্পসমূহ:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "bn_IN";
    output = "বিকল্প:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "hi_IN";
    output = "विकल्प:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "mr_IN";
    output = "पर्याय:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "gu_IN";
    output = "વિકલ્પો:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "kn_IN";
    output = "ಆಯ್ಕೆಗಳು:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ml_IN";
    output = "ഐച്ഛികങ്ങള്‍:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "or_IN";
    output = "ବିକଳ୍ପଗୁଡିକ:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "pa_IN";
    output = "ਚੋਣਾਂ:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ta_IN";
    output = "விருப்பங்கள்:|விருப்பங்கள் :";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "te_IN";
    output = "ఐచ్చికాలు:|ఐచ్చికములు:";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568", "1117374" }), lang, command + " " + module + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    // TODO MODULE: activate
    // TODO MODULE: facts
    // TODO MODULE: identity
    // TODO MODULE: list
    // TODO MODULE: refresh
    // MODULE: register
    // [root@jsefler-r63-server ~]# for L in en_US de_DE es_ES fr_FR it_IT ja_JP ko_KR pt_BR ru_RU zh_CN zh_TW as_IN bn_IN hi_IN mr_IN gu_IN kn_IN ml_IN or_IN pa_IN ta_IN te_IN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager register --help | grep -- 'subscription-manager register'"; LANG=$L.UTF-8 subscription-manager register --help | grep -- 'subscription-manager register'; done;
    module = "register";
    lang = "en_US";
    output = "Usage: subscription-manager register [OPTIONS]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "de_DE";
    output = "(Verwendung|Verbrauch): subscription-manager register [OPTIONEN]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "693527", "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "es_ES";
    output = "Uso: subscription-manager register [OPCIONES]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "fr_FR";
    output = "Utilisation.*subscription-manager register [OPTIONS]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "it_IT";
    output = "Utilizzo: subscription-manager register [OPZIONI]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ja_JP";
    output = "使用法: subscription-manager register [オプション]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ko_KR";
    output = "사용법: subscription-manager register [옵션]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "pt_BR";
    output = "Uso: subscription-manager register [OPÇÕES]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ru_RU";
    output = "Формат: subscription-manager register [ПАРАМЕТРЫ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "zh_CN";
    output = "使用:subscription-manager register [选项]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "zh_TW";
    output = "使用方法:subscription-manager register [選項]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "as_IN";
    output = "ব্যৱহাৰ: subscription-manager register [বিকল্পসমূহ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "743732", "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "bn_IN";
    output = "ব্যবহারপ্রণালী: subscription-manager register [বিকল্প]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "hi_IN";
    output = "प्रयोग: subscription-manager register [विकल्प]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "mr_IN";
    output = "वापर: subscription-manager register [पर्याय]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "gu_IN";
    output = "વપરાશ: subscription-manager register [વિકલ્પો]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "kn_IN";
    output = "ಬಳಕೆ: subscription-manager register [ಆಯ್ಕೆಗಳು]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "811294", "839807", "845304", "886901" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ml_IN";
    output = "ഉപയോഗിയ്ക്കേണ്ട വിധം: subscription-manager register [ഐച്ഛികങ്ങള്‍]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "or_IN";
    output = "ଉପଯୋଗ: subscription-manager register [ବିକଳ୍ପଗୁଡିକ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "pa_IN";
    output = "ਵਰਤੋਂ: subscription-manager register [ਚੋਣਾਂ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ta_IN";
    output = "பயன்பாடு: subscription-manager register [விருப்பங்கள்]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "te_IN";
    output = "వా‍డుక: subscription-manager register [ఐచ్చికాలు]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "839807", "845304" }), lang, command + " " + helpOption + " " + module, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    // TODO MODULE: subscribe
    // TODO MODULE: unregister
    // TODO MODULE: unsubscribe
    // rhn-migrate-classic-to-rhsm --help|-h
    command = "rhn-migrate-classic-to-rhsm";
    lang = "en_US";
    output = "Usage: rhn-migrate-classic-to-rhsm [OPTIONS]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "de_DE";
    output = "(Verwendung|Verbrauch): rhn-migrate-classic-to-rhsm [OPTIONEN]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "707080" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "es_ES";
    output = "Uso: rhn-migrate-classic-to-rhsm [OPCIONES]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "fr_FR";
    output = "Utilisation.*rhn-migrate-classic-to-rhsm [OPTIONS]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "it_IT";
    output = "Utilizzo: rhn-migrate-classic-to-rhsm [OPZIONI]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ja_JP";
    output = "使用法: rhn-migrate-classic-to-rhsm [オプション]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ko_KR";
    output = "사용법: rhn-migrate-classic-to-rhsm [옵션]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "pt_BR";
    output = "Uso: rhn-migrate-classic-to-rhsm [OPÇÕES]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ru_RU";
    output = "Формат: rhn-migrate-classic-to-rhsm [ПАРАМЕТРЫ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "zh_CN";
    output = "使用:rhn-migrate-classic-to-rhsm [选项]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "zh_TW";
    output = "使用方法:rhn-migrate-classic-to-rhsm [選項]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "as_IN";
    output = "ব্যৱহাৰ: rhn-migrate-classic-to-rhsm [বিকল্পসমূহ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "bn_IN";
    output = "ব্যবহারপ্রণালী: rhn-migrate-classic-to-rhsm [বিকল্প]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "hi_IN";
    output = "प्रयोग: rhn-migrate-classic-to-rhsm [विकल्प]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "mr_IN";
    output = "वापर: rhn-migrate-classic-to-rhsm [पर्याय]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "gu_IN";
    output = "વપરાશ: rhn-migrate-classic-to-rhsm [વિકલ્પો]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "kn_IN";
    output = "ಬಳಕೆ: rhn-migrate-classic-to-rhsm [ಆಯ್ಕೆಗಳು]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ml_IN";
    output = "ഉപയോഗിയ്ക്കേണ്ട വിധം: rhn-migrate-classic-to-rhsm [ഐച്ഛികങ്ങള്‍]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "or_IN";
    output = "ଉପଯୋଗ: rhn-migrate-classic-to-rhsm [ବିକଳ୍ପଗୁଡିକ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "pa_IN";
    output = "ਵਰਤੋਂ: rhn-migrate-classic-to-rhsm [ਚੋਣਾਂ]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "ta_IN";
    output = "பயன்பாடு: rhn-migrate-classic-to-rhsm [விருப்பங்கள்]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    lang = "te_IN";
    output = "వా‍డుక: rhn-migrate-classic-to-rhsm [ఐచ్చికాలు]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[(.+)\\]", /*"\\\\[($1|OPTIONS)\\\\]"*/
    "\\\\[$1\\\\]") + "$") }));
    // rct stat-cert --help|-h
    // [root@jsefler-6server ~]# for L in en_US de_DE es_ES fr_FR it_IT ja_JP ko_KR pt_BR ru_RU zh_CN zh_TW as_IN bn_IN hi_IN mr_IN gu_IN kn_IN ml_IN or_IN pa_IN ta_IN te_IN; do echo ""; echo "# LANG=$L.UTF-8 rct stat-cert --help | grep -B1 -- '-h, --help'"; LANG=$L.UTF-8 rct stat-cert --help | grep -B1 -- '-h, --help'; done;
    command = "rct stat-cert";
    lang = "en_US";
    output = "show this help message and exit";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "de_DE";
    output = "Zeige diese Hilfenachricht und beende|Diese Hilfenachricht anzeigen und beenden";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "es_ES";
    output = "mostrar este mensaje de ayuda y salir";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "fr_FR";
    output = "afficher ce message d'aide et quitter";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "it_IT";
    output = "mostra questo messaggio d'aiuto ed esci";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ja_JP";
    output = "このヘルプメッセージを表示して終了";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ko_KR";
    output = "도움말 보기 및 종료";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "pt_BR";
    output = "apresenta esta mensagem de ajuda e encerramento";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "ru_RU";
    output = "показать это сообщение и выйти";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "zh_CN";
    output = "显示此帮助信息并退出";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    lang = "zh_TW";
    output = "顯示此協助訊息並退出";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]") + "$") }));
    // replace space with \s* to accommodate word wrapping from optparse  Bug 878089: Add line wrapping when listing subscription-manager modules
    lang = "as_IN";
    // replace space with \s* to accommodate word wrapping from optparse  Bug 878089: Add line wrapping when listing subscription-manager modules
    output = "এই সহায় বাৰ্তা দেখুৱাওক আৰু প্ৰস্থান কৰক";
    // replace space with \s* to accommodate word wrapping from optparse  Bug 878089: Add line wrapping when listing subscription-manager modules
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    // replace space with \s* to accommodate word wrapping from optparse  Bug 878089: Add line wrapping when listing subscription-manager modules
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "bn_IN";
    output = "এই বার্তা প্রদর্শন করে প্রস্থান করা হবে";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "hi_IN";
    output = "इस मदद संदेश को दिखाएँ और बाहर हों";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "mr_IN";
    output = "हे मदत संदेश दाखवा व बाहेर पडा";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "gu_IN";
    output = "આ મદદ સંદેશાને બતાવો અને બહાર નીકળો";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "kn_IN";
    output = "ಈ ನೆರವಿನ ಸಂದೇಶವನ್ನು ತೋರಿಸಿ ನಿರ್ಗಮಿಸು";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "ml_IN";
    output = "ഈ സഹായ സന്ദേശം കാണിച്ചു് പുറത്തു് കടക്കുക";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "or_IN";
    output = "ଏହି ସହାୟତା ସନ୍ଦେଶ ଦେଖାନ୍ତୁ ଏବଂ ପ୍ରସ୍ଥାନ କରନ୍ତୁ";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "pa_IN";
    output = "ਇਹ ਮੱਦਦ ਸੁਨੇਹਾ ਵਿਖਾਉ ਅਤੇ ਬਾਹਰ ਜਾਉ";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "ta_IN";
    output = "இந்த உதவி செய்தியை காட்டி வெளியேறு";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    lang = "te_IN";
    output = "ఈ సహయ సందేశం చూపి నిష్క్రమించు";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1074568" }), lang, command + " " + helpOption, 0, newList(output.replaceAll("\\[", "\\\\[").replaceAll("\\]", "\\\\]").replaceAll(" ", "\\\\s+") + "$") }));
    // rhel5	// this logic is also needed in HelpTests.getExpectedCommandLineOptionsDataAsListOfLists()
    if (clienttasks.redhatReleaseX.equals("5"))
        helpOptions = Arrays.asList(new String[] { "-?", "--help" });
    // NOTE: THESE TRANSLATIONS ACTUALLY COME FROM /usr/share/locale/*/LC_MESSAGES/glib20.mo (package glib2 NOT subscription-manager)
    command = "rhsmcertd";
    lang = "en_US";
    output = "Usage:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "de_DE";
    output = "Aufruf:\\n  rhsmcertd [OPTION …]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "es_ES";
    output = "Uso:\\n  rhsmcertd [OPCIÓN…]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "fr_FR";
    output = "Utilisation :\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { clienttasks.redhatReleaseX.equals("5") ? new BlockedByBzBug("969608") : null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "it_IT";
    output = "Uso:\\n  rhsmcertd [OPZIONE...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "ja_JP";
    output = "用法:\\n  rhsmcertd [オプション...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "ko_KR";
    output = "사용법:\\n  rhsmcertd [옵션...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "pt_BR";
    output = "Uso:\\n  rhsmcertd [(OPÇÃO|OPÇÕES)...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "ru_RU";
    output = "Использование:\\n  rhsmcertd [ПАРАМЕТР(…|...)]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "zh_CN";
    output = "用法:\\n  rhsmcertd [选项(…|...)]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "zh_TW";
    output = "用法:\\n  rhsmcertd [選項(…|...)]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "as_IN";
    output = "(ব্যৱহাৰ:|ব্যৱহাৰপ্ৰণালী:)\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { clienttasks.redhatReleaseX.equals("5") ? new BlockedByBzBug("969608") : null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "bn_IN";
    output = "ব্যবহারপ্রণালী:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "hi_IN";
    output = "प्रयोग:\\n  rhsmcertd [विकल्प...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "mr_IN";
    output = "वापर:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { clienttasks.redhatReleaseX.equals("5") ? new BlockedByBzBug("969608") : null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "gu_IN";
    output = "વપરાશ:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "kn_IN";
    output = "ಬಳಕೆ:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { clienttasks.redhatReleaseX.equals("5") ? new BlockedByBzBug("969608") : null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "ml_IN";
    output = "ഉപയോഗിക്കേണ്ട വിധം:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "or_IN";
    output = "ବ୍ଯବହାର:\\n  rhsmcertd [ପସନ୍ଦ...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "pa_IN";
    output = "ਵਰਤੋਂ:\\n  rhsmcertd [ਚੋਣ...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "ta_IN";
    output = "பயன்பாடு:\\n  rhsmcertd [OPTION...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    lang = "te_IN";
    output = "వినిమయం:\\n  rhsmcertd [ఇచ్చాపూర్వరకం...]";
    helpOption = helpOptions.get(randomGenerator.nextInt(helpOptions.size()));
    ll.add(Arrays.asList(new Object[] { null, lang, command + " " + helpOption, 0, newList(output.replaceAll("\\.", "\\\\.").replaceAll("\\[(.+)\\]", "\\\\[($1|OPTION\\\\.\\\\.\\\\.)\\\\]") + "\\s*$") }));
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Aggregations

BlockedByBzBug (com.redhat.qe.auto.bugzilla.BlockedByBzBug)67 ArrayList (java.util.ArrayList)67 List (java.util.List)67 JSONObject (org.json.JSONObject)21 HashSet (java.util.HashSet)18 File (java.io.File)14 DataProvider (org.testng.annotations.DataProvider)14 SubscriptionPool (rhsm.data.SubscriptionPool)7 BigInteger (java.math.BigInteger)5 ProductCert (rhsm.data.ProductCert)5 HashMap (java.util.HashMap)3 JSONArray (org.json.JSONArray)3 EntitlementCert (rhsm.data.EntitlementCert)3 Repo (rhsm.data.Repo)2 BugzillaAPIException (com.redhat.qe.auto.bugzilla.BugzillaAPIException)1 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1 SkipException (org.testng.SkipException)1 ConsumerType (rhsm.base.ConsumerType)1 YumRepo (rhsm.data.YumRepo)1