コード例 #1
0
    def test_get_p2o_params_from_url(self):
        """Test the extraction of p2o params from the projects.json entry"""

        with open("data/projects-release.json") as projects_filename:
            url = json.load(projects_filename)['grimoire']['jira'][0]
            p2o_params = {'url': 'https://jira.opnfv.org', 'filter-raw': 'data.fields.project.key:PROJECT-KEY'}
            self.assertDictEqual(p2o_params, JiraOcean.get_p2o_params_from_url(url))
コード例 #2
0
ファイル: test_jira.py プロジェクト: zendsa/grimoirelab-elk
    def test_arthur_params(self):
        """Test the extraction of arthur params from the projects.json entry"""

        with open("data/projects-release.json") as projects_filename:
            url = json.load(projects_filename)['grimoire']['jira'][0]
            arthur_params = {'url': 'https://jira.opnfv.org'}
            self.assertDictEqual(arthur_params, JiraOcean.get_arthur_params_from_url(url))