Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.1.0, 0.2.0
    • Fix Version/s: None
    • Component/s: Tests
    • Labels:
      None

      Description

      From BIGTOP-76 in bigtop-tests/test-artifacts/package/src/main/groovy/org/apache/bigtop/itest/packagesmoke/TestPackagesBasics.groovy:

      0/ Could you kill:
      + // repo = new PackageTestRepoMgr("3", "", "http://nightly.cloudera.com/debian/",
      + // "http://nightly.cloudera.com/debian/archive.key");

      1/ This one should be in the utils (not necessary for this task if another ticket is opened):
      + String arch = (new Shell()).exec("uname -m").getOut().get(0).replaceAll(/i.86/,"i386").replaceAll(/x86_64/,"amd64");
      + String archTranslated = (type == "apt") ? "" : ((arch == "amd64") ? ".x86_64" : ".$

      {arch}

      ");

      2/ I don't see golden (or pkgGolden) being used in TestPackagesBasics.

      3/ Could we use constants for run levels?

      4/ Could 3 be a constant? Maybe even use something like your tryOrFail static method
      for (i=3; pkg.install() && i>0; i--) {};

      5/ This list should definitely be a constant somewhere:
      + } else if (["apt", "yum", "zypper"].contains(key)) { // poor man's XML filtering

        Activity

        Hide
        Peter Linnell added a comment -

        > 3/ Could we use constants for run levels? Referring to the init scripts or package testing ?

        Show
        Peter Linnell added a comment - > 3/ Could we use constants for run levels? Referring to the init scripts or package testing ?

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruno Mahé
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development