def test_02_repo_content_applicability_invalid_param(self):
     #response_code: 400,if one or more of the parameters is invalid
     RepoAppl.applicability(self.pulp, data={
                                      "invalid_parameter": {"filters": {"id":{"$in":["test-repo", "test-errata"]}}}
                                                  }
                                 )
     self.assertPulp(code=400)
Пример #2
0
 def test_02_repo_content_applicability_invalid_param(self):
     #response_code: 400,if one or more of the parameters is invalid
     RepoAppl.applicability(self.pulp,
                            data={
                                "invalid_parameter": {
                                    "filters": {
                                        "id": {
                                            "$in":
                                            ["test-repo", "test-errata"]
                                        }
                                    }
                                }
                            })
     self.assertPulp(code=400)
 def test_01_repo_content_applicability(self):
     response = RepoAppl.applicability(self.pulp, data={
                                      "repo_criteria": {"filters": {"id":{"$in":["test-repo", "test-errata"]}}}
                                                  }
                                 )
     self.assertPulp(code=202)
     Task.wait_for_report(self.pulp, response)
Пример #4
0
 def test_01_repo_content_applicability(self):
     response = RepoAppl.applicability(
         self.pulp,
         data={
             "repo_criteria": {
                 "filters": {
                     "id": {
                         "$in": ["test-repo", "test-errata"]
                     }
                 }
             }
         })
     self.assertPulp(code=202)
     Task.wait_for_report(self.pulp, response)