()
Build and run this docker agent locally.
Build and run this docker agent locally.
Build and run this docker agent locally .
def test():
    """Build and run this docker agent locally."""
    try:
        incoming = request.get_json()
        docker_build_path = incoming["docker_build_path"]
        github_repo = incoming["github_repo"]
        private_key = incoming["private_key"]
        name = incoming["name"]
        agent_id = incoming["agent_id"]
        user = incoming["user"]
        config = incoming["config"]
        celery.run_test(docker_build_path, github_repo, private_key, name,
                        agent_id, user, config)
        return jsonify(received=True, error="")
    except Exception as e:
        return jsonify(received=False, error=e)
def test ( ) : try : incoming = request . get_json ( ) docker_build_path = incoming [ "docker_build_path" ] github_repo = incoming [ "github_repo" ] private_key = incoming [ "private_key" ] name = incoming [ "name" ] agent_id = incoming [ "agent_id" ] user = incoming [ "user" ] config = incoming [ "config" ] celery . run_test ( docker_build_path , github_repo , private_key , name , agent_id , user , config ) return jsonify ( received = True , error = "" ) except Exception as e : return jsonify ( received = False , error = e )