Search in sources :

Example 21 with BlockedByBzBug

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

the class ProxyTests method getRedeemAttemptsUsingProxyServerDataAsListOfLists.

protected List<List<Object>> getRedeemAttemptsUsingProxyServerDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    for (List<Object> l : getValidRegisterAttemptsUsingProxyServerDataAsListOfLists()) {
        // alter expected exitCode and stderr for rows that are normally exitCode=0 against standalone candlepin >= 2.0.7-1
        if (CandlepinType.standalone.equals(sm_serverType)) {
            if (SubscriptionManagerTasks.isVersion(servertasks.statusVersion, ">=", "2.0.7-1")) {
                // candlepin commit 676ce6c2786203a33ec5eedc8dadcd664a62f09e 1263474: Standalone candlepin now returns the expected error message and code
                if (((Integer) l.get(7)).equals(Integer.valueOf(0))) {
                    // exit code
                    // 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 1263474 - subscription-manager redeem is not reporting the response to stdout
                    bugIds.add("1263474");
                    // 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), new Integer(70), /*EX_SOFTWARE*/
                    l.get(8), new String("Standalone candlepin does not support redeeming a subscription.") }));
                    continue;
                }
            }
        }
        // only block rows where stdout != null with BlockedByBzBug("732499")
        if (l.get(8) != null) {
            // 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 732499 - 'gaierror' object has no attribute 'code' / 'error' object has no attribute 'code'
            bugIds.add("732499");
            // 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) }));
        } else {
            ll.add(l);
        }
    }
    return ll;
}
Also used : BigInteger(java.math.BigInteger) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Example 22 with BlockedByBzBug

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

the class ProxyTests method getRegisterAttemptsToVerifyHonoringNoProxyEnvironmentVariableDataAsListOfLists.

protected List<List<Object>> getRegisterAttemptsToVerifyHonoringNoProxyEnvironmentVariableDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    // TOO EXHAUSTIVE TAKES 40 MINUTES for (List<Object> l : getValidRegisterAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists()) {
    for (List<Object> l : getRandomSubsetOfList(getValidRegisterAttemptsUsingProxyServerViaRhsmConfigDataAsListOfLists(), 3)) {
        // append a value for no_proxy environment variable and a boolean to indicate if it should be honored or not
        String noProxyEnvVar;
        Boolean hostnameMatchesNoProxyEnvVar;
        // 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
        // bugIds.add("1234");	// Bug 1234
        blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
        // Bug 1457197 - --noproxy option no longer match "*" for host names
        bugIds.add("1457197");
        // * matches subscription.rhn.redhat.com
        noProxyEnvVar = "*";
        // * matches subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = true;
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(bugIds.toArray(new String[] {})), 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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        bugIds.remove("1457197");
        // subscription.rhn.redhat.com matches subscription.rhn.redhat.com
        noProxyEnvVar = sm_serverHostname;
        // subscription.rhn.redhat.com matches subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = true;
        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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        // *.aventail.com,home.com,.seanet.com,subscription.rhn.redhat.com matches subscription.rhn.redhat.com
        noProxyEnvVar = "*.aventail.com,home.com,.seanet.com," + sm_serverHostname;
        // *.aventail.com,home.com,.seanet.com,subscription.rhn.redhat.com matches subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = true;
        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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        // .rhn.redhat.com matches subscription.rhn.redhat.com
        noProxyEnvVar = sm_serverHostname.replaceFirst("[^\\.]+", "");
        // .rhn.redhat.com matches subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = true;
        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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        // *.aventail.com,home.com,.seanet.com,.rhn.redhat.com matches subscription.rhn.redhat.com
        noProxyEnvVar = "*.aventail.com,home.com,.seanet.com," + sm_serverHostname.replaceFirst("[^\\.]+", "");
        // *.aventail.com,home.com,.seanet.com,.rhn.redhat.com matches subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = true;
        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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        // *.aventail.com,home.com,.seanet.com does not match subscription.rhn.redhat.com
        noProxyEnvVar = "*.aventail.com,home.com,.seanet.com";
        // *.aventail.com,home.com,.seanet.com does not match subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = false;
        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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        // Bug 1443164 	no_proxy does not match the host name when *.redhat.com is used	// This case does not work on RHEL since the the only wildcard supported by the library is no_proxy=* which is likely an RFE bug against component X?
        bugIds.add("1443164");
        // *.rhn.redhat.com matches subscription.rhn.redhat.com
        noProxyEnvVar = sm_serverHostname.replaceFirst("[^\\.]+", "*");
        // *.rhn.redhat.com matches subscription.rhn.redhat.com
        hostnameMatchesNoProxyEnvVar = true;
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(bugIds.toArray(new String[] {})), 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), l.get(12), l.get(13), l.get(14), l.get(15), l.get(16), noProxyEnvVar, hostnameMatchesNoProxyEnvVar }));
        bugIds.remove("1443164");
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Example 23 with BlockedByBzBug

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

