Search in sources :

Example 41 with BlockedByBzBug

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

the class PofilterTranslationTests method getSubscriptionManagerTranslationFilePofilterTestDataAsListOfLists.

protected List<List<Object>> getSubscriptionManagerTranslationFilePofilterTestDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    // Client side
    Map<File, List<Translation>> translationFileMapForSubscriptionManager = buildTranslationFileMapForSubscriptionManager();
    for (File translationFile : translationFileMapForSubscriptionManager.keySet()) {
        for (String pofilterTest : pofilterTests) {
            Set<String> bugIds = new HashSet<String>();
            // Bug 825362	[es_ES] failed pofilter accelerator tests for subscription-manager translations
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("825362");
            // Bug 825367	[zh_CN] failed pofilter accelerator tests for subscription-manager translations
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("825367");
            // Bug 860084 - [ja_JP] two accelerators for msgid "Configure Pro_xy"
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/ja/"))
                bugIds.add("860084");
            // Bug 872697 - [ja_JP] two accelerators for msgid "Configure Pro_xy"
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/ja/"))
                bugIds.add("872697");
            // Bug 908879 - [es_ES] pofilter acceleratiors test failed for subscription-manager 1.8.X
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("908879");
            // Bug 1220287 - [RHSM GUI][ja_JP]Incorrect short-cut key '_S' of Save button in Proxy Configuration dialog.
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/ja/"))
                bugIds.add("1220287");
            // Bug 887957 	[ml_IN] pofilter newlines test failed for msgid="Redeeming the subscription may take..."
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/ml/"))) {
                bugIds.add("887957");
                bugIds.add("825393");
            }
            // Bug 887966 - [es_ES] pofilter newlines test failed for msgid="Redeeming the subscription may take..."
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/es_ES/"))) {
                bugIds.add("887966");
                bugIds.add("825393");
            }
            // Bug 887989 - [de_DE] pofilter newlines test failed on msgid "Redeeming the subscription may take..."
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/de_DE/"))) {
                bugIds.add("887989");
            }
            // Bug 887995 - [fr_FR] pofilter newlines test failed for msgid "Redeeming the subscription..."
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/fr/"))) {
                bugIds.add("887995");
            }
            // Bug 887997 - [it] pofilter newlines test failed om msgid="Error subscribing: %s"
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/it/"))) {
                bugIds.add("887997");
            }
            // Bug 888006 - [kn] pofilter newlines test failed on a few msgids
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/kn/"))) {
                bugIds.add("888006");
            }
            // Bug 888010 - [te] pofilter newlines test failed on msgid="Redeeming the subscription may take a few..."
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/te/"))) {
                bugIds.add("888010");
            }
            // Bug 888936 - [gu] pofilter newlines test failed for a few msgids
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/gu/"))) {
                bugIds.add("888936");
            }
            // Bug 888960 - [ko] pofilter newlines test failed
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/ko/"))) {
                bugIds.add("888960");
            }
            // Bug 888964 - [bn_IN] pofilter newlines test failed
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/bn_IN/"))) {
                bugIds.add("888964");
            }
            // Bug 888971 - [pt_BR] pofilter newlines test failed
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/pt_BR/"))) {
                bugIds.add("888971");
            }
            // Bug 888979 - [te] pofilter newlines test failed
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/te/"))) {
                bugIds.add("888979");
            }
            // Bug 908108 - [ru][ta_IN][te][zh_CN][es_ES][fr][de_DE][gu][zh_TW][kn] pofilter newlines test failed on msgid="Redeeming the subscription may take a few..."
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/ru/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/ta_IN/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/te/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/zh_CN/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/es_ES/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/fr/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/de_DE/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/gu/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/zh_TW/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/kn/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/or/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/it/"))) {
                bugIds.add("908108");
            }
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/hi/"))) {
                bugIds.add("908108");
            }
            // Bug 908037 - [hi][it][ml][ru] character ΒΆ should not appear in translated msgstr
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/ml/"))) {
                bugIds.add("908037");
            }
            // Bug 908434 - [it] pofilter newlines test failed on msgid="Error subscribing: %s"
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/it/"))) {
                bugIds.add("908434");
            }
            // Bug 908488 - [or] pofilter newlines test failed
            if (pofilterTest.equals("newlines") && (translationFile.getPath().contains("/or/"))) {
                bugIds.add("908488");
            }
            // Bug 827059	[kn] translation fails for printf test
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/kn/"))
                bugIds.add("827059");
            // Bug 827079 	[es-ES] translation fails for printf test
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("827079");
            // Bug 827085	[hi] translation fails for printf test
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/hi/"))
                bugIds.add("827085");
            // Bug 827089 	[hi] translation fails for printf test
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/te/"))
                bugIds.add("827089");
            // Bug 887431 - [pt_BR] pofilter variables (and printf) test is failing on a missing %s in the msgstr
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("887431");
            // Bug 908866 - [kn] pofilter variables/printf test fails for subscription-manager 1.8.X
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/kn/"))
                bugIds.add("908866");
            // Bug 1117515 - [ta_IN][zh_CN] bad translation for "%s is already running" causes a traceback
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("1117515");
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("1117515");
            // Bug 1463765 - fixes needed for a few pofilter test failures after pulling in new translations for rhel7.4
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/it/"))
                bugIds.add("1463765");
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1463765");
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("1463765");
            if (pofilterTest.equals("printf") && translationFile.getPath().contains("/ru/"))
                bugIds.add("1463765");
            // Bug 888858 - [ml] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/ml/"))
                bugIds.add("888858");
            // Bug 888864 - [es_ES] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("888864");
            // Bug 888868 - [pt_BR] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("888868");
            // Bug 888873 - [or] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/or/"))
                bugIds.add("888873");
            // Bug 888886 - [it] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/it/"))
                bugIds.add("888886");
            // Bug 888889 - [hi] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/hi/"))
                bugIds.add("888889");
            // Bug 888891 - [zh_CN] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("888891");
            // Bug 888923 - [te] pofilter tabs test failed for several msgids
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/te/"))
                bugIds.add("888923");
            // Bug 888928 - [ja] pofilter tabs test failed
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/ja/"))
                bugIds.add("888928");
            // Bug 911759 - [it][ja] pofilter tabs is failing on subscription-manager 1.8.X
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/it/"))
                bugIds.add("911759");
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/ja/"))
                bugIds.add("911759");
            // Bug 928472 - [kn] pofilter tabs test failed for subscription-manager 1.8.X
            if (pofilterTest.equals("tabs") && translationFile.getPath().contains("/kn/"))
                bugIds.add("928472");
            // Bug 827161 	[bn_IN] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/bn_IN/"))
                bugIds.add("827161");
            // Bug 827208	[or] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/or/"))
                bugIds.add("827208");
            // Bug 827214	[or] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("827214");
            // Bug 828368 - [kn] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/kn/"))
                bugIds.add("828368");
            // Bug 828365 - [kn] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/kn/"))
                bugIds.add("828365");
            // Bug 828372 - [es_ES] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("828372");
            // Bug 828416 - [ru] failed pofilter xmltags tests for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/ru/"))
                bugIds.add("828416");
            // Bug 843113 - [ta_IN] failed pofilter xmltags test for subscription-manager translations
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("843113");
            // Bug 908511 - [es_ES] pofilter xmltags test is failing against subscription-manager 1.8.X
            if (pofilterTest.equals("xmltags") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("908511");
            // Bug 828566	[bn-IN] cosmetic bug for subscription-manager translations
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/bn_IN/"))
                bugIds.add("828566");
            // Bug 828567 	[as] cosmetic bug for subscription-manager translations
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/as/"))
                bugIds.add("828567");
            // Bug 828576 - [ta_IN] failed pofilter filepaths tests for subscription-manager translations
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("828576");
            // Bug 828579 - [ml] failed pofilter filepaths tests for subscription-manager translations
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/ml/"))
                bugIds.add("828579");
            // Bug 828580 - [mr] failed pofilter filepaths tests for subscription-manager translations
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/mr/"))
                bugIds.add("828580");
            // Bug 828583 - [ko] failed pofilter filepaths tests for subscription-manager translations
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/ko/"))
                bugIds.add("828583");
            // Bug 908521 - [mr][ta_IN][ml] pofilter filepaths test failed for subscription-manager 1.8.X
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/mr/"))
                bugIds.add("908521");
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("908521");
            if (pofilterTest.equals("filepaths") && translationFile.getPath().contains("/ml/"))
                bugIds.add("908521");
            // Bug 828810 - [kn] failed pofilter varialbes tests for subscription-manager translations
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/kn/"))
                bugIds.add("828810");
            // Bug 828816 - [es_ES] failed pofilter varialbes tests for subscription-manager translations
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("828816");
            // Bug 828821 - [hi] failed pofilter varialbes tests for subscription-manager translations
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/hi/"))
                bugIds.add("828821");
            // Bug 828867 - [te] failed pofilter varialbes tests for subscription-manager translations
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/te/"))
                bugIds.add("828867");
            // Bug 887431 - [pt_BR] pofilter variables test is failing on a missing %s in the msgstr
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("887431");
            // Bug 908866 - [kn] pofilter variables/printf test fails for subscription-manager 1.8.X
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/kn/"))
                bugIds.add("908866");
            // Bug 1117515 - [ta_IN][zh_CN] bad translation for "%s is already running" causes a traceback
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("1117515");
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("1117515");
            // Bug 1463765 - fixes needed for a few pofilter test failures after pulling in new translations for rhel7.4
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/it/"))
                bugIds.add("1463765");
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1463765");
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("1463765");
            if (pofilterTest.equals("variables") && translationFile.getPath().contains("/ru/"))
                bugIds.add("1463765");
            // Bug 828903 - [bn_IN] failed pofilter options tests for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/bn_IN/"))
                bugIds.add("828903");
            // Bug 828930 - [as] failed pofilter options tests for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/as/"))
                bugIds.add("828930");
            // Bug 828948 - [or] failed pofilter options tests for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/or/"))
                bugIds.add("828948");
            // Bug 828954 - [ta_IN] failed pofilter options test for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("828954");
            // Bug 828958 - [pt_BR] failed pofilter options test for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("828958");
            // Bug 828961 - [gu] failed pofilter options test for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/gu/"))
                bugIds.add("828961");
            // Bug 828965 - [hi] failed pofilter options test for subscription-manager trasnlations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/hi/"))
                bugIds.add("828965");
            // Bug 828966 - [zh_CN] failed pofilter options test for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("828966");
            // Bug 828969 - [te] failed pofilter options test for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/te/"))
                bugIds.add("828969");
            // Bug 842898 - [it] failed pofilter options test for subscription-manager translations
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/it/"))
                bugIds.add("842898");
            // Bug 886917 - [or_IN] bad translation for msgid "Error: Must use --auto-attach with --servicelevel."
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/or/"))
                bugIds.add("886917");
            // Bug 887433 - [es_ES] pofilter options test failed on the translation of --auto-attach to --auto-adjuntar
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("887433");
            // Bug 887434 - [ru] pofilter options test failed on incorrect translation of commandline option "--list"
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/ru/"))
                bugIds.add("887434");
            // Bug 908869 - [pt_BR][ta_IN] pofilter options test failed for subscription-manager 1.8.X
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("908869");
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("908869");
            // Bug 928475 - [ru] pofilter options test failed on incorrect translation of commandline option "--list"
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/ru/"))
                bugIds.add("928475");
            // Bug 928523 - [ko] pofilter options test failed
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/ko/"))
                bugIds.add("928523");
            // Bug 1227932 - [ru] translation for msgid "Error: The --servicelevel option cannot be used when specifying pools." fails the options test
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/ru/"))
                bugIds.add("1227932");
            // Bug 828985 - [ml] failed pofilter urls test for subscription manager translations
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/ml/"))
                bugIds.add("828985");
            // Bug 828989 - [pt_BR] failed pofilter urls test for subscription-manager translations
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("828989");
            // Bug 860088 - [de_DE] translation for a url should not be altered
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/de_DE/"))
                bugIds.add("860088");
            // Bug 872684 - [de_DE] pofilter urls test is failing on the trailing period to url http://red.ht/lost_password.
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/de_DE/"))
                bugIds.add("872684");
            // Bug 887429 - [pt_BR] failed pofilter urls test
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("887429");
            // Bug 908059 - [pt-BR] pofilter urls test is failing against subscription-manager 1.8.X
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("908059");
            // Bug 928469 - [ml] pofilter urls test failed for subscription-manager 1.8.X
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/ml/"))
                bugIds.add("928469");
            // Bug 928489 - [pt_BR] pofilter urls test failed for subscription-manager 1.8.X
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("928489");
            // Bug 928487 - [ru] pofilter fails on url tests in subscription-manager 1.8.X
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/ru/"))
                bugIds.add("928487");
            // Bug 1117521 - [ta_IN][mr] failed urls test for http://wwwredhat.com/legal/privacy_statement.html
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("1117521");
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/mr/"))
                bugIds.add("1117521");
            // Bug 1117525 - [gu] need a translation for privacy_statement msgid
            if (pofilterTest.equals("urls") && translationFile.getPath().contains("/gu/"))
                bugIds.add("1117525");
            // Bug 845304 - translation of the word "[OPTIONS]" has reverted
            if (pofilterTest.equals("unchanged"))
                bugIds.add("845304");
            // Bug 829459 - [bn_IN] failed pofilter unchanged option test for subscription-manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/bn_IN/"))
                bugIds.add("829459");
            // Bug 829470 - [or] failed pofilter unchanged options for subscription-manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/or/"))
                bugIds.add("829470");
            // Bug 829471 - [ta_IN] failed pofilter unchanged optioon test for subscription-manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("829471");
            // Bug 829476 - [ml] failed pofilter unchanged option test for subscription-manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ml/"))
                bugIds.add("829476");
            // Bug 829479 - [pt_BR] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pt_BR/")) {
                bugIds.add("829479");
                bugIds.add("828958");
            }
            // Bug 829482 - [zh_TW] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/zh_TW/"))
                bugIds.add("829482");
            // Bug 829483 - [de_DE] failed pofilter unchanged options test for suubscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/de_DE/"))
                bugIds.add("829483");
            // Bug 829486 - [fr] failed pofilter unchanged options test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/fr/"))
                bugIds.add("829486");
            // Bug 829488 - [es_ES] failed pofilter unchanged option tests for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("829488");
            // Bug 829491 - [it] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/it/"))
                bugIds.add("829491");
            // Bug 829492 - [hi] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/hi/"))
                bugIds.add("829492");
            // Bug 829494 - [zh_CN] failed pofilter unchanged option for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("829494");
            // Bug 829495 - [pa] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pa/"))
                bugIds.add("829495");
            // Bug 840914 - [te] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/te/"))
                bugIds.add("840914");
            // Bug 840644 - [ta_IN] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("840644");
            // Bug 855087 -	[mr] missing translation for the word "OPTIONS"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/mr/"))
                bugIds.add("855087");
            // Bug 855085 -	[as] missing translation for the word "OPTIONS"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/as/"))
                bugIds.add("855085");
            // Bug 855081 -	[pt_BR] untranslated msgid "Arch"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("855081");
            // Bug 864095 - [it_IT] unchanged translation for msgid "System Engine Username: "
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/it/"))
                bugIds.add("864095");
            // Bug 864092 - [es_ES] unchanged translation for msgid "Configure Proxy"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("864092");
            // Bug 871163 - [mr_IN] translation for msgid "Org: " is unchanged
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/mr/"))
                bugIds.add("871163");
            // Bug 872704 - [es_ES] unchanged translation for msgid "Configure Proxy"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("872704");
            // Bug 887890 - [pa_IN] polfilter unchanged test failed for msgid "Activation Keys are alphanumeric strings that..."
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pa/"))
                bugIds.add("887890");
            // Bug 908886 - [ml][ta_IN][kn][pt_BR][es_ES][it][hi][zh_CN][te][ja][pa][ko][or] pofilter unchanged test fails against subscription-manager 1.8.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ml/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/kn/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/it/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/hi/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/te/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ja/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pa/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ko/"))
                bugIds.add("908886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/or/"))
                bugIds.add("908886");
            // Bug 911764 - [mr] pofilter unchanged test fails for subscription-manager 1.8.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/mr/"))
                bugIds.add("911764");
            // Bug 911772 - [ml] pofilter unchanged test fails for subscription-manager 1.8.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ml/"))
                bugIds.add("911772");
            // Bug 911776 - [it] msgids containing [OPTIONS] are not translated; expected [OPZIONI]
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/it/"))
                bugIds.add("911776");
            // Bug 911779 - [hi][te][pa][ko] unchanged translations for "[options]"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/hi/"))
                bugIds.add("911779");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/te/"))
                bugIds.add("911779");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pa/"))
                bugIds.add("911779");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ko/"))
                bugIds.add("911779");
            // Bug 921126 - [as] msgid "%%prog %s [OPTIONS] MANIFEST_FILE" is not translated in 1.8.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/as/"))
                bugIds.add("921126");
            // Bug 927979 - [kn] unchanged msgid "%%prog %s [OPTIONS] MANIFEST_FILE" in subscription-manager 1.8.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/kn/"))
                bugIds.add("927979");
            // Bug 927990 - [ta_IN] unchanged translations for several msgids containing "OPTIONS" in subscription-manager/1.8.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ta/"))
                bugIds.add("927990");
            // Bug 928000 - [ml] unchanged translations for msgids containing the word OPTIONS
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ml/"))
                bugIds.add("928000");
            // Bug 813268 - [ta_IN] unlocalised strings for subscription-manager identity
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("813268");
            // Bug 1117525 - [gu] need a translation for privacy_statement msgid
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/gu/"))
                bugIds.add("1117525");
            // Bug 1117535 - [zh_CN][gu] need a translation for "<b>%s version:</b> %s"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("1117535");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/gu/"))
                bugIds.add("1117525");
            // Bug 1140644 - [ta_IN] [subscription-manager] Auto-attach button is not localized.
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("1140644");
            // Bug 1227886 - [pt_BR][es_ES] msg_id="_Save" was not translated to "_Salvar" or "_Guardar"
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1227886");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("1227886");
            // Bug 1417746 - [it][fr][ja][es_ES][pt_BR] pofilter unchanged test fails for subscription-manager 1.18.X
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/it/"))
                bugIds.add("1417746");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/fr/"))
                bugIds.add("1417746");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ja/"))
                bugIds.add("1417746");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("1417746");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1417746");
            // Bug 841011 - [kn] failed pofilter unchanged option test for subscription manager translations
            if (pofilterTest.equals("doublewords") && translationFile.getPath().contains("/kn/"))
                bugIds.add("841011");
            // Bug 861095 - [hi_IN] duplicate words appear in two msgid translations
            if (pofilterTest.equals("doublewords") && translationFile.getPath().contains("/hi/"))
                bugIds.add("861095");
            // Bug 887923 - [gu] pofilter doublewords test failed on msgid=""The subscription management service you register with..."
            if (pofilterTest.equals("doublewords") && translationFile.getPath().contains("/gu/"))
                bugIds.add("887923");
            // Bug 911757 - [kn] pofilter doublewords test fails for subscription-manager 1.8.X
            if (pofilterTest.equals("doublewords") && translationFile.getPath().contains("/kn/"))
                bugIds.add("911757");
            // Bug 911762 - [te] pofilter blank test is failing against subscription-manager-migration 1.8.X
            if (pofilterTest.equals("blank") && translationFile.getPath().contains("/te/"))
                bugIds.add("911762");
            // Bug 1265347 - pofilter startwhitespace tests fail for many language translations in subscription-manager-1.15
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/ml/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/or/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/ja/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/ko/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/ru/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/hi/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/kn/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/it/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/ta_IN/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/bn_IN/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/zh_TW/"))
                bugIds.add("1265347");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("1265347");
            // Bug 1265371 - pofilter endwhitespace tests fail for many language translations in subscription-manager-1.15
            if (pofilterTest.equals("endwhitespace"))
                bugIds.add("1265371");
            // Bug 1372816 - Several pofilter tests are failing after receiving translated strings for subscription-manager-1.17
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/ja/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/es_ES/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("unchanged") && translationFile.getPath().contains("/ru/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/zh_CN/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("options") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1372816");
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/fr/"))
                bugIds.add("1372816");
            // Bug 1417731 - [ko][pt_BR] pofilter endwhitespace test fails for subscription-manager 1.18.X
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/ko/"))
                bugIds.add("1417731");
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1417731");
            // Bug 1463765 - fixes needed for a few pofilter test failures after pulling in new translations for rhel7.4
            if (pofilterTest.equals("endwhitespace") && translationFile.getPath().contains("/ko/"))
                bugIds.add("1463765");
            // Bug 1417736 - [pt_BR][fr][ja] pofilter accelerators test fails for subscription-manager 1.18.X
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/pt_BR/"))
                bugIds.add("1417736");
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/fr/"))
                bugIds.add("1417736");
            if (pofilterTest.equals("accelerators") && translationFile.getPath().contains("/ja/"))
                bugIds.add("1417736");
            // Bug 1417740 - [ko] pofilter startwhitespace test fails for subscription-manager 1.18.X
            if (pofilterTest.equals("startwhitespace") && translationFile.getPath().contains("/ko/"))
                bugIds.add("1417740");
            BlockedByBzBug blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
            ll.add(Arrays.asList(new Object[] { blockedByBzBug, pofilterTest, 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 42 with BlockedByBzBug

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

the class ProxyTests method getReposAttemptsUsingProxyServerDataAs2dArray.

@DataProvider(name = "getReposAttemptsUsingProxyServerData")
public Object[][] getReposAttemptsUsingProxyServerDataAs2dArray() {
    // return TestNGUtils.convertListOfListsTo2dArray(getValidRegisterAttemptsUsingProxyServerDataAsListOfLists());
    List<List<Object>> ll = new ArrayList<List<Object>>();
    for (List<Object> l : getValidRegisterAttemptsUsingProxyServerDataAsListOfLists()) {
        // get the existing BlockedByBzBug
        BlockedByBzBug blockedByBzBug = (BlockedByBzBug) l.get(0);
        List<String> bugIds = blockedByBzBug == null ? new ArrayList<String>() : new ArrayList<String>(Arrays.asList(blockedByBzBug.getBugIds()));
        // add more BlockedByBzBug to rows that are expecting a network error
        if (l.get(8) == nErrMsg) {
            // Bug 919255 - negative proxy testing against subscription-manager repos --list
            bugIds.add("919255");
        }
        if (l.get(4) != null && l.get(4).equals("bad-proxy")) {
            // Bug 975186 - subscription-manager repos --list is failing when specifying a bad --proxy
            bugIds.add("975186");
        }
        blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        ll.add(Arrays.asList(new Object[] { blockedByBzBug, l.get(1), l.get(2), l.get(3), l.get(4), l.get(5), l.get(6), l.get(7), l.get(8), l.get(9) }));
    }
    return TestNGUtils.convertListOfListsTo2dArray(ll);
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) DataProvider(org.testng.annotations.DataProvider)

Example 43 with BlockedByBzBug

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

the class ProxyTests method getVersionAttemptsUsingProxyServerViaRhsmConfigDataAs2dArray.

@DataProvider(name = "getVersionAttemptsUsingProxyServerViaRhsmConfigData")
public Object[][] getVersionAttemptsUsingProxyServerViaRhsmConfigDataAs2dArray() {
    // return TestNGUtils.convertListOfListsTo2dArray(getValidRegisterAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists());
    List<List<Object>> ll = new ArrayList<List<Object>>();
    // Note: The version module should always succeed, yet report subscription management server: Unknown when connection fails to the server
    for (List<Object> l : getValidRegisterAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists()) {
        // nullify the blockedByBug parameter since this function was originally not blocked by any bug
        BlockedByBzBug blockedByBzBug = null;
        List<String> bugIds = blockedByBzBug == null ? new ArrayList<String>() : new ArrayList<String>(Arrays.asList(blockedByBzBug.getBugIds()));
        // Bug 1345962 - unbound method endheaders() must be called with HTTPSConnection instance as first argument (got RhsmProxyHTTPSConnection instance instead)
        bugIds.add("1345962");
        // Bug 1419197 - subscription-manager status with bad proxy configurations should be using cache
        if (l.get(13) == pErr407Msg)
            bugIds.add("1419197");
        blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        // despite a Network or Proxy error, the version module should succeed with an Unknown server version
        if (l.get(12) == /*stdout*/
        nErrMsg || l.get(13) == /*stderr*/
        nErrMsg || l.get(13) == /*stderr*/
        pErr407Msg || l.get(13) == /*stderr*/
        pErrConMsg) {
            ll.add(Arrays.asList(new Object[] { blockedByBzBug, l.get(1), l.get(2), l.get(3), l.get(4), l.get(5), l.get(6), l.get(7), l.get(8), l.get(9), l.get(10), Integer.valueOf(0), /*exitCode*/
            "subscription management server: Unknown", /*stdout*/
            "", /*stderr*/
            l.get(14), l.get(15), l.get(16) }));
            continue;
        }
        // when l.get(4)!=null, then a proxy will be specified as a command line arg which trumps the rhsm.conf configuration and NO cache will be used
        if (l.get(4) != null) {
            // assumes get(4) is a bad proxy cli option
            // when a proxy is specified on the command line (l.get(4)), no cache will be used, simply assert all of the expected results
            ll.add(Arrays.asList(new Object[] { blockedByBzBug, l.get(1), l.get(2), l.get(3), l.get(4), l.get(5), l.get(6), l.get(7), l.get(8), l.get(9), l.get(10), l.get(11), /*exitCode*/
            l.get(12), /*stdout*/
            l.get(13), /*stderr*/
            l.get(14), l.get(15), l.get(16) }));
            continue;
        }
        // if we get to here, then stdout should report the actual server version...
        ll.add(Arrays.asList(new Object[] { blockedByBzBug, l.get(1), l.get(2), l.get(3), l.get(4), l.get(5), l.get(6), l.get(7), l.get(8), l.get(9), l.get(10), Integer.valueOf(0), /*exitCode*/
        "subscription management server: " + servertasks.statusVersion, /*stdout*/
        "", /*stderr*/
        l.get(14), l.get(15), l.get(16) }));
    }
    return TestNGUtils.convertListOfListsTo2dArray(ll);
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) DataProvider(org.testng.annotations.DataProvider)

Example 44 with BlockedByBzBug

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

the class ProxyTests method getEnvironmentsAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists.

protected List<List<Object>> getEnvironmentsAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    for (List<Object> l : getRegisterAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists()) {
        // get the existing BlockedByBzBug
        BlockedByBzBug blockedByBzBug = (BlockedByBzBug) l.get(0);
        List<String> bugIds = blockedByBzBug == null ? new ArrayList<String>() : new ArrayList<String>(Arrays.asList(blockedByBzBug.getBugIds()));
        // Bug 1345962 - unbound method endheaders() must be called with HTTPSConnection instance as first argument (got RhsmProxyHTTPSConnection instance instead)
        bugIds.add("1345962");
        blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        l.set(0, blockedByBzBug);
        if (l.get(11).equals(Integer.valueOf(69))) {
        // 69 EX_UNAVAILABLE
        // alter nothing; expected exitCode 69 indicates that "Proxy connection failed, please check your settings."
        } else // DELETEME	if (!sm_serverType.equals("katello") && (!nErrMsg.equals(l.get(13))||l.get(13)==null) && clienttasks.isPackageVersion("subscription-manager",">=","1.13.10-1")) {	// post commit 13fe8ffd8f876d27079b961fb6675424e65b9a10 bug 1119688
        if (!sm_serverType.equals("katello") && ((!nErrMsg.equals(l.get(13)) && !pErr407Msg.equals(l.get(13)) && !pErrConMsg.equals(l.get(13))) || l.get(13) == null) && clienttasks.isPackageVersion("subscription-manager", ">=", "1.13.10-1")) {
            // post commit 13fe8ffd8f876d27079b961fb6675424e65b9a10 bug 1119688
            // exitCode EX_UNAVAILABLE
            l.set(11, Integer.valueOf(69));
            l.set(12, "");
            l.set(13, "Error: Server does not support environments.");
        } else // DELETEME	if (!sm_serverType.equals("katello") && !l.get(3).equals(sm_clientOrg)) {
        if (!sm_serverType.equals("katello") && (!l.get(1).equals(sm_clientUsername) || !l.get(2).equals(sm_clientPassword) || !l.get(3).equals(sm_clientOrg))) {
            // subscription-manager environments --username=testuser1 --password=password --org=bad-org --proxy=auto-services.usersys.redhat.com:3128 --proxyuser=redhat --proxypassword=redhat
            // Stdout: This system does not support environments.
            // Stderr:
            // ExitCode: 0
            // exitCode
            l.set(11, Integer.valueOf(0));
            l.set(12, "Error: Server does not support environments.");
            l.set(13, "");
        }
        ll.add(l);
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Example 45 with BlockedByBzBug

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

the class ProxyTests method getReleaseAttemptsUsingProxyServerDataAs2dArray.

@DataProvider(name = "getReleaseAttemptsUsingProxyServerData")
public Object[][] getReleaseAttemptsUsingProxyServerDataAs2dArray() {
    // return TestNGUtils.convertListOfListsTo2dArray(getValidRegisterAttemptsUsingProxyServerDataAsListOfLists());
    List<List<Object>> ll = new ArrayList<List<Object>>();
    for (List<Object> l : getValidRegisterAttemptsUsingProxyServerDataAsListOfLists()) {
        // nullify the blockedByBug parameter since this function was originally not blocked by any bug
        BlockedByBzBug blockedByBzBug = null;
        List<String> bugIds = blockedByBzBug == null ? new ArrayList<String>() : new ArrayList<String>(Arrays.asList(blockedByBzBug.getBugIds()));
        // add BlockedByBzBug to rows that are expecting a network error
        if (l.get(8) == nErrMsg || l.get(8) == pErr407Msg) {
            // Bug 848195 	Error while checking server version: Proxy connection failed: 407
            bugIds.add("848195");
            // Bug 848190 	Error while checking server version: (111, 'Connection refused')
            bugIds.add("848190");
            // Bug 848184 	Error while checking server version: (-2, 'Name or service not known')
            bugIds.add("848184");
        }
        // Bug 1345962 - unbound method endheaders() must be called with HTTPSConnection instance as first argument (got RhsmProxyHTTPSConnection instance instead)
        bugIds.add("1345962");
        blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        ll.add(Arrays.asList(new Object[] { blockedByBzBug, l.get(1), l.get(2), l.get(3), l.get(4), l.get(5), l.get(6), l.get(7), l.get(8), l.get(9) }));
    }
    return TestNGUtils.convertListOfListsTo2dArray(ll);
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) DataProvider(org.testng.annotations.DataProvider)

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