Example #1
0
  @Test(description = "8782a6e0-f41a-48d5-8599-bfe7f24078f6")
  public void test_errataList() {
    KatelloErrata errata = new KatelloErrata(org_name, product_name, repo_name, content_view);
    errata.setProductId(product_Id);

    exec_result = errata.cli_list();
    Assert.assertTrue(
        exec_result.getExitCode().intValue() == 0, "Check - return code (errata list)");
    Assert.assertTrue(
        getOutput(exec_result).replaceAll("\n", "").contains(PromoteErrata.ERRATA_ZOO_SEA),
        "Check - errata list output");
  }
Example #2
0
  @Test(description = "2542ae61-8de6-40ce-866f-999c39fa9018")
  public void test_errataInfo() {
    KatelloErrata errata = new KatelloErrata(org_name, product_name, repo_name, content_view);
    errata.setId(PromoteErrata.ERRATA_ZOO_SEA);
    errata.setProductId(product_Id);

    exec_result = errata.info();
    Assert.assertTrue(
        exec_result.getExitCode().intValue() == 0, "Check - return code (errata info)");
    Assert.assertTrue(
        getOutput(exec_result).replaceAll("\n", "").contains(PromoteErrata.ERRATA_ZOO_SEA),
        "Check - errata info output");
  }