the class ProxyTests method getRegisterAttemptsUsingProxyServerDataAsListOfLists.

protected List<List<Object>> getRegisterAttemptsUsingProxyServerDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (!isSetupBeforeSuiteComplete)
        return ll;
    if (clienttasks == null)
        return ll;
    String basicauthproxyUrl = String.format("%s:%s", sm_basicauthproxyHostname, sm_basicauthproxyPort);
    basicauthproxyUrl = basicauthproxyUrl.replaceAll(":$", "");
    String noauthproxyUrl = String.format("%s:%s", sm_noauthproxyHostname, sm_noauthproxyPort);
    noauthproxyUrl = noauthproxyUrl.replaceAll(":$", "");
    // "Invalid username or password";
    String uErrMsg = servertasks.invalidCredentialsMsg();
    String oErrMsg = /*"Organization/Owner bad-org does not exist."*/
    "Organization bad-org does not exist.";
    if (sm_serverType.equals(CandlepinType.katello))
        oErrMsg = "Couldn't find organization 'bad-org'";
    if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.18.2-1")) {
        // post commit ad982c13e79917e082f336255ecc42615e1e7707	1176219: Error out if bad proxy settings detected
        // basic auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, "bad-proxy", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(69), null, pErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "1301215" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl + "0", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(69), null, pErrMsg }));
        if (clienttasks.isPackageVersion("python-rhsm", ">=", "1.18.5-1") && Integer.valueOf(clienttasks.redhatReleaseX) >= 7) {
            // post commit 214103dcffce29e31858ffee414d79c1b8063970	Reduce usage of m2crypto https://github.com/candlepin/python-rhsm/pull/184
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", sm_basicauthproxyPassword, Integer.valueOf(69), null, rErrMsg }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, "bad-password", Integer.valueOf(69), null, rErrMsg }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", "bad-password", Integer.valueOf(69), null, rErrMsg }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, null, null, Integer.valueOf(69), null, rErrMsg }));
        } else {
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", sm_basicauthproxyPassword, Integer.valueOf(69), null, pErrMsg }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, "bad-password", Integer.valueOf(69), null, pErrMsg }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", "bad-password", Integer.valueOf(69), null, pErrMsg }));
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1176219" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, null, null, Integer.valueOf(69), null, pErrMsg }));
        }
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242", "1354667" }), "bad-username", sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242", "1354667" }), sm_clientUsername, "bad-password", sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242" }), sm_clientUsername, sm_clientPassword, "bad-org", basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, oErrMsg }));
        // no auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, "ignored-username", "ignored-password", Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "1301215" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl + "0", null, null, Integer.valueOf(69), null, pErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1354667" }), "bad-username", sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "1354667" }), sm_clientUsername, "bad-password", sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, "bad-org", noauthproxyUrl, null, null, Integer.valueOf(70), null, oErrMsg }));
    } else if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.13.9-1")) {
        // post commit a695ef2d1da882c5f851fde90a24f957b70a63ad
        // basic auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, "bad-proxy", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, nErrMsg }));
        if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.17.6-1")) {
            // post commit 7ce6801fc1cc38edcdeb75dfb5f0d1f8a6398c68	1301215: Test proxy connection before making call	1176219: Stop before cache is returned when using bad proxy options
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "1301215" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl + "0", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(69), null, pErrMsg }));
        } else {
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl + "0", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, nErrMsg }));
        }
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", sm_basicauthproxyPassword, Integer.valueOf(70), null, nErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, "bad-password", Integer.valueOf(70), null, nErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", "bad-password", Integer.valueOf(70), null, nErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, null, null, Integer.valueOf(70), null, nErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242" }), "bad-username", sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242" }), sm_clientUsername, "bad-password", sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258", "838242" }), sm_clientUsername, sm_clientPassword, "bad-org", basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, oErrMsg }));
        // no auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, "ignored-username", "ignored-password", Integer.valueOf(0), null, null }));
        if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.17.6-1")) {
            // post commit 7ce6801fc1cc38edcdeb75dfb5f0d1f8a6398c68	1301215: Test proxy connection before making call	1176219: Stop before cache is returned when using bad proxy options
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "1301215" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl + "0", null, null, Integer.valueOf(69), null, pErrMsg }));
        } else {
            ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl + "0", null, null, Integer.valueOf(70), null, nErrMsg }));
        }
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), "bad-username", sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, "bad-password", sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1345962", "1119688", "755258" }), sm_clientUsername, sm_clientPassword, "bad-org", noauthproxyUrl, null, null, Integer.valueOf(70), null, oErrMsg }));
    } else if (clienttasks.isPackageVersion("subscription-manager", ">=", "1.13.8-1")) {
        // post commit df95529a5edd0be456b3528b74344be283c4d258 bug 1119688
        // basic auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258", "838242" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, "bad-proxy", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl + "0", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", sm_basicauthproxyPassword, Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, "bad-password", Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", "bad-password", Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, null, null, Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258", "838242" }), "bad-username", sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258", "838242" }), sm_clientUsername, "bad-password", sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258", "838242" }), sm_clientUsername, sm_clientPassword, "bad-org", basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(70), null, oErrMsg }));
        // no auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, "ignored-username", "ignored-password", Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl + "0", null, null, Integer.valueOf(70), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), "bad-username", sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, "bad-password", sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(70), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "1119688", "755258" }), sm_clientUsername, sm_clientPassword, "bad-org", noauthproxyUrl, null, null, Integer.valueOf(70), null, oErrMsg }));
    } else {
        // basic auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258", "838242" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { null, sm_clientUsername, sm_clientPassword, sm_clientOrg, "bad-proxy", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { null, sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl + "0", sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", sm_basicauthproxyPassword, Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, "bad-password", Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, "bad-username", "bad-password", Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, basicauthproxyUrl, null, null, Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258", "838242" }), "bad-username", sm_clientPassword, sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(255), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258", "838242" }), sm_clientUsername, "bad-password", sm_clientOrg, basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(255), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258", "838242" }), sm_clientUsername, sm_clientPassword, "bad-org", basicauthproxyUrl, sm_basicauthproxyUsername, sm_basicauthproxyPassword, Integer.valueOf(255), null, oErrMsg }));
        // no auth proxy test data...
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl, "ignored-username", "ignored-password", Integer.valueOf(0), null, null }));
        ll.add(Arrays.asList(new Object[] { null, sm_clientUsername, sm_clientPassword, sm_clientOrg, noauthproxyUrl + "0", null, null, Integer.valueOf(255), nErrMsg, null }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), "bad-username", sm_clientPassword, sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(255), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, "bad-password", sm_clientOrg, noauthproxyUrl, null, null, Integer.valueOf(255), null, uErrMsg }));
        ll.add(Arrays.asList(new Object[] { new BlockedByBzBug(new String[] { "755258" }), sm_clientUsername, sm_clientPassword, "bad-org", noauthproxyUrl, null, null, Integer.valueOf(255), null, oErrMsg }));
    }
    return ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Example 24 with BlockedByBzBug

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

the class ProxyTests method getIdentityAttemptsUsingProxyServerDataAsListOfLists.

protected List<List<Object>> getIdentityAttemptsUsingProxyServerDataAsListOfLists() {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    for (List<Object> l : getRegisterAttemptsUsingProxyServerDataAsListOfLists()) {
        // only include dataProvided rows where org is valid
        if (l.get(3).equals(sm_clientOrg)) {
            // 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 || 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");
            }
            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 ll;
}
Also used : ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug)

Example 25 with BlockedByBzBug

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

the class ContentTests method getAllEUSProductContentSetDataAsListOfLists.

protected List<List<Object>> getAllEUSProductContentSetDataAsListOfLists() throws JSONException, Exception {
    List<List<Object>> ll = new ArrayList<List<Object>>();
    if (!isSetupBeforeSuiteComplete)
        return ll;
    // register and get the owner_key
    clienttasks.unregister(null, null, null, null);
    // NOTE: The most thorough way to test this is using an account with access to all products via the Employee SKU ES0113909
    clienttasks.register(sm_clientUsername, sm_clientPassword, sm_clientOrg, null, null, null, null, null, null, null, (String) null, null, null, null, null, false, null, null, null, null);
    getAllEUSProductContentSetDataAsListOfListsOwnerKey = clienttasks.getCurrentlyRegisteredOwnerKey();
    Map<String, String> eusLabelToInfoMap = new HashMap<String, String>();
    // [root@jsefler-rhel7 ~]# curl --stderr /dev/null --insecure --user REDACTED:REDACTED --request GET 'https://subscription.rhsm.stage.redhat.com:443/subscription/owners/10992327/products/84' | python -m json/tool
    // {
    // "attributes": [
    // {
    // "name": "arch",
    // "value": "ia64,ppc,ppc64,ppc64le,x86,x86_64"
    // },
    // {
    // "name": "name",
    // "value": "Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support"
    // },
    // {
    // "name": "type",
    // "value": "SVC"
    // }
    // ],
    // "created": "2017-05-31T17:30:20+0000",
    // "dependentProductIds": [],
    // "href": "/products/8a99f9835c5f85d2015c5f8eebc504e3",
    // "id": "84",
    // "multiplier": 1,
    // "name": "Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support",
    // "productContent": [
    // {
    // "content": {
    // "arches": "x86,x86_64",
    // "contentUrl": "/content/eus/rhel/server/6/$releasever/$basearch/highavailability/os",
    // "created": "2017-05-31T17:30:17+0000",
    // "gpgUrl": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release",
    // "id": "1352",
    // "label": "rhel-ha-for-rhel-6-server-eus-rpms",
    // "metadataExpire": 86400,
    // "modifiedProductIds": [],
    // "name": "Red Hat Enterprise Linux High Availability (for RHEL 6 Server) - Extended Update Support (RPMs)",
    // "releaseVer": null,
    // "requiredTags": "rhel-6-server",
    // "type": "yum",
    // "updated": "2017-05-31T17:30:17+0000",
    // "uuid": "8a99f9835c5f85d2015c5f8eddb20236",
    // "vendor": "Red Hat"
    // },
    // "enabled": false
    // },
    // <SNIP FOR BREVITY>
    // {
    // "content": {
    // "arches": "x86,x86_64",
    // "contentUrl": "/content/eus/rhel/server/6/$releasever/$basearch/highavailability/debug",
    // "created": "2017-05-31T17:30:17+0000",
    // "gpgUrl": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release",
    // "id": "1351",
    // "label": "rhel-ha-for-rhel-6-server-eus-debug-rpms",
    // "metadataExpire": 86400,
    // "modifiedProductIds": [
    // "83"
    // ],
    // "name": "Red Hat Enterprise Linux High Availability (for RHEL 6 Server) - Extended Update Support (Debug RPMs)",
    // "releaseVer": null,
    // "requiredTags": "rhel-6-server",
    // "type": "yum",
    // "updated": "2017-05-31T17:30:17+0000",
    // "uuid": "8a99f9835c5f85d2015c5f8eddb20237",
    // "vendor": "Red Hat"
    // },
    // "enabled": false
    // }
    // ],
    // "updated": "2017-05-31T17:30:20+0000",
    // "uuid": "8a99f9835c5f85d2015c5f8eebc504e3"
    // }
    // loop through all of the owner's products
    JSONArray jsonProducts = new JSONArray(CandlepinTasks.getResourceUsingRESTfulAPI(sm_clientUsername, sm_clientPassword, sm_serverUrl, "/owners/" + getAllEUSProductContentSetDataAsListOfListsOwnerKey + "/products"));
    for (int i = 0; i < jsonProducts.length(); i++) {
        JSONObject jsonProduct = (JSONObject) jsonProducts.get(i);
        String productId = jsonProduct.getString("id");
        String productName = CandlepinTasks.getResourceAttributeValue(jsonProduct, "name");
        // loop through all of the product content sets
        JSONArray jsonProductContents = jsonProduct.getJSONArray("productContent");
        for (int j = 0; j < jsonProductContents.length(); j++) {
            JSONObject jsonProductContent = (JSONObject) jsonProductContents.get(j);
            JSONObject jsonContent = jsonProductContent.getJSONObject("content");
            // get the label and modifiedProductIds for each of the productContents
            // "rhel-ha-for-rhel-6-server-eus-rpms",
            String label = jsonContent.getString("label");
            // "Red Hat Enterprise Linux High Availability (for RHEL 6 Server) - Extended Update Support (RPMs)",
            String name = jsonContent.getString("name");
            // "1351"
            String id = jsonContent.getString("id");
            // comma separated string
            String requiredTags = jsonContent.isNull("requiredTags") ? null : jsonContent.getString("requiredTags");
            String type = jsonContent.getString("type");
            JSONArray jsonModifiedProductIds = jsonContent.getJSONArray("modifiedProductIds");
            List<String> modifiedProductIds = new ArrayList<String>();
            for (int k = 0; k < jsonModifiedProductIds.length(); k++) {
                String modifiedProductId = (String) jsonModifiedProductIds.get(k);
                modifiedProductIds.add(modifiedProductId);
            }
            // is this an EUS content set?
            if (label.contains("-eus-")) {
                // only add rows for eus repo labels
                if (label.contains("rhel-4")) {
                    log.info("Skipping this test for rhel-4 eus content set repository '" + label + "' because subscription-manager was never delivered on rhel-4.");
                    // skip RHEL4 REPOS
                    continue;
                }
                eusLabelToInfoMap.put(label, productId + ";" + productName + ";" + id + ";" + modifiedProductIds);
                Set<String> bugIds = new HashSet<String>();
                if (label.contains("-rhui-")) {
                    log.info("Skipping this test for rhui eus content set repository '" + label + "' because of a NEEDINFO on RHUI eng product 157 - How is RHUI special? There is no product cert 157 on rcm-metadata.git.");
                    // skip RHUI REPOS
                    continue;
                }
                // Bug 1471998 - content set mappings for "Red Hat S-JIS Support (for RHEL Server) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sjis-for-rhel-6-server-eus-debug-rpms"))
                    bugIds.add("1471998");
                if (label.equals("rhel-sjis-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1471998");
                if (label.equals("rhel-sjis-for-rhel-6-server-eus-source-rpms"))
                    bugIds.add("1471998");
                if (label.equals("rhel-sjis-for-rhel-7-server-eus-debug-rpms"))
                    bugIds.add("1471998");
                if (label.equals("rhel-sjis-for-rhel-7-server-eus-rpms"))
                    bugIds.add("1471998");
                if (label.equals("rhel-sjis-for-rhel-7-server-eus-source-rpms"))
                    bugIds.add("1471998");
                // Bug 1472001 - content set mappings for "Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-rs-for-rhel-5-for-power-eus-debug-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-5-for-power-eus-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-5-for-power-eus-source-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-5-server-eus-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-7-server-eus-debug-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-7-server-eus-rpms"))
                    bugIds.add("1472001");
                if (label.equals("rhel-rs-for-rhel-7-server-eus-source-rpms"))
                    bugIds.add("1472001");
                // Bug 1472004 - content set mappings for "Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-ha-for-rhel-5-for-power-eus-debug-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-5-for-power-eus-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-5-for-power-eus-source-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-5-server-eus-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-7-server-eus-debug-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-7-server-eus-rpms"))
                    bugIds.add("1472004");
                if (label.equals("rhel-ha-for-rhel-7-server-eus-source-rpms"))
                    bugIds.add("1472004");
                // Bug 1472005 - content set mappings for "Oracle Java (for RHEL Server) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-5-server-eus-thirdparty-oracle-java-isos"))
                    bugIds.add("1472005");
                if (label.equals("rhel-5-server-eus-thirdparty-oracle-java-rpms"))
                    bugIds.add("1472005");
                if (label.equals("rhel-5-server-eus-thirdparty-oracle-java-source-rpms"))
                    bugIds.add("1472005");
                if (label.equals("rhel-6-server-eus-thirdparty-oracle-java-isos"))
                    bugIds.add("1472005");
                if (label.equals("rhel-6-server-eus-thirdparty-oracle-java-rpms"))
                    bugIds.add("1472005");
                if (label.equals("rhel-6-server-eus-thirdparty-oracle-java-source-rpms"))
                    bugIds.add("1472005");
                if (label.equals("rhel-7-server-eus-thirdparty-oracle-java-isos"))
                    bugIds.add("1472005");
                if (label.equals("rhel-7-server-eus-thirdparty-oracle-java-rpms"))
                    bugIds.add("1472005");
                if (label.equals("rhel-7-server-eus-thirdparty-oracle-java-source-rpms"))
                    bugIds.add("1472005");
                // Bug 1472007 - content set mappings for "Red Hat Enterprise Linux Server - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-5-server-eus-rh-common-debuginfo"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rh-common-isos"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rh-common-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rh-common-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rhn-tools-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rhn-tools-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-satellite-tools-6.1-debuginfo"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-5-server-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-rhn-tools-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-rhn-tools-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.3-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.3-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.3-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.3-puppet4-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.3-puppet4-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-6-server-eus-satellite-tools-6.3-puppet4-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-isos"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-optional-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-optional-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-optional-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rh-common-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rh-common-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rh-common-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rhn-tools-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rhn-tools-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.3-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.3-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.3-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.3-puppet4-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.3-puppet4-debug-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-satellite-tools-6.3-puppet4-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-source-isos"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-source-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-supplementary-debuginfo"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-supplementary-isos"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-supplementary-rpms"))
                    bugIds.add("1472007");
                if (label.equals("rhel-7-server-eus-supplementary-source-rpms"))
                    bugIds.add("1472007");
                // Bug 1491304 - content set mappings for "Oracle Java (for RHEL Compute Node) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-7-hpc-node-eus-thirdparty-oracle-java-rpms"))
                    bugIds.add("1491304");
                if (label.equals("rhel-7-hpc-node-eus-thirdparty-oracle-java-source-rpms"))
                    bugIds.add("1491304");
                if (label.equals("rhel-hpc-node-6-eus-thirdparty-oracle-java-rpms"))
                    bugIds.add("1491304");
                if (label.equals("rhel-hpc-node-6-eus-thirdparty-oracle-java-source-rpms"))
                    bugIds.add("1491304");
                // Bug 1491308 - content set mappings for "Red Hat Developer Toolset (for RHEL Server EUS)" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-server-dts-5-eus-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts-6-eus-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts2-5-eus-debug-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts2-5-eus-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts2-5-eus-source-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts2-6-eus-debug-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts2-6-eus-rpms"))
                    bugIds.add("1491308");
                if (label.equals("rhel-server-dts2-6-eus-source-rpms"))
                    bugIds.add("1491308");
                // Bug 1491308 was CLOSED WONTFIX
                if ((label.startsWith("rhel-server-dts-") || label.startsWith("rhel-server-dts2-")) && (label.contains("-eus-"))) {
                    log.info("Skipping this test for content set repository '" + label + "' because bug 1491308 was CLOSED WONTFIX for already not supported(EOL) products DTS and DTS2");
                    // skip dts and dts2 eus REPOS
                    continue;
                }
                // Bug 1491319 - content set mappings for "Red Hat Enterprise Linux EUS Compute Node" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-6-for-hpc-node-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-6-for-hpc-node-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-6-for-hpc-node-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-6-for-hpc-node-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-6-for-hpc-node-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-6-for-hpc-node-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-rh-common-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-rh-common-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-rh-common-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-for-hpc-node-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-optional-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-optional-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-optional-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-supplementary-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-supplementary-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-7-hpc-node-eus-supplementary-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-optional-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-optional-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-optional-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-rhn-tools-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-supplementary-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-supplementary-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-6-eus-supplementary-source-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-7-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-7-eus-rhn-tools-rpms"))
                    bugIds.add("1491319");
                if (label.equals("rhel-hpc-node-7-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491319");
                // Bug 1491325 - content set mappings for "Red Hat Enterprise Linux EUS Compute Node High Performance Networking" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-hpc-node-6-eus-hpn-debug-rpms"))
                    bugIds.add("1491325");
                if (label.equals("rhel-hpc-node-6-eus-hpn-rpms"))
                    bugIds.add("1491325");
                if (label.equals("rhel-hpc-node-6-eus-hpn-source-rpms"))
                    bugIds.add("1491325");
                // Bug 1491334 - content set mappings for "Red Hat Enterprise Linux EUS Compute Node Scalable File System" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-hpc-node-6-eus-sfs-debug-rpms"))
                    bugIds.add("1491334");
                if (label.equals("rhel-hpc-node-6-eus-sfs-rpms"))
                    bugIds.add("1491334");
                if (label.equals("rhel-hpc-node-6-eus-sfs-source-rpms"))
                    bugIds.add("1491334");
                // Bug 1491348 - content set mappings for "Red Hat Enterprise Linux for IBM z Systems - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-5-for-system-z-eus-rh-common-debuginfo"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rh-common-isos"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rh-common-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rh-common-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rhn-tools-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-satellite-tools-6.1-debuginfo"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-5-for-system-z-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-rhn-tools-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-6-for-system-z-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-isos"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-optional-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-optional-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-optional-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rh-common-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rh-common-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rh-common-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rhn-tools-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-source-isos"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-source-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-supplementary-debuginfo"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-supplementary-isos"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-supplementary-rpms"))
                    bugIds.add("1491348");
                if (label.equals("rhel-7-for-system-z-eus-supplementary-source-rpms"))
                    bugIds.add("1491348");
                // Bug 1491351 - content set mappings for "Red Hat Enterprise Linux for Power, big endian - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-5-for-power-eus-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rh-common-debuginfo"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rh-common-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rh-common-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rh-common-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rhn-tools-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-satellite-tools-6.1-debuginfo"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-source-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-supplementary-debuginfo"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-supplementary-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-supplementary-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-5-for-power-eus-supplementary-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-rhn-tools-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-6-for-power-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-optional-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-optional-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-optional-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rh-common-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rh-common-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rh-common-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rhn-tools-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.3-debug-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.3-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-satellite-tools-6.3-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-source-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-source-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-supplementary-debuginfo"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-supplementary-isos"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-supplementary-rpms"))
                    bugIds.add("1491351");
                if (label.equals("rhel-7-for-power-eus-supplementary-source-rpms"))
                    bugIds.add("1491351");
                // Bug 1491356 - content set mappings for "Red Hat Enterprise Linux for Power, little endian - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-7-for-power-le-eus-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-isos"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-optional-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-optional-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-optional-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-rhn-tools-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-rhn-tools-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-rhn-tools-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.1-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.1-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.1-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.2-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.2-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.2-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.3-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.3-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.3-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.3-puppet4-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.3-puppet4-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-satellite-tools-6.3-puppet4-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-source-isos"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-source-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-supplementary-debug-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-supplementary-rpms"))
                    bugIds.add("1491356");
                if (label.equals("rhel-7-for-power-le-eus-supplementary-source-rpms"))
                    bugIds.add("1491356");
                // Bug 1491359 - content set mappings for "Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-lb-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1491359");
                // Bug 1491365 - content set mappings for "Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-scalefs-for-rhel-5-server-eus-rpms"))
                    bugIds.add("1491365");
                if (label.equals("rhel-sfs-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1491365");
                // Bug 1491369 - content set mappings for "RHEL for SAP - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sap-for-rhel-6-server-eus-debug-rpms"))
                    bugIds.add("1491369");
                if (label.equals("rhel-sap-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1491369");
                if (label.equals("rhel-sap-for-rhel-6-server-eus-source-rpms"))
                    bugIds.add("1491369");
                if (label.equals("rhel-sap-for-rhel-7-server-eus-debug-rpms"))
                    bugIds.add("1491369");
                if (label.equals("rhel-sap-for-rhel-7-server-eus-rpms"))
                    bugIds.add("1491369");
                if (label.equals("rhel-sap-for-rhel-7-server-eus-source-rpms"))
                    bugIds.add("1491369");
                // Bug 1491373 - content set mappings for "RHEL for SAP Applications for Power BE EUS" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sap-for-rhel-7-for-power-eus-debug-rpms"))
                    bugIds.add("1491373");
                if (label.equals("rhel-sap-for-rhel-7-for-power-eus-rpms"))
                    bugIds.add("1491373");
                if (label.equals("rhel-sap-for-rhel-7-for-power-eus-source-rpms"))
                    bugIds.add("1491373");
                // Bug 1491376 - content set mappings for "RHEL for SAP Applications for Power LE EUS" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sap-for-rhel-7-for-power-le-eus-debug-rpms"))
                    bugIds.add("1491376");
                if (label.equals("rhel-sap-for-rhel-7-for-power-le-eus-rpms"))
                    bugIds.add("1491376");
                if (label.equals("rhel-sap-for-rhel-7-for-power-le-eus-source-rpms"))
                    bugIds.add("1491376");
                // Bug 1491380 - content set mappings for "RHEL for SAP Applications for System Z EUS" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sap-for-rhel-7-for-system-z-eus-debug-rpms"))
                    bugIds.add("1491380");
                if (label.equals("rhel-sap-for-rhel-7-for-system-z-eus-rpms"))
                    bugIds.add("1491380");
                if (label.equals("rhel-sap-for-rhel-7-for-system-z-eus-source-rpms"))
                    bugIds.add("1491380");
                // Bug 1491382 - content set mappings for "RHEL for SAP HANA - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sap-hana-for-rhel-6-server-eus-debug-rpms"))
                    bugIds.add("1491382");
                if (label.equals("rhel-sap-hana-for-rhel-6-server-eus-rpms"))
                    bugIds.add("1491382");
                if (label.equals("rhel-sap-hana-for-rhel-6-server-eus-source-rpms"))
                    bugIds.add("1491382");
                if (label.equals("rhel-sap-hana-for-rhel-7-server-eus-debug-rpms"))
                    bugIds.add("1491382");
                if (label.equals("rhel-sap-hana-for-rhel-7-server-eus-rpms"))
                    bugIds.add("1491382");
                if (label.equals("rhel-sap-hana-for-rhel-7-server-eus-source-rpms"))
                    bugIds.add("1491382");
                // Bug 1491384 - content set mappings for "RHEL for SAP HANA for Power LE EUS" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-sap-hana-for-rhel-7-for-power-le-eus-debug-rpms"))
                    bugIds.add("1491384");
                if (label.equals("rhel-sap-hana-for-rhel-7-for-power-le-eus-rpms"))
                    bugIds.add("1491384");
                if (label.equals("rhel-sap-hana-for-rhel-7-for-power-le-eus-source-rpms"))
                    bugIds.add("1491384");
                // Bug 1521181 - content set mappings for "Red Hat Enterprise Linux High Availability (for IBM Power LE) - Extended Update Support" is missing from cdn/cs_mappings-prod.csv
                if (label.equals("rhel-ha-for-rhel-7-server-for-power-le-eus-debug-rpms"))
                    bugIds.add("1521181");
                if (label.equals("rhel-ha-for-rhel-7-server-for-power-le-eus-rpms"))
                    bugIds.add("1521181");
                if (label.equals("rhel-ha-for-rhel-7-server-for-power-le-eus-source-rpms"))
                    bugIds.add("1521181");
                BlockedByBzBug blockedByBzBug = new BlockedByBzBug(bugIds.toArray(new String[] {}));
                // Object bugzilla, String eusProductName, String eusProductId, String eusContentSetName, String eusContentSetId, String eusContentSetLabel, List<String> modifiedProductIds
                ll.add(Arrays.asList(new Object[] { blockedByBzBug, productName, productId, name, id, label, modifiedProductIds }));
            }
        }
    }
    // logging a semi-colon delimited map of repo label to information for debugging purposes importing into a spreadsheet
    log.info(" (DELETE COLUMN);ContentSet/Repo Label;Eng Prod ID;Eng Product Name;Content Set ID;Actual: Modifies Eng Prod IDs\rAssert that this list is not empty;");
    for (String key : eusLabelToInfoMap.keySet()) {
        // eusRepoLabel, fromEngProductId, fromEngProductName, whoseContentIdIs, modifiesTheseEngProductIds
        log.info(";" + key + ";" + eusLabelToInfoMap.get(key) + ";");
    // WAS IMPORTED TO: https://docs.google.com/a/redhat.com/spreadsheets/d/1oFCJ0KI2CjV1bOavNkKzZRJl-CZ6CopxngJi4EJbii0/edit?usp=sharing
    }
    return ll;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) JSONArray(org.json.JSONArray) JSONObject(org.json.JSONObject) ArrayList(java.util.ArrayList) List(java.util.List) JSONObject(org.json.JSONObject) BlockedByBzBug(com.redhat.qe.auto.bugzilla.BlockedByBzBug) HashSet(java.util.HashSet)

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