Esempio n. 1
0
    def _load_file_args(self, task_def_arg, appspec_arg):
        task_def_string = self._get_file_contents(task_def_arg)
        register_task_def_kwargs = json.loads(task_def_string)

        appspec_string = self._get_file_contents(appspec_arg)
        appspec_obj = filehelpers.parse_appspec(appspec_string)

        return register_task_def_kwargs, appspec_obj
Esempio n. 2
0
    def _load_file_args(self, task_def_arg, appspec_arg):
        task_def_string = self._get_file_contents(task_def_arg)
        register_task_def_kwargs = json.loads(task_def_string)

        appspec_string = self._get_file_contents(appspec_arg)
        appspec_obj = filehelpers.parse_appspec(appspec_string)

        return register_task_def_kwargs, appspec_obj
Esempio n. 3
0
 def test_parse_appsec_json(self):
     output = parse_appspec(str(self.PARSED_APPSPEC))
     self.assertEqual(output, self.PARSED_APPSPEC)
Esempio n. 4
0
 def test_parse_appsec(self):
     output = parse_appspec(self.YAML_APPSPEC)
     self.assertEqual(output, self.PARSED_APPSPEC)
Esempio n. 5
0
 def test_parse_appsec_json(self):
     output = parse_appspec(str(self.PARSED_APPSPEC))
     self.assertEqual(output, self.PARSED_APPSPEC)
Esempio n. 6
0
 def test_parse_appsec(self):
     output = parse_appspec(self.YAML_APPSPEC)
     self.assertEqual(output, self.PARSED_APPSPEC)