def create_execution(self, test_id, deployment_uuid): if not deployment_uuid: self.__outputs[test_id] += f'\nNo Deployment UUID provided.' execution = Execution.create(deployment_uuid) if execution.uuid: self.__outputs[test_id] += f'\nCreated execution: {execution}' return execution.uuid return None
def create_execution(post_execution=None): # noqa: E501 """Creates an execution # noqa: E501 :param post_execution: :type post_execution: dict | bytes :rtype: None """ if connexion.request.is_json: post_execution = POSTExecution.from_dict(connexion.request.get_json()) # noqa: E501 created_execution = ExecutionImpl.create(post_execution.deployment_uuid) return execution_schema.dump(created_execution